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

Feature Request: Please add tag_on_failure #61

Open
MikeKemmerer opened this issue May 18, 2018 · 1 comment
Open

Feature Request: Please add tag_on_failure #61

MikeKemmerer opened this issue May 18, 2018 · 1 comment

Comments

@MikeKemmerer
Copy link

While it's nice to have a default if there's no match, it would be nice to have the ability to tag data that doesn't have a match in the dictionary. Otherwise, I'll have to perform a remove_field to get rid of the default data after the rest of the work is done on a non-matching event. Having the tag to work with would be cleaner.

Thanks.

@guyboertje
Copy link

Under what circumstances would a tag be cleaner? Surely, if one sets the fallback to be "hey, translate 101 did not work" then:

  if [destination] != "hey, translate 101 did not work" {
    mutate {
      remove_field => ["destination']
  }

is no different from an tags include if conditional?
What am I missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants