# Show Field text in two lines

**URL:** https://discuss.elastic.co/t/show-field-text-in-two-lines/129037
**Category:** Kibana
**Created:** [April 23, 2018, 6:21am UTC](https://discuss.elastic.co/t/show-field-text-in-two-lines/129037 "2018-04-23T06:21:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![paul1243](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@paul1243](https://discuss.elastic.co/u/paul1243)
#### Post date: [April 23, 2018, 6:21am UTC](https://discuss.elastic.co/t/show-field-text-in-two-lines/129037/1 "2018-04-23T06:21:27Z")

</div>

Hi,  
I have a text field in elasticsearch and would like to create a scripted field to show the same field in couple of lines, something like below:

```auto
**Field:**
token = "192.168.128.1:TestVitualServer"

```

I would like to split the above field with ':' and show the '192.168.128.1' on top 'TestVirtualServer' in next line on any Visualization?Could you please help me in doing it. Thanks

---

<div class="post-metadata">

### Author: ![chrisronline](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrisronline/32/28230_2.png) [@chrisronline](https://discuss.elastic.co/u/chrisronline)
#### Post date: [April 23, 2018, 4:25pm UTC](https://discuss.elastic.co/t/show-field-text-in-two-lines/129037/2 "2018-04-23T16:25:52Z")

</div>

Hi @paul1243,

I tried to get this to work, but wasn't able. Your best bet might be to index them in a separate field with the newline character added. That seems to work for me.

Let me know if this helps

Thanks,  
Chris

---

<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: [May 21, 2018, 4:25pm UTC](https://discuss.elastic.co/t/show-field-text-in-two-lines/129037/3 "2018-05-21T16:25:56Z")

</div>

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