I am accessing the "path" in my configuration file and I want to check if the "path" contains words like "alerts","var" etc, so that different grok patterns get applied on it.
So far I have tried:
if [path] =~ "alerts"
if "alerts" in [path]
But it does not seem to work. Can anybody please help with this ASAP!
It was a silly mistake from my side. I had removed the path field in the filter section but I was trying to access it in the output section. I just corrected that.
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.