Reputation: 1021
How to construct the grok pattern for the following log4j pattern?
%d{yy/MM/dd HH:mm:ss} %p %c{2}: %m%n
Upvotes: 0
Views: 416
Reputation: 1021
I've come up with a pattern and posing as a reference for others.
match => { "message" => "%{TIME:Time}\s* %{LOGLEVEL:LogLevel}?\s* %{DATA:Thread}?\s*: %{GREEDYDATA:Message}?\s*"}
Upvotes: 0