Logstash if any array element exists in [tags]

Hi,

Is there a way to do a conditional check such that elements of any array element exists in [tags] ?, something like:

if ["element1", "element2", "element3"] in [tags] {

}

Thanks,
E

You have to do this:

if "element1" in [tags] or "element2" in [tags] or "element3" in [tags] {

@magnusbaeck

Ok, I'll settle for that but I was hoping for something cleaner.

Thanks,
E

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