I am trying to extract a substring from a file's path. The path is:
"/home/kate/logs/phone/messages"
I need to get the "phone" part. In my logstash conf file I am trying to use grok to extract this substring.
I checked the pattern in the grok debugger and it is able to extract "phone": /home/kate/logs/%{GREEDYDATA:device}/
But when I add the grok filter in my conf file:
I received [1] "_grokparsefailure" ....
Very confused. I am thinking something wrong with the syntax, but honestly can't think of anything. Any thoughts?
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.