Above line is my log message.As I am new to GROK filter I am finding it very difficult to parse the Total Amount as separate filed and send that to kibana. Can some one pls help how to filter the value as separate filed?
This is my GROK filter
%{GREEDYDATA}(?< TotalAmount >(?<= TotalAmount =�)[^&]+)(?< ReturnAmount >(?<= ReturnAmount =�)[^&])
When I use this the output is coming like this
{
"TotalSalesAmount": "29.94 TotalReturnAmount =�",
"TotalReturnAmount": "0"
}
All I want is some thing like this
{
"TotalSalesAmount": "29.94 ",
"TotalReturnAmount": "0.00"
}
Hi Jason,Thankyou verymuch for helping me. It is working in grokdebug.BUt when I try this in Kibana debugger it is not working. I am not sure what is the issue
I think I understood. You have one logstash.conf file and you want 2 different grok patterns to match two different potential log messages? You'd use this:
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.