# How to use Dissect to handle a newline

**URL:** https://discuss.elastic.co/t/how-to-use-dissect-to-handle-a-newline/169977
**Category:** Logstash
**Created:** [February 26, 2019, 10:40am UTC](https://discuss.elastic.co/t/how-to-use-dissect-to-handle-a-newline/169977 "2019-02-26T10:40:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![akira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akira/32/48396_2.png) [@akira](https://discuss.elastic.co/u/akira)
#### Post date: [February 26, 2019, 10:40am UTC](https://discuss.elastic.co/t/how-to-use-dissect-to-handle-a-newline/169977/1 "2019-02-26T10:40:30Z")

</div>

I Just want split a message into two lines, it is a simple case, but i didn't get the result  
(according to: [https://www.elastic.co/guide/en/logstash/5.6/plugins-filters-dissect.html#plugins-filters-dissect-mapping](https://www.elastic.co/guide/en/logstash/5.6/plugins-filters-dissect.html#plugins-filters-dissect-mapping))  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/d/ad815e89ea8a2dc89572f2fd3dc950206e02292c.png)  
and i get the bad result like:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/c/6c1f9c9a536a8b137a177ee50985f323f4a707a4.png)  
Too weird

---

<div class="post-metadata">

### Author: ![akira](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akira/32/48396_2.png) [@akira](https://discuss.elastic.co/u/akira)
#### Post date: [February 26, 2019, 10:43am UTC](https://discuss.elastic.co/t/how-to-use-dissect-to-handle-a-newline/169977/2 "2019-02-26T10:43:45Z")

</div>

'field1' get empty string, while 'description' lost a character 'c' from message.

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [February 26, 2019, 12:36pm UTC](https://discuss.elastic.co/t/how-to-use-dissect-to-handle-a-newline/169977/3 "2019-02-26T12:36:13Z")

</div>

I would have expected to get a \_dissectfailure from that. Remove the double quotes from the dissect mapping. They do not appear in the 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: [March 26, 2019, 12:36pm UTC](https://discuss.elastic.co/t/how-to-use-dissect-to-handle-a-newline/169977/4 "2019-03-26T12:36:13Z")

</div>

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