# How to filebeat config to multi-line?

**URL:** <https://discuss.elastic.co/t/how-to-filebeat-config-to-multi-line/157460>\
**Category:** Beats\
**Tags:** elastic-stack-monitoring, filebeat\
**Created:** [November 20, 2018, 2:30am UTC](https://discuss.elastic.co/t/how-to-filebeat-config-to-multi-line/157460 "2018-11-20T02:30:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![teichae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teichae/32/82069_2.png) [@teichae](https://discuss.elastic.co/u/teichae)\
**Post date:** [November 20, 2018, 2:30am UTC](https://discuss.elastic.co/t/how-to-filebeat-config-to-multi-line/157460/1 "2018-11-20T02:30:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![teichae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/teichae/32/82069_2.png) [@teichae](https://discuss.elastic.co/u/teichae)\
**Post date:** [November 20, 2018, 4:46am UTC](https://discuss.elastic.co/t/how-to-filebeat-config-to-multi-line/157460/2 "2018-11-20T04:46:29Z")

</div>

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:]

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 18, 2018, 4:46am UTC](https://discuss.elastic.co/t/how-to-filebeat-config-to-multi-line/157460/3 "2018-12-18T04:46:39Z")

</div>

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