# How to get large strings in elasticsearch and kibana

**URL:** <https://discuss.elastic.co/t/how-to-get-large-strings-in-elasticsearch-and-kibana/120842>\
**Category:** Elasticsearch\
**Created:** [February 21, 2018, 12:56pm UTC](https://discuss.elastic.co/t/how-to-get-large-strings-in-elasticsearch-and-kibana/120842 "2018-02-21T12:56:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajit](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@ajit](https://discuss.elastic.co/u/ajit)\
**Post date:** [February 21, 2018, 12:56pm UTC](https://discuss.elastic.co/t/how-to-get-large-strings-in-elasticsearch-and-kibana/120842/1 "2018-02-21T12:56:32Z")

</div>

Hi,  
I am pushing large string values in elasticsearch. But it is not showing in kibana. I have query to update mapping. But it is showing resource\_already\_exists exception.  
I want to update mapping for large strings without deleting index.

PUT cap\_log\_beta  
{  
"mappings": {  
"doc": {  
"dynamic\_templates": [  
{  
"strings": {  
"match\_mapping\_type": "string",  
"mapping": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword"  
}  
}  
}  
}  
}  
]  
}  
}  
}

How to fire this query without deleting index. Or Please provide me other way to show large strings in kibana.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 21, 2018, 1:11pm UTC](https://discuss.elastic.co/t/how-to-get-large-strings-in-elasticsearch-and-kibana/120842/2 "2018-02-21T13:11:29Z")

</div>

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.  
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.  
Please update your post.

Have a look at [https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html)

That might work but I'm unsure though.  
Anyway, your change won't be applied to existing data if that was your intention. It will be applied only for new documents or updated documents.

---

<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 21, 2018, 1:12pm UTC](https://discuss.elastic.co/t/how-to-get-large-strings-in-elasticsearch-and-kibana/120842/3 "2018-03-21T13:12:26Z")

</div>

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