- Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
:Data Management/Ingest NodeExecution or management of Ingest Pipelines including GeoIPExecution or management of Ingest Pipelines including GeoIPbug"" muted="" aria-describedby="MDU6TGFiZWwyMzE3Mw==-tooltip :R5b96b:">>bugTeam:Data ManagementMeta label for data/management teamMeta label for data/management team
Description
Elasticsearch Version
8.8.1
Installed Plugins
No response
Java Version
bundled
OS Version
ESS
Problem Description
The reroute processor allows to specific Mustache like syntax for field references. In contrast to other processors (.e.g set or rename) the variable does not allow to include spaces between the field name and the curly brackets.
This doesn't work:
"dataset": "{{ _reroute.dataset }}" while this does:
"dataset": "{{_reroute.dataset}}" Steps to Reproduce
PUT _ingest/pipeline/reroute_example { "processors": [ { "reroute": { "tag": "example", "dataset": "{{ _reroute.dataset }}" } } ] } POST logs-test.original-default/_doc?pipeline=reroute_example { "_reroute": { "dataset": "test.reroute" }, "@timestamp": "2023-06-20" } Notice how the target Data Stream is logs-test.original-default instead of logs-test.reroute-default
Logs (if relevant)
No response
Metadata
Metadata
Assignees
Labels
:Data Management/Ingest NodeExecution or management of Ingest Pipelines including GeoIPExecution or management of Ingest Pipelines including GeoIPbug"" muted="" aria-describedby="MDU6TGFiZWwyMzE3Mw==-tooltip :Ra5pmb:">>bugTeam:Data ManagementMeta label for data/management teamMeta label for data/management team