# Need help with multiline pattern in complex log file

**URL:** <https://discuss.elastic.co/t/need-help-with-multiline-pattern-in-complex-log-file/154515>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 29, 2018, 8:54pm UTC](https://discuss.elastic.co/t/need-help-with-multiline-pattern-in-complex-log-file/154515 "2018-10-29T20:54:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Ivis](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@Ryan\_Ivis](https://discuss.elastic.co/u/Ryan_Ivis)\
**Post date:** [October 29, 2018, 8:54pm UTC](https://discuss.elastic.co/t/need-help-with-multiline-pattern-in-complex-log-file/154515/1 "2018-10-29T20:54:44Z")

</div>

All logs start with the following

2018-10-29T14:42:32,484 DEBUG [7DDvqyNAoe6UmkmcfvP8hw]

Which to me looks like  
Timestamp,MessageType TypeOfLog [MessageID]

How would i create a multiline filter for this in filebeat?

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [October 29, 2018, 9:06pm UTC](https://discuss.elastic.co/t/need-help-with-multiline-pattern-in-complex-log-file/154515/2 "2018-10-29T21:06:31Z")

</div>

Hi @Ryan_Ivis and welcome 🙂

You can find in the documentation some [examples of multiline configuration](https://www.elastic.co/guide/en/beats/filebeat/6.4/_examples_of_multiline_configuration.html), there you can find one [based on timestamps](https://www.elastic.co/guide/en/beats/filebeat/6.4/_examples_of_multiline_configuration.html#_timestamps), something like this could fit for your case.

---

<div class="post-metadata">

**Author:** ![Ryan\_Ivis](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@Ryan\_Ivis](https://discuss.elastic.co/u/Ryan_Ivis)\
**Post date:** [October 29, 2018, 9:16pm UTC](https://discuss.elastic.co/t/need-help-with-multiline-pattern-in-complex-log-file/154515/3 "2018-10-29T21:16:59Z")

</div>

Thanks!

---

<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:** [November 26, 2018, 11:16pm UTC](https://discuss.elastic.co/t/need-help-with-multiline-pattern-in-complex-log-file/154515/4 "2018-11-26T23:16:59Z")

</div>

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