Skip to content

Commit dd940ad

Browse files
authored
configure remapper type conversion (DataDog#7692)
* Update processors.md * Update processors.md * Delete attribute_remapper_processor_tile.png * Add files via upload
1 parent f36e808 commit dd940ad

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

content/en/logs/processing/processors.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ Into this log:
274274

275275
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.
276276

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+
277279
{{< tabs >}}
278280
{{% tab "UI" %}}
279281

@@ -296,6 +298,7 @@ Use the [Datadog Log Pipeline API endpoint][1] with the following Remapper JSON
296298
"sources": ["<SOURCE_ATTRIBUTE>"],
297299
"target": "<TARGET_ATTRIBUTE>",
298300
"target_type": "tag",
301+
"target_format": "long",
299302
"preserve_source": false,
300303
"override_on_conflict": false
301304
}
@@ -310,6 +313,7 @@ Use the [Datadog Log Pipeline API endpoint][1] with the following Remapper JSON
310313
| `sources` | Array of Strings | yes | Array of source attributes or tags |
311314
| `target` | String | yes | Final attribute or tag name to remap the sources to. |
312315
| `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. |
313317
| `preserve_source` | Boolean | no | Remove or preserve the remapped source element, default: `false` |
314318
| `override_on_conflict` | Boolean | no | Override or not the target element if already set, default: `false` |
315319

-45.9 KB
Loading

0 commit comments

Comments
 (0)