# How to make analyzed string field visualized?

**URL:** <https://discuss.elastic.co/t/how-to-make-analyzed-string-field-visualized/49254>\
**Category:** Kibana\
**Created:** [May 5, 2016, 4:17am UTC](https://discuss.elastic.co/t/how-to-make-analyzed-string-field-visualized/49254 "2016-05-05T04:17:48Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)\
**Post date:** [May 5, 2016, 4:17am UTC](https://discuss.elastic.co/t/how-to-make-analyzed-string-field-visualized/49254/1 "2016-05-05T04:17:48Z")

</div>

I have created fields reading from a txt file, i.e. job\_id, as shown in the following figure. However, when I try to make visualization charts on it, there is no way to do it. Are here any ways to work on it?

 ![](https://us1.discourse-cdn.com/elastic/original/2X/c/c060527ecfd9ef9befa79008f5fd9a6858de6f5d.PNG)

Thanks.

---

<div class="post-metadata">

**Author:** ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)\
**Post date:** [May 5, 2016, 4:21am UTC](https://discuss.elastic.co/t/how-to-make-analyzed-string-field-visualized/49254/2 "2016-05-05T04:21:43Z")

</div>

I'm not sure if things have changed, but you can still graph an analyzed field in the Visualization app, it's just a warning.

---

<div class="post-metadata">

**Author:** ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)\
**Post date:** [May 5, 2016, 4:23am UTC](https://discuss.elastic.co/t/how-to-make-analyzed-string-field-visualized/49254/3 "2016-05-05T04:23:56Z")

</div>

![](https://us1.discourse-cdn.com/elastic/original/2X/6/682f441b1bcc620face97757b0bc378d62abf33d.PNG)  
I can't. Any way to work around?

Great thanks.

---

<div class="post-metadata">

**Author:** ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)\
**Post date:** [May 5, 2016, 4:25am UTC](https://discuss.elastic.co/t/how-to-make-analyzed-string-field-visualized/49254/4 "2016-05-05T04:25:27Z")

</div>

Can you expand the more info, and also how many unique job ids do you have?

---

<div class="post-metadata">

**Author:** ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)\
**Post date:** [May 5, 2016, 4:27am UTC](https://discuss.elastic.co/t/how-to-make-analyzed-string-field-visualized/49254/5 "2016-05-05T04:27:36Z")

</div>

Error: Request to Elasticsearch failed: {"error":{"root\_cause":[{"type":"illegal\_state\_exception","reason":"Field data loading is forbidden on [job\_id]"}],"type":"search\_phase\_execution\_exception","reason":"all shards failed","phase":"query","grouped":true,"failed\_shards":[{"shard":0,"index":"logstash-2016.05.05","node":"qNjQTv0iRCeEmB5KURgSew","reason":{"type":"illegal\_state\_exception","reason":"Field data loading is forbidden on [job\_id]"}}]}}  
at [http://172.16.1.233:5601/bundles/kibana.bundle.js?v=9889:80106:39](http://172.16.1.233:5601/bundles/kibana.bundle.js?v=9889:80106:39)  
at Function.Promise.try ([http://172.16.1.233:5601/bundles/commons.bundle.js?v=9889:61110:23](http://172.16.1.233:5601/bundles/commons.bundle.js?v=9889:61110:23))  
at [http://172.16.1.233:5601/bundles/commons.bundle.js?v=9889:61079:31](http://172.16.1.233:5601/bundles/commons.bundle.js?v=9889:61079:31)  
at Array.map (native)  
at Function.Promise.map ([http://172.16.1.233:5601/bundles/commons.bundle.js?v=9889:61078:31](http://172.16.1.233:5601/bundles/commons.bundle.js?v=9889:61078:31))  
at callResponseHandlers ([http://172.16.1.233:5601/bundles/kibana.bundle.js?v=9889:80078:23](http://172.16.1.233:5601/bundles/kibana.bundle.js?v=9889:80078:23))  
at [http://172.16.1.233:5601/bundles/kibana.bundle.js?v=9889:79583:17](http://172.16.1.233:5601/bundles/kibana.bundle.js?v=9889:79583:17)  
at processQueue ([http://172.16.1.233:5601/bundles/commons.bundle.js?v=9889:42356:29](http://172.16.1.233:5601/bundles/commons.bundle.js?v=9889:42356:29))  
at [http://172.16.1.233:5601/bundles/commons.bundle.js?v=9889:42372:28](http://172.16.1.233:5601/bundles/commons.bundle.js?v=9889:42372:28)  
at Scope.$eval ([http://172.16.1.233:5601/bundles/commons.bundle.js?v=9889:43600:29](http://172.16.1.233:5601/bundles/commons.bundle.js?v=9889:43600:29))

I am only having 4 job\_id  
0001, 0002, 0003, 0004

---

<div class="post-metadata">

**Author:** ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)\
**Post date:** [May 5, 2016, 4:47am UTC](https://discuss.elastic.co/t/how-to-make-analyzed-string-field-visualized/49254/6 "2016-05-05T04:47:31Z")

</div>

Oh I found a way to work around myself. There is another field called job\_id.raw which can do the visualization purpose.

---

<div class="post-metadata">

**Author:** ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)\
**Post date:** [May 5, 2016, 5:17am UTC](https://discuss.elastic.co/t/how-to-make-analyzed-string-field-visualized/49254/7 "2016-05-05T05:17:24Z")

</div>

Since you job\_id is just number, I think you should have mapped it as not\_analyzed string instead of having another job\_id.raw field.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 5, 2016, 7:51am UTC](https://discuss.elastic.co/t/how-to-make-analyzed-string-field-visualized/49254/8 "2016-05-05T07:51:23Z")

</div>

This is definitely the better option.

---

<div class="post-metadata">

**Author:** ![Kennedy\_Kan1](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Kennedy\_Kan1](https://discuss.elastic.co/u/Kennedy_Kan1)\
**Post date:** [May 5, 2016, 9:27am UTC](https://discuss.elastic.co/t/how-to-make-analyzed-string-field-visualized/49254/9 "2016-05-05T09:27:59Z")

</div>

how can I map it as not analyzed string

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 5, 2016, 9:51am UTC](https://discuss.elastic.co/t/how-to-make-analyzed-string-field-visualized/49254/10 "2016-05-05T09:51:43Z")

</div>

In the mappings/templates - [https://www.elastic.co/guide/en/elasticsearch/guide/master/index-templates.html](https://www.elastic.co/guide/en/elasticsearch/guide/master/index-templates.html)

---

<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, 1:54pm UTC](https://discuss.elastic.co/t/how-to-make-analyzed-string-field-visualized/49254/11 "2017-07-06T13:54:16Z")

</div>


