Yes, I think I got why can't parsing as Filter config. My origin log will not generate as grok format. So it can't match with grok.
My question is: How to intellect matching the logs with diff format in logs? use condition? But how to use it?
Thanks, But my log have diff format of json. How to handle that.
For example: 2 types
1.{"elapsed time":40.666,"executed by":{"user":"Administrator","password":"Welcome1"},"request":{"method":"POST","uri":"jobs","payload":{"jobtype":"Import","parameters":{"zipFileName":"Coola.zip"}}}}
I will hit [1] "_jsonparsefailure" during the log format as:
{"elapsed time":40.666,"executed by":{"user":"Administrator","password":"Welcome1"},"request":{"method":"POST","uri":"jobs","payload":{"jobtype":"Import","parameters":{"zipFileName":"Coola.zip"}}}}
In your first example, the colon after "request" isn't actually a colon but some other character that looks like a colon. Your second example doesn't have that problem.
but my logstash still can't parse it, logstash point to line line 1 column 16 which always point to "elapsed time":40.666, I try to remove it and re-parsing but will point to next one "executed by":
And logstash can parsing successful. But the my second json format didn't have this issue.
Second format as:
{"elapsed time":0.675, "request":{"method":"PUT","uri":"files/applications/ASOsamp/Sample/createfilters_ASOsamp.msh?overwrite=true"}}
it always works well. Do you know why?
Thanks, I am failed with below json but not the one which you use. Could you help to use below json to take a try in 6.1? I am working with 5.6.3, I think it doesn't matter with diff version.
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.