# Multiline pattern with tab

**URL:** <https://discuss.elastic.co/t/multiline-pattern-with-tab/164746>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 18, 2019, 7:32am UTC](https://discuss.elastic.co/t/multiline-pattern-with-tab/164746 "2019-01-18T07:32:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![victoravr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/victoravr/32/39901_2.png) [@victoravr](https://discuss.elastic.co/u/victoravr)\
**Post date:** [January 18, 2019, 7:32am UTC](https://discuss.elastic.co/t/multiline-pattern-with-tab/164746/1 "2019-01-18T07:32:05Z")

</div>

Hi!

I'd like to use multiline.pattern in filebeat input (in filebeat.yml) to process tomcat Java logs and send it to logstash+elasticsearch.

Below is a piece of the log file:

Apr 03, 2018 10:53:44 AM org.apache.catalina.core.StandardWrapperValve invoke  
INFO: java.io.IOException: App computation error Error, invalid input: lhs received -5/3\*x-4/3, which is not valid for its 1st argument, expr  
at com.appsoft.server.router.AppServer.checkAppError(AppServer.java:421)  
...

How can I instruct filebeat to include all lines starting with a tab as part of the single message?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 18, 2019, 7:46am UTC](https://discuss.elastic.co/t/multiline-pattern-with-tab/164746/2 "2019-01-18T07:46:35Z")

</div>

If each line starting with a timestamp indicates the start of a new event (might be the case here) you can create a pattern [this way](https://www.elastic.co/guide/en/beats/filebeat/6.5/_examples_of_multiline_configuration.html#_timestamps). That link also provides a few different examples if that is not the case.

---

<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:** [February 15, 2019, 7:46am UTC](https://discuss.elastic.co/t/multiline-pattern-with-tab/164746/3 "2019-02-15T07:46:42Z")

</div>

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