# Logstash for multiline

**URL:** <https://discuss.elastic.co/t/logstash-for-multiline/71322>\
**Category:** Logstash\
**Created:** [January 12, 2017, 7:00am UTC](https://discuss.elastic.co/t/logstash-for-multiline/71322 "2017-01-12T07:00:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gringo](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@gringo](https://discuss.elastic.co/u/gringo)\
**Post date:** [January 12, 2017, 7:00am UTC](https://discuss.elastic.co/t/logstash-for-multiline/71322/1 "2017-01-12T07:00:04Z")

</div>

How should I configure my logstash if I have a log of the following

# Beginning of Log File

field1: 123 field2: 321  
field3: 1133 field4: 0901

field1: 523 field2: 521  
field3: 533 field4: 509

# End of Log File

What should be the right regex?

---

<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 9, 2017, 7:00am UTC](https://discuss.elastic.co/t/logstash-for-multiline/71322/2 "2017-02-09T07:00:04Z")

</div>

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