# Multi line pattern in filebeat

**URL:** <https://discuss.elastic.co/t/multi-line-pattern-in-filebeat/250901>\
**Category:** Beats\
**Created:** [October 4, 2020, 3:17pm UTC](https://discuss.elastic.co/t/multi-line-pattern-in-filebeat/250901 "2020-10-04T15:17:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![billy1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/billy1/32/127235_2.png) [@billy1](https://discuss.elastic.co/u/billy1)\
**Post date:** [October 4, 2020, 3:17pm UTC](https://discuss.elastic.co/t/multi-line-pattern-in-filebeat/250901/1 "2020-10-04T15:17:02Z")

</div>

Dears  
what will be the multiline pattern for below message in the file beat config , i tried all the way but its not getting correct output from filebeat to logstash

tried with space filter but its not sending closing tag to log stash

```auto
    2020-09-30/11:44:40.690/AST TRACE <?xml version="1.0" encoding="UTF-8"?><nam:Notify xmlns:nam="NAM-v1.4">
         <MessageIdentifier>16014554875</MessageIdentifier>
         <MessageTimeStamp>2020-09-30T11:44:40.675+03:00</MessageTimeStamp>
         <TypeOfTransaction>Update</TypeOfTransaction>
         <TravellerReference>24103085</TravellerReference>
    </nam:Notify>

```

---

<div class="post-metadata">

**Author:** ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)\
**Post date:** [October 5, 2020, 5:33am UTC](https://discuss.elastic.co/t/multi-line-pattern-in-filebeat/250901/2 "2020-10-05T05:33:15Z")

</div>

Hello Billy,

The message always starts with a date and time, right? Then this is similar to other posts in this forum: [Filebeat multiline regexp patterns help](https://discuss.elastic.co/t/filebeat-multiline-regexp-patterns-help/170648)

Best regards  
Wolfram

---

<div class="post-metadata">

**Author:** ![billy1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/billy1/32/127235_2.png) [@billy1](https://discuss.elastic.co/u/billy1)\
**Post date:** [October 7, 2020, 8:45am UTC](https://discuss.elastic.co/t/multi-line-pattern-in-filebeat/250901/3 "2020-10-07T08:45:04Z")

</div>

Thank you its works now

---

<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 4, 2020, 8:45am UTC](https://discuss.elastic.co/t/multi-line-pattern-in-filebeat/250901/4 "2020-11-04T08:45:06Z")

</div>

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