# Best way to show HTTPStatusCodes in graph

**URL:** <https://discuss.elastic.co/t/best-way-to-show-httpstatuscodes-in-graph/60022>\
**Category:** Kibana\
**Created:** [September 7, 2016, 10:15pm UTC](https://discuss.elastic.co/t/best-way-to-show-httpstatuscodes-in-graph/60022 "2016-09-07T22:15:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer\_Panicker](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sameer\_Panicker](https://discuss.elastic.co/u/Sameer_Panicker)\
**Post date:** [September 7, 2016, 10:15pm UTC](https://discuss.elastic.co/t/best-way-to-show-httpstatuscodes-in-graph/60022/1 "2016-09-07T22:15:55Z")

</div>

Previously -

 ![](https://us1.discourse-cdn.com/elastic/original/2X/1/1d9506dd77b2bfd0da4b6bffa667bc907b5ac149.png)  
The previous one had Bad Request displayed seperately as it had a space.

Now-

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

Is there a better way to generate chart with http status codes which has/not has spaces?

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [September 8, 2016, 10:00pm UTC](https://discuss.elastic.co/t/best-way-to-show-httpstatuscodes-in-graph/60022/2 "2016-09-08T22:00:59Z")

</div>

The reason your status text is getting split on words is because the field value is "analyzed" to make it more searchable. If you store a non-analyzed version of the text it won't be split into individual tokens, but the entire value will be treated as a single token.

This is done automatically when you use logstash, it created `.raw` versions of all string fields which stored the original non-analyzed version, so you will regularly see examples with `status_text.raw` so that `Not Found` is not treated as the two terms `Not` and `Found`

---

<div class="post-metadata">

**Author:** ![Sameer\_Panicker](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sameer\_Panicker](https://discuss.elastic.co/u/Sameer_Panicker)\
**Post date:** [September 9, 2016, 10:27pm UTC](https://discuss.elastic.co/t/best-way-to-show-httpstatuscodes-in-graph/60022/3 "2016-09-09T22:27:45Z")

</div>

Currently, I don't have \*.raw fields. Is there any other way to implement it ?

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [September 9, 2016, 10:58pm UTC](https://discuss.elastic.co/t/best-way-to-show-httpstatuscodes-in-graph/60022/4 "2016-09-09T22:58:18Z")

</div>

I'm afraid not

---

<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:39pm UTC](https://discuss.elastic.co/t/best-way-to-show-httpstatuscodes-in-graph/60022/5 "2017-07-06T13:39:11Z")

</div>


