Logstash grok multiline message

后端 未结 2 1541
伪装坚强ぢ
伪装坚强ぢ 2020-12-30 00:13

My logs are formatted like this:

2014-06-19 02:26:05,556 INFO ok
2014-06-19 02:27:05,556 ERROR
 message:space exception
         at line 85
 solution:increas         


        
2条回答
  •  庸人自扰
    2020-12-30 00:45

    As for multiline grok, it's best to use special flag for pattern string:

    grok {
        match => ["message", "(?m)%{SYSLOG5424LINE}"]
    }
    

提交回复
热议问题