for the above log, i have written the grok filter as shown below, match => {"message" =>"[%{TIMESTAMP_ISO8601:TimeStamp}][%{LOGLEVEL:logLevel}][%{WORD:machineName}]"}
But i have another scenario where my last part of the log is little changed as below,
[2017-07-07 11:41:30.794][DEBUG][C:0:O:1]
For this i am not able to write the proper grok filter. I tried the below,
match => {"message" =>"[%{TIMESTAMP_ISO8601:TimeStamp}][%{LOGLEVEL:logLevel}][%{HOSTNAME:machineName}]"}
HOSTNAME is not working. Can you please suggest which keyword to use.
This is my exact filter .. match => {"message" =>"[%{TIMESTAMP_ISO8601:TimeStamp}][%{LOGLEVEL:logLevel}][%{HOSTNAME:machineName}][%{JAVACLASS:className}][%{JAVAMETHOD:methodName}][%{WORD:commandID}][%{GREEDYDATA:myMessage}]"}
Can you please tell me what to modify here so that HOSTNAME:machineName accepts C:0:O:1.
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.