# How to write more than one multiline patterns for two different type of Logs

**URL:** <https://discuss.elastic.co/t/how-to-write-more-than-one-multiline-patterns-for-two-different-type-of-logs/207552>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 12, 2019, 3:40pm UTC](https://discuss.elastic.co/t/how-to-write-more-than-one-multiline-patterns-for-two-different-type-of-logs/207552 "2019-11-12T15:40:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![faiz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/faiz/32/57554_2.png) [@faiz](https://discuss.elastic.co/u/faiz)\
**Post date:** [November 12, 2019, 3:40pm UTC](https://discuss.elastic.co/t/how-to-write-more-than-one-multiline-patterns-for-two-different-type-of-logs/207552/1 "2019-11-12T15:40:58Z")

</div>

HI,  
I need to ship logs of my tomcat alongs with my applications logs.  
My application logs and tomcat logs are of different time stamp, There fore I need to write more that one multiline patterns in the filebeat prospector.

How could I ship logs from the same filebeat to logstash.

Any suggestion would be helpful.

Thanks,

---

<div class="post-metadata">

**Author:** ![Slavik\_Fursov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/slavik_fursov/32/48975_2.png) [@Slavik\_Fursov](https://discuss.elastic.co/u/Slavik_Fursov)\
**Post date:** [November 12, 2019, 11:20pm UTC](https://discuss.elastic.co/t/how-to-write-more-than-one-multiline-patterns-for-two-different-type-of-logs/207552/2 "2019-11-12T23:20:57Z")

</div>

I have never tried,  
But you can have multiple patterns on the ingestion pipelines.  
For example, existing Apache pipeline does it:

> <https://github.com/elastic/beats/blob/master/filebeat/module/apache/access/ingest/default.json#L7-L11>

But multiline setting have to be defined on the filebeat side. For that, I guess you will need to find settings, which works for both App and Tomcat

---

<div class="post-metadata">

**Author:** ![faiz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/faiz/32/57554_2.png) [@faiz](https://discuss.elastic.co/u/faiz)\
**Post date:** [November 18, 2019, 5:15pm UTC](https://discuss.elastic.co/t/how-to-write-more-than-one-multiline-patterns-for-two-different-type-of-logs/207552/3 "2019-11-18T17:15:32Z")

</div>

Hi thanks for the response, but I am comfortable on the ingestion side, i am facing blocker on the filebeat side, if i could add mulitple multiline pattern. ;(

Any example of the same would be much appreciable.

---

<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 16, 2019, 5:15pm UTC](https://discuss.elastic.co/t/how-to-write-more-than-one-multiline-patterns-for-two-different-type-of-logs/207552/4 "2019-12-16T17:15:40Z")

</div>

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