# All logs on 1 line

**URL:** <https://discuss.elastic.co/t/all-logs-on-1-line/76981>\
**Category:** Logstash\
**Created:** [March 1, 2017, 1:09pm UTC](https://discuss.elastic.co/t/all-logs-on-1-line/76981 "2017-03-01T13:09:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bertvervaele](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@bertvervaele](https://discuss.elastic.co/u/bertvervaele)\
**Post date:** [March 1, 2017, 1:09pm UTC](https://discuss.elastic.co/t/all-logs-on-1-line/76981/1 "2017-03-01T13:09:21Z")

</div>

I want to get my SAP log's into logstash.  
The problem is SAP writes all his logs after each other without a new line. between 2 log lines it puts \*\*\*\*\*\*\*\* instead of a new line.  
I know I can use split to separate them but won't it read the whole line again each time there is a new log?  
It's a line with more then 10million chars so I think it won't be very effecient to reread the whole line.

Bert

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [March 1, 2017, 6:35pm UTC](https://discuss.elastic.co/t/all-logs-on-1-line/76981/2 "2017-03-01T18:35:15Z")

</div>

You might need a custom codec for that. How are you ingesting the file right now? Over the network? Local file?

---

<div class="post-metadata">

**Author:** ![bertvervaele](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@bertvervaele](https://discuss.elastic.co/u/bertvervaele)\
**Post date:** [March 2, 2017, 7:15am UTC](https://discuss.elastic.co/t/all-logs-on-1-line/76981/3 "2017-03-02T07:15:56Z")

</div>

atm i'm just doing it with a local file. If I can get it to work it will get it over the network.

---

<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:** [March 30, 2017, 7:16am UTC](https://discuss.elastic.co/t/all-logs-on-1-line/76981/4 "2017-03-30T07:16:19Z")

</div>

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