Having the latest logstash-7.7.1-1.noarch from the official repo (baseurl=https://artifacts.elastic.co/packages/7.x/yum)
In the output section the
if "_grokparsefailure" not in [tags]
works fine.
But any of the
if [event][action] =~ /^logged/ or [event][action] =~ /^viewed/
if [event][action] == "logged"
if [event][action] in [ "logged", "viewed" ]
does not work at all.
I have only the one match clause for such a data: "^Operator %{DATA:user.name} (?<event.action>logged)"
and as you can see it's impossible to make mistake.
Also I see in the kibana the parsed data: event.action logged
If an any working config exists for a similar task I will go further.
Now after the day of fight i have doubts for a logstash possibilities
It's interesting that if [event.action] =~ /^logged/ or [event.action] =~ /^viewed/
works fine, but the same in: if [event.action] in [ "logged", "viewed" ]
doesn't.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.