How to filebeat config to multi-line?

Hi, guys.

I want to create a multi-line rule in filebeat.

How do I specify a multi-line rule in the format shown below?

2018:11:20 01:58:22.721 INFO  --- [http-nio-8080-exec-10] o.a.coyote.http11.Http11Processor : Error parsing HTTP request header
 Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level. 
java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
	at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:484)
	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:687)
	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1468)
	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Thread.java:748)

Also, I am already using the following values. How should I add the new rules?

multiline.pattern: '^[[:space:]]+(at|\.{3})\b|^Caused by:'
multiline.negate: false
multiline.match: after

I ask for your help.

Thank you.

PS.

To put it simply...

The time stamp format is 2018:11:20 11:51:52.477

If not in this format, I want all multi-line attached to the message.

it's finished.

multiline.pattern: '[1]|[2]|[3]|(at|.{3})\b|^Caused by:'
multiline.negate: false
multiline.match: after


  1. A-Z ↩︎

  2. a-z ↩︎

  3. [:space:] ↩︎

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.