I'm trying to parse some log (from cisco ironport) and I want to use a field value to access my custom patterns. To be clear there is my actual filter :
No, your syntax is wrong as far as I can see. Your telling it to match "iron_msg" field to the pattern %{iron_msg_type} - you do not have an iron message pattern hence the error.
So it's impossible to use a field value to access the exact grok pattern directly?
I was thinking it could work like that:
Ex with a "Start" log
Dissect_process => iron_msg_type = "Start", iron_msg = "blablabla"
Then Grok Process => match => {"iron_msg"=>"Start"(the iron_msg_type value)}
Then go to my Start custom pattern.
Sorry I am not quite sure what you mean or what you are hoping to achieve? Maybe if you could explain what fields you want to end up with it would be easier?
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.