# Categorizing Values of a Field

**URL:** <https://discuss.elastic.co/t/categorizing-values-of-a-field/232165>\
**Category:** Kibana\
**Created:** [May 12, 2020, 8:19am UTC](https://discuss.elastic.co/t/categorizing-values-of-a-field/232165 "2020-05-12T08:19:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dzoni](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@dzoni](https://discuss.elastic.co/u/dzoni)\
**Post date:** [May 12, 2020, 8:19am UTC](https://discuss.elastic.co/t/categorizing-values-of-a-field/232165/1 "2020-05-12T08:19:22Z")

</div>

Hello there,  
in a field of Kibana i have different values.  
Is it possible to generate two kategories for example like good and bad.  
In order to define which values are good and which not.  
So after that i can generate a time series with two line which are aggregating all values of goog and all of bad.

Afterwards i want to administrate this categories when new values appers.  
Or what will better that new values will be automaticly god, till i will Change them to bad.

Is there a way in Kibana i can solve this case?

greetings

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [May 12, 2020, 2:05pm UTC](https://discuss.elastic.co/t/categorizing-values-of-a-field/232165/2 "2020-05-12T14:05:30Z")

</div>

Yes. What you are looking for is scripted fields.

[https://www.elastic.co/guide/en/kibana/current/scripted-fields.html](https://www.elastic.co/guide/en/kibana/current/scripted-fields.html)

Create a new field that does your "good"/"bad" categorization, and then you can use that field when creating charts.

---

<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:** [June 9, 2020, 2:05pm UTC](https://discuss.elastic.co/t/categorizing-values-of-a-field/232165/3 "2020-06-09T14:05:30Z")

</div>

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