I have the following log file,
[2017-07-07 11:41:30.794][DEBUG][Hello]
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.
GREEDYDATA
– Fairy