How do I match a newline in grok/logstash?

后端 未结 3 1812
名媛妹妹
名媛妹妹 2020-12-24 06:34

I have a remote machine that combines multiline events and sends them across the lumberjack protocol.

What comes in is something that looks like this:



        
3条回答
  •  执笔经年
    2020-12-24 06:52

    All GREEDYDATA is is .*, but . doesn't match newline, so you can replace %{GREEDYDATA:message} with (?(.|\r|\n)*)and get it to be truly greedy.

提交回复
热议问题