You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/logs/processing/processors.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -274,6 +274,8 @@ Into this log:
274
274
275
275
Constraints on the tag/attribute name are explained in the [Tagging documentation][5]. Some additional constraints are applied as `:` or `,` are not allowed in the target tag/attribute name.
276
276
277
+
If the target of the remapper is an attribute, the remapper can also try to cast the value to a new type (`String`, `Long` or `Double`). If the cast is not possible, the original type is kept (note: The decimal separator for `Double` need to be `.`)
278
+
277
279
{{< tabs >}}
278
280
{{% tab "UI" %}}
279
281
@@ -296,6 +298,7 @@ Use the [Datadog Log Pipeline API endpoint][1] with the following Remapper JSON
296
298
"sources": ["<SOURCE_ATTRIBUTE>"],
297
299
"target": "<TARGET_ATTRIBUTE>",
298
300
"target_type": "tag",
301
+
"target_format": "long",
299
302
"preserve_source": false,
300
303
"override_on_conflict": false
301
304
}
@@ -310,6 +313,7 @@ Use the [Datadog Log Pipeline API endpoint][1] with the following Remapper JSON
310
313
|`sources`| Array of Strings | yes | Array of source attributes or tags |
311
314
|`target`| String | yes | Final attribute or tag name to remap the sources to. |
312
315
|`target_type`| String | no | Defines if the target is a log `attribute` or a `tag`, default: `attribute`|
316
+
|`target_format`| String | no | Defines if the attribute value should be cast to another type. possible value: `auto`, `string`, `long` or `double`, default: `auto`. When set to `auto`, no cast is applied. |
313
317
|`preserve_source`| Boolean | no | Remove or preserve the remapped source element, default: `false`|
314
318
|`override_on_conflict`| Boolean | no | Override or not the target element if already set, default: `false`|
0 commit comments