# Filebeat and multiline events

**URL:** <https://discuss.elastic.co/t/filebeat-and-multiline-events/271665>\
**Category:** Logstash\
**Created:** [April 29, 2021, 2:42pm UTC](https://discuss.elastic.co/t/filebeat-and-multiline-events/271665 "2021-04-29T14:42:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![the3rdway](https://avatars.discourse-cdn.com/v4/letter/t/aeb1de/32.png) [@the3rdway](https://discuss.elastic.co/u/the3rdway)\
**Post date:** [April 29, 2021, 2:42pm UTC](https://discuss.elastic.co/t/filebeat-and-multiline-events/271665/1 "2021-04-29T14:42:16Z")

</div>

I'm working with a virtual appliance that has Filebeat baked in.

I have no control over the Filebeat configuration, which is forwarding multiple files of different formats.

I can filter on source and grab the file that I need, but I'm struggling to process the 'interesting' log data, which is XML and is presented over multiple lines between tags. These are currently being output as discrete events/lines, when I need to aggregate these as an event.

I can find plenty of examples of processing multiple lines within the Filebeat configuration, but not in the Logstash input (where input type is beats) or filter phases. Indeed, if I do file input and file output then I can process the event as expected. My problem is when input is beats...

Any pointers?

---

<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:** [May 27, 2021, 2:42pm UTC](https://discuss.elastic.co/t/filebeat-and-multiline-events/271665/2 "2021-05-27T14:42:32Z")

</div>

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