# Multiline data to correlate into single line

**URL:** <https://discuss.elastic.co/t/multiline-data-to-correlate-into-single-line/257253>\
**Category:** Logstash\
**Created:** [December 1, 2020, 5:57pm UTC](https://discuss.elastic.co/t/multiline-data-to-correlate-into-single-line/257253 "2020-12-01T17:57:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramesh535](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramesh535/32/77615_2.png) [@Ramesh535](https://discuss.elastic.co/u/Ramesh535)\
**Post date:** [December 1, 2020, 5:57pm UTC](https://discuss.elastic.co/t/multiline-data-to-correlate-into-single-line/257253/1 "2020-12-01T17:57:13Z")

</div>

Hi Guys,  
Need some help  
I have the data in this format  
[2020-11-27] [data] [country:India] [Capital:Delhi]  
[2020-11-27] [data] [country:India] [Currency:INR]  
[2020-11-27] [data] [country:India] [PM:Modi]  
[2020-11-27] [data] [country:India] [President:kovindh]  
But I need it like below format.  
[2020-11-27] [data] [country:India] [Capital:Delhi] [Currency:INR] [PM:Modi] [President:kovindh]  
Is it possible to make it through ELK.

Need some help..

---

<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:** [December 1, 2020, 6:38pm UTC](https://discuss.elastic.co/t/multiline-data-to-correlate-into-single-line/257253/2 "2020-12-01T18:38:58Z")

</div>

You could use an aggregate filter. Something like [example 3](https://www.elastic.co/guide/en/logstash/current/plugins-filters-aggregate.html#plugins-filters-aggregate-example3) in the documentation.

---

<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:** [December 29, 2020, 6:39pm UTC](https://discuss.elastic.co/t/multiline-data-to-correlate-into-single-line/257253/3 "2020-12-29T18:39:01Z")

</div>

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