This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Add tags
editAdd tags
editThe add_tags
processor adds tags to a list of tags. If the target field already exists,
the tags are appended to the existing list of tags.
-
tags
- List of tags to add.
-
target
-
(Optional) Field the tags will be added to. Defaults to
tags
. Setting tags in@metadata
is not supported.
For example, this configuration:
processors: - add_tags: tags: [web, production] target: "environment"
Adds the environment field to every event:
{ "environment": ["web", "production"] }