# Allow multi-line breaking using \\n in Discover Datatable

**URL:** <https://discuss.elastic.co/t/allow-multi-line-breaking-using-n-in-discover-datatable/348975>\
**Category:** Kibana\
**Created:** [December 10, 2023, 7:37am UTC](https://discuss.elastic.co/t/allow-multi-line-breaking-using-n-in-discover-datatable/348975 "2023-12-10T07:37:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saar\_Tamir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saar_tamir/32/123759_2.png) [@Saar\_Tamir](https://discuss.elastic.co/u/Saar_Tamir)\
**Post date:** [December 10, 2023, 7:37am UTC](https://discuss.elastic.co/t/allow-multi-line-breaking-using-n-in-discover-datatable/348975/1 "2023-12-10T07:37:24Z")

</div>

Hello, I'm sending strings with \n so I can see logs in multi-line formatting, but all I see is the literal '\n'.  
For example:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/f/dfd45b27bc1cbe9eb6f7cd0c4339d06fe8ce35c7.png)

I found this previous issue and PR:

> <https://github.com/elastic/kibana/issues/76242>
>
> \*\*Describe the feature:\*\*
> If the value of a field is stored as a string having …newlines in Elasticsearch, the feature may enable the user to display the string which parses "\\n" as a newline in the string. This feature would be specifically useful for someone who wants newlines in a datatable, however other visualizations may also benefit from this. Kindly consider.
> 
> \*\*Describe a specific use case for the feature:\*\*
> For instance, there is a field like address, having value = "X Street \\n Y Apt \\n Z State", the user may want to represent this value inside the datatable as:
> 
> "X Street
> Y Apt
> Z State"

and I see that it added on 8.4.0 but only for Lens?, we already use 8.11.  
What can I do to see multi-lines logs?

Thanks.

---

<div class="post-metadata">

**Author:** ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)\
**Post date:** [December 11, 2023, 8:31am UTC](https://discuss.elastic.co/t/allow-multi-line-breaking-using-n-in-discover-datatable/348975/3 "2023-12-11T08:31:23Z")

</div>

Hey, I am on 8.11.0 and I am testing this and it works fine

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/5/f524e4d9c5deedeaf6fe7e27a15e355caceb0aeb.png)

This is the document I ingest

```auto
PUT newline/_doc/4
{
  "message": "Newline2!\nHere's a newline"
}

```

What type is the field you use? In which mode are you? On the Document View where all the fields are been rendered or on the table view where you are selecting specific columns?

---

<div class="post-metadata">

**Author:** ![Saar\_Tamir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saar_tamir/32/123759_2.png) [@Saar\_Tamir](https://discuss.elastic.co/u/Saar_Tamir)\
**Post date:** [December 12, 2023, 8:28am UTC](https://discuss.elastic.co/t/allow-multi-line-breaking-using-n-in-discover-datatable/348975/4 "2023-12-12T08:28:40Z")

</div>

Hi @Stratoula_Kalafateli  
Yes, you are right, this way it's working well.  
What I'm trying to do is to send an event to elastic from NodeJS. So it looks like there's some problem with the way I send it. I'll try to look forward about it from my side, and I'll reply back if I find anything that might be related to Kibana side.

Thanks!

---

<div class="post-metadata">

**Author:** ![Stratoula\_Kalafateli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stratoula_kalafateli/32/70923_2.png) [@Stratoula\_Kalafateli](https://discuss.elastic.co/u/Stratoula_Kalafateli)\
**Post date:** [December 12, 2023, 8:29am UTC](https://discuss.elastic.co/t/allow-multi-line-breaking-using-n-in-discover-datatable/348975/5 "2023-12-12T08:29:34Z")

</div>

Sounds great, thank you 🙂

---

<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 9, 2024, 8:30am UTC](https://discuss.elastic.co/t/allow-multi-line-breaking-using-n-in-discover-datatable/348975/6 "2024-01-09T08:30:04Z")

</div>

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