Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag manager processor to add and remove tags manually #4272

Open
graytaylor0 opened this issue Mar 12, 2024 · 1 comment
Open

Tag manager processor to add and remove tags manually #4272

graytaylor0 opened this issue Mar 12, 2024 · 1 comment
Labels
enhancement New feature or request plugin - processor A plugin to manipulate data in the data prepper pipeline.

Comments

@graytaylor0
Copy link
Member

Is your feature request related to a problem? Please describe.
As a user of data prepper and tags within data prepper, I would like to explicitly add or remove tags from Events with conditional expressions

Describe the solution you'd like
A tag_manager processor that can explicitly add or remove tags with conditions

processor:
  - tag_manager:
       add_tags: [ "tag_one", "tag_two" ]
       add_when: "/key == null"
       remove_tags: [ "tag_three", "tag_four" ]
       remove_when: "/key == null"

Describe alternatives you've considered (Optional)
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Originally mentioned in #629

@graytaylor0 graytaylor0 added untriaged enhancement New feature or request plugin - processor A plugin to manipulate data in the data prepper pipeline. and removed untriaged labels Mar 12, 2024
@graytaylor0 graytaylor0 modified the milestones: v2.7, v2.7.1 Mar 12, 2024
@dlvenable dlvenable modified the milestones: v2.7.1, v2.8 Apr 3, 2024
@dlvenable
Copy link
Member

Could we name this simply tag, or tags?

processor:
  - tag:
       add_tags: [ "tag_one", "tag_two" ]

or

processor:
  - tags:
       add_tags: [ "tag_one", "tag_two" ]

@dlvenable dlvenable removed this from the v2.8 milestone May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plugin - processor A plugin to manipulate data in the data prepper pipeline.
Projects
Development

No branches or pull requests

2 participants