# How to add new line in between string field

**URL:** <https://discuss.elastic.co/t/how-to-add-new-line-in-between-string-field/40257>\
**Category:** Logstash\
**Created:** [January 27, 2016, 3:26pm UTC](https://discuss.elastic.co/t/how-to-add-new-line-in-between-string-field/40257 "2016-01-27T15:26:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![srujani](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@srujani](https://discuss.elastic.co/u/srujani)\
**Post date:** [January 27, 2016, 3:26pm UTC](https://discuss.elastic.co/t/how-to-add-new-line-in-between-string-field/40257/1 "2016-01-27T15:26:07Z")

</div>

Hi,

Added the below configuration in logstash

mutate {

```
add_field => ["temp", "Adapter Name: %{adaptername}
 			Records Imported: %{records}
 			Records Failed: %{[failedrecords][1]} "] 

```

i would like to display the text like below

Adapter Name: ad1  
Records Read:10  
Records Failed: 10

each in new line.

Please let me know the solution. Thanks you for the help!

---

<div class="post-metadata">

**Author:** ![sstorie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sstorie/32/13945_2.png) [@sstorie](https://discuss.elastic.co/u/sstorie)\
**Post date:** [December 16, 2016, 1:48pm UTC](https://discuss.elastic.co/t/how-to-add-new-line-in-between-string-field/40257/2 "2016-12-16T13:48:49Z")

</div>

Any luck with this? I'm trying to format a string being sent as part of the HTTP output plugin, and need to insert newlines into a string built from different fields of my incoming log.

---

<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:** [July 6, 2017, 4:29am UTC](https://discuss.elastic.co/t/how-to-add-new-line-in-between-string-field/40257/3 "2017-07-06T04:29:49Z")

</div>


