# Multiline pattern not matching in fluentbit

**URL:** <https://discuss.elastic.co/t/multiline-pattern-not-matching-in-fluentbit/291853>\
**Category:** Logstash\
**Created:** [December 14, 2021, 6:08pm UTC](https://discuss.elastic.co/t/multiline-pattern-not-matching-in-fluentbit/291853 "2021-12-14T18:08:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mangeshmj1992](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mangeshmj1992](https://discuss.elastic.co/u/mangeshmj1992)\
**Post date:** [December 14, 2021, 6:08pm UTC](https://discuss.elastic.co/t/multiline-pattern-not-matching-in-fluentbit/291853/1 "2021-12-14T18:08:55Z")

</div>

Hello team,  
I am ingesting data through fluent bit. we are facing some multiline pattern issu. can any one help me on this.

In the message field it is displaying only 1 line.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/7/f7b3cd04f135f9c6770dcfb55745f52e49d10e67.png)

Pattern:

```auto
(?m-ix)^(?<time>\d{4}\-\d{2}\-\d{2}\s\d{2}\:\d{2}\:\d{2}\,\d{3})\s*(?<message>.*)

```

Sample log line:

```auto
2021-11-18 13:32:35,295 INFO - [1]^M
^M
:------------------------^M
:JOB ID:1^M
:TRACKING ID:^M
:INPUT:^M
:OUTPUT:^M
:ERROR:^M
:MSG:BW Process Engine started for PROD AWAI FONBatchBroker:^M
PROCESS NAME:/AutomatedProcesses/Common/StartUpandShutdownProcesses/EngineStartUpIntimation^M
:ACTIVITY:^M
:CONCERNED PERSON:^M
^M
 - [?:log:?]

```

---

<div class="post-metadata">

**Author:** ![mangeshmj1992](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mangeshmj1992](https://discuss.elastic.co/u/mangeshmj1992)\
**Post date:** [December 14, 2021, 6:21pm UTC](https://discuss.elastic.co/t/multiline-pattern-not-matching-in-fluentbit/291853/2 "2021-12-14T18:21:34Z")

</div>

@Badger @DPattee Appreciate your help on this. If you have any idea on same

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [December 14, 2021, 6:48pm UTC](https://discuss.elastic.co/t/multiline-pattern-not-matching-in-fluentbit/291853/3 "2021-12-14T18:48:54Z")

</div>

This is not the right forum to ask about about functionality on [regexp101.com](http://regexp101.com)

There are many slightly different flavours of regular expressions. If you want to know how logstash interprets a regexp then test it in logstash.

---

<div class="post-metadata">

**Author:** ![mangeshmj1992](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mangeshmj1992](https://discuss.elastic.co/u/mangeshmj1992)\
**Post date:** [December 14, 2021, 6:55pm UTC](https://discuss.elastic.co/t/multiline-pattern-not-matching-in-fluentbit/291853/4 "2021-12-14T18:55:32Z")

</div>

@Badger ,  
Thanks for quick reply. How i can check this in logstash?

---

<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:** [January 11, 2022, 6:56pm UTC](https://discuss.elastic.co/t/multiline-pattern-not-matching-in-fluentbit/291853/5 "2022-01-11T18:56:03Z")

</div>

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