# How to split a long line into multiple events

**URL:** https://discuss.elastic.co/t/how-to-split-a-long-line-into-multiple-events/71648
**Category:** Beats
**Created:** [January 15, 2017, 4:00pm UTC](https://discuss.elastic.co/t/how-to-split-a-long-line-into-multiple-events/71648 "2017-01-15T16:00:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jchen.com](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jchen.com](https://discuss.elastic.co/u/jchen.com)
#### Post date: [January 15, 2017, 4:00pm UTC](https://discuss.elastic.co/t/how-to-split-a-long-line-into-multiple-events/71648/1 "2017-01-15T16:00:03Z")

</div>

I have a log file which only have one line.  
The records are separated by "^MAAA" within that single line record. Here is an example:  
^MAAA20160711,111111,222222^MAAA20160712,33333,44444^MAAA20160713,55555,66666  
Above line contains 3 events:  
20160711,111111,222222  
20160712,33333,44444  
20160713,55555,66666

Can somebody give me a hint for how to configure the beats on this situation?  
I searched through and most of the posts are for multiplelines -\> single event. I need the other way around.

Thank you in advance,

# John Chen

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [January 16, 2017, 2:57am UTC](https://discuss.elastic.co/t/how-to-split-a-long-line-into-multiple-events/71648/2 "2017-01-16T02:57:10Z")

</div>

Beats cannot do that, you need to use Logstash.

---

<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: [February 5, 2017, 4:00pm UTC](https://discuss.elastic.co/t/how-to-split-a-long-line-into-multiple-events/71648/3 "2017-02-05T16:00:32Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
