Filter on tag value in filter


I know that i can filter on specific tags in Logstash with an IF, but i don't want to filter on the tag names, i want to filter on what a tag contains. So if tag "environment" == "production" then i want to do something.

How can i achieve this? I cannot find it anywhere!

tags do not have values. A tag is just a string in the array which is the tag field. logstash does support conditionals in filters, which allows you to test the values of fields.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.