Sample Header Ad - 728x90

logstash regex match in if condition

1 vote
2 answers
4883 views
In logstash filtering, I have multiple tags setup based upon different error conditions and all the tags has a prefix, something like "abc:" In the output, I want to send email based upon just "abc:*" exists in tags. I haven't come across such condition reading the docs. Mostly it says: if "abc" in [tags] { ... ... } However I want to have the condition match any tag with "abc-*". Any ideas?
Asked by sudobash (61 rep)
Sep 11, 2015, 06:23 PM
Last activity: Oct 14, 2021, 11:54 PM