# Working with inconsistent logs

**URL:** <https://discuss.elastic.co/t/working-with-inconsistent-logs/208968>\
**Category:** Logstash\
**Created:** [November 21, 2019, 7:23pm UTC](https://discuss.elastic.co/t/working-with-inconsistent-logs/208968 "2019-11-21T19:23:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hyperion0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hyperion0/32/54270_2.png) [@Hyperion0](https://discuss.elastic.co/u/Hyperion0)\
**Post date:** [November 21, 2019, 7:23pm UTC](https://discuss.elastic.co/t/working-with-inconsistent-logs/208968/1 "2019-11-21T19:23:52Z")

</div>

This night be a silly question but. Is there a reasonable way to handle inconsistencies in text logs?

For example I have a text log, the bulk of witch is well formed but at certain points carriage returns are inserted in the middle of messages or multiple leading fields will be left out.

example:  
Standard line-  
10/3/19 18:04:40 --- ICDM --- Some message

odd line 1-  
10/3/19 18:04:40 --- ICDM --- Some  
message  
message

odd line 2-  
--- ICDM --- Some message

---

<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 19, 2019, 7:23pm UTC](https://discuss.elastic.co/t/working-with-inconsistent-logs/208968/2 "2019-12-19T19:23:53Z")

</div>

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