# How to avoid single line events in filebeat multiline configuration

**URL:** https://discuss.elastic.co/t/how-to-avoid-single-line-events-in-filebeat-multiline-configuration/204839
**Category:** Logstash
**Created:** [October 23, 2019, 10:36am UTC](https://discuss.elastic.co/t/how-to-avoid-single-line-events-in-filebeat-multiline-configuration/204839 "2019-10-23T10:36:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ajojohnk](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@ajojohnk](https://discuss.elastic.co/u/ajojohnk)
#### Post date: [October 23, 2019, 10:36am UTC](https://discuss.elastic.co/t/how-to-avoid-single-line-events-in-filebeat-multiline-configuration/204839/1 "2019-10-23T10:36:38Z")

</div>

Hi

I've a simple xml file which has this format

Here, i succeded in extracting events at the object level using multiline. But, along with it for each line of the xml file where it finds a "\n" it also fires a single line event.

Can we get rid of the single line event being fired ?

---

<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: [October 23, 2019, 12:17pm UTC](https://discuss.elastic.co/t/how-to-avoid-single-line-events-in-filebeat-multiline-configuration/204839/2 "2019-10-23T12:17:45Z")

</div>

What is the format of the file and what is the multiline configuration you are using?

---

<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 20, 2019, 12:17pm UTC](https://discuss.elastic.co/t/how-to-avoid-single-line-events-in-filebeat-multiline-configuration/204839/3 "2019-11-20T12:17:47Z")

</div>

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