logstash-plugins / logstash-filter-jdbc_streaming

A Logstash filter that can enrich events with data from a database
Apache License 2.0
12 stars 23 forks source link

tag_on_success #20

Open synFK opened 5 years ago

synFK commented 5 years ago

Hello,

I thought about a new option tag_on_success or tag_on_match or the like. Right now we need the ability to tag an event only if the desired row was found. The common option add_tag is applied regardless of a match or a mismatch. Currently the workaround is to append a mutate filter that checks the absence of the tag from tag_on_default_use and – if so – adds the "success tag", but that is somewhat ugly. What do you think?