# How to use the multiline in for these logs

**URL:** https://discuss.elastic.co/t/how-to-use-the-multiline-in-for-these-logs/59391
**Category:** Logstash
**Created:** [August 31, 2016, 6:03am UTC](https://discuss.elastic.co/t/how-to-use-the-multiline-in-for-these-logs/59391 "2016-08-31T06:03:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![LazyerHong](https://avatars.discourse-cdn.com/v4/letter/l/a5b964/32.png) [@LazyerHong](https://discuss.elastic.co/u/LazyerHong)
#### Post date: [August 31, 2016, 6:03am UTC](https://discuss.elastic.co/t/how-to-use-the-multiline-in-for-these-logs/59391/1 "2016-08-31T06:03:39Z")

</div>

For example i have logs here:

1111  
2222  
3333  
1111  
2222  
3333

now i want to combine the log with the same number just like  
11111111  
22222222  
33333333

how can i do with the multiline???It is very urgent for me now. Thanks!!

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [August 31, 2016, 6:15am UTC](https://discuss.elastic.co/t/how-to-use-the-multiline-in-for-these-logs/59391/2 "2016-08-31T06:15:08Z")

</div>

Multiline is the wrong tool for this. The aggregate filter should be a better match.

---

<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: [July 6, 2017, 4:40am UTC](https://discuss.elastic.co/t/how-to-use-the-multiline-in-for-these-logs/59391/3 "2017-07-06T04:40:40Z")

</div>


