# Messages/Lines are coming more than once in log stash output

**URL:** <https://discuss.elastic.co/t/messages-lines-are-coming-more-than-once-in-log-stash-output/171121>\
**Category:** Logstash\
**Created:** [March 6, 2019, 1:26pm UTC](https://discuss.elastic.co/t/messages-lines-are-coming-more-than-once-in-log-stash-output/171121 "2019-03-06T13:26:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mayurbiw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mayurbiw/32/45858_2.png) [@Mayurbiw](https://discuss.elastic.co/u/Mayurbiw)\
**Post date:** [March 6, 2019, 1:26pm UTC](https://discuss.elastic.co/t/messages-lines-are-coming-more-than-once-in-log-stash-output/171121/1 "2019-03-06T13:26:37Z")

</div>

Here is my configuration file

```
input {

        file {

                path => "myFile.xml"
                start_position => "beginning"

      codec => multiline {
      pattern => "((^<x>)|(^</y>))"
      negate => false
      what => "previous"

}
 }
}

```

Note I am using XML plugin in filters because my input is the XML file.

Every time I am inserting a new event in an audit file it's repeating its previous event in logstash output. I guess it's not keeping track of the end of the file.

---

<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:** [April 3, 2019, 1:26pm UTC](https://discuss.elastic.co/t/messages-lines-are-coming-more-than-once-in-log-stash-output/171121/2 "2019-04-03T13:26:37Z")

</div>

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