Hi
I trying to write grok pattern to remove some extra characters in between the message by using grok pattern. after removing these extra characters i want to apply json filter. I am sharing sample logs below.
2024-08-20T08:55:03.642963576Z stdout F 08:55:03.642 [xxxx-qwe-9090-exec-8] INFO com.xxxx.vnb.abconvert.ABCVDGontroller - {"logtype":"abc","component":"jkl","request":{"method":"POST","path":"/ops","headers":{"test":"artyucff"}},"response":{"status":400},"runtimes":{"totalTime":12}}
I want to remove below portion from above message
08:55:03.642 [http-qwe-9090-exec-8] INFO com.xxxx.vnb.abconvert.ABCVDGontroller -
I am sharing created grok pattern below.
%{TIMESTAMP_ISO8601:timestamp}%{SPACE}%{WORD:[@metadata][logoutputtype]}%{SPACE}%{WORD:[@metadata][loglevel]}%{SPACE}%{DATA:[@metadata]%{SPACE}-%{SPACE}} %{GREEDYDATA:jsonmessage}"
Could you please guide me to crate grok pattern for above message?
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.