# How to handle message receive multiline in logstash

**URL:** <https://discuss.elastic.co/t/how-to-handle-message-receive-multiline-in-logstash/213083>\
**Category:** Logstash\
**Created:** [December 26, 2019, 1:35pm UTC](https://discuss.elastic.co/t/how-to-handle-message-receive-multiline-in-logstash/213083 "2019-12-26T13:35:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob94](https://avatars.discourse-cdn.com/v4/letter/b/c89c15/32.png) [@Bob94](https://discuss.elastic.co/u/Bob94)\
**Post date:** [December 26, 2019, 1:35pm UTC](https://discuss.elastic.co/t/how-to-handle-message-receive-multiline-in-logstash/213083/1 "2019-12-26T13:35:21Z")

</div>

Hi all,

I create a grok pattern and execute some bash script..Unfortunately this script produce two line of output. The question is how to properly index the data into elasticsearch as it contains 2 line of text in message field ?  
Example of line text in message field as below  
Message =\> myhome1 totalspace: 1g availablespace:2g/nmyhome2 totalspace: 1g availablespace: 1g

As of now i can see like this message was index as one event in elasticsearch..anyidea how to properly handle this ? Any help asap is highly appreciated !

---

<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:** [January 23, 2020, 1:35pm UTC](https://discuss.elastic.co/t/how-to-handle-message-receive-multiline-in-logstash/213083/2 "2020-01-23T13:35:38Z")

</div>

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