# I am using Multiline codec input plugin but the events which are not matching with my PATTERN it also processing those Events

**URL:** <https://discuss.elastic.co/t/i-am-using-multiline-codec-input-plugin-but-the-events-which-are-not-matching-with-my-pattern-it-also-processing-those-events/341425>\
**Category:** Logstash\
**Created:** [August 23, 2023, 5:33am UTC](https://discuss.elastic.co/t/i-am-using-multiline-codec-input-plugin-but-the-events-which-are-not-matching-with-my-pattern-it-also-processing-those-events/341425 "2023-08-23T05:33:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Subrato1](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@Subrato1](https://discuss.elastic.co/u/Subrato1)\
**Post date:** [August 23, 2023, 5:33am UTC](https://discuss.elastic.co/t/i-am-using-multiline-codec-input-plugin-but-the-events-which-are-not-matching-with-my-pattern-it-also-processing-those-events/341425/1 "2023-08-23T05:33:37Z")

</div>

Below is the codec which am using for multiline events.

```auto
codec => multiline {
	  pattern => "%{TIMESTAMP_ISO8601:syslogtime}\s%{WORD:str}\s%{WORD:s}\s%{YEAR:yeaa}-%{MONTHNUM:ooo}-%{MONTHDAY:ppp}\s%{TIME:trrrs}"
	  #pattern => "((^%{TIMESTAMP_ISO8601} %{WORD} %{WORD} %{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{TIME}))"
	  negate => true
      what => "previous"
    }

```

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [August 24, 2023, 8:13am UTC](https://discuss.elastic.co/t/i-am-using-multiline-codec-input-plugin-but-the-events-which-are-not-matching-with-my-pattern-it-also-processing-those-events/341425/2 "2023-08-24T08:13:59Z")

</div>

How does the message/event look like?

---

<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:** [September 21, 2023, 8:14am UTC](https://discuss.elastic.co/t/i-am-using-multiline-codec-input-plugin-but-the-events-which-are-not-matching-with-my-pattern-it-also-processing-those-events/341425/3 "2023-09-21T08:14:51Z")

</div>

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