# Merge lines in filebeat

**URL:** <https://discuss.elastic.co/t/merge-lines-in-filebeat/273981>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 25, 2021, 6:12pm UTC](https://discuss.elastic.co/t/merge-lines-in-filebeat/273981 "2021-05-25T18:12:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![syrine\_chelly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syrine_chelly/32/84013_2.png) [@syrine\_chelly](https://discuss.elastic.co/u/syrine_chelly)\
**Post date:** [May 25, 2021, 6:12pm UTC](https://discuss.elastic.co/t/merge-lines-in-filebeat/273981/1 "2021-05-25T18:12:10Z")

</div>

this is an extract from my file log i want to merge the lines for example under "Server 'ILPPRAGLM', Line 14" in one event every time it finds Server it merges the lines

 ![log](https://us1.discourse-cdn.com/elastic/original/3X/c/b/cbd200e8e0ea59b4eb95eee3c9eb6853f704e6aa.png)  
how can i do it without merging the other lines in the log files ? by using multiline pattern ?

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [May 27, 2021, 1:14am UTC](https://discuss.elastic.co/t/merge-lines-in-filebeat/273981/2 "2021-05-27T01:14:00Z")

</div>

Yes u should be able to use a multi line config to do what u want

---

<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:** [June 24, 2021, 3:14am UTC](https://discuss.elastic.co/t/merge-lines-in-filebeat/273981/3 "2021-06-24T03:14:07Z")

</div>

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