簡體   English   中英

以下log4j模式的Grok模式

[英]Grok pattern for the following log4j pattern

如何為以下log4j模式構造grok模式?

%d {yy / MM / dd HH:mm:ss}%p%c {2}:%m%n

我想出了一個模式,並作為其他人的參考。

match => { "message" => "%{TIME:Time}\s* %{LOGLEVEL:LogLevel}?\s* %{DATA:Thread}?\s*: %{GREEDYDATA:Message}?\s*"}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM