# How to use json input in my case?

**URL:** <https://discuss.elastic.co/t/how-to-use-json-input-in-my-case/189528>\
**Category:** Kibana\
**Created:** [July 9, 2019, 10:55am UTC](https://discuss.elastic.co/t/how-to-use-json-input-in-my-case/189528 "2019-07-09T10:55:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerry1989](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@Jerry1989](https://discuss.elastic.co/u/Jerry1989)\
**Post date:** [July 9, 2019, 10:55am UTC](https://discuss.elastic.co/t/how-to-use-json-input-in-my-case/189528/1 "2019-07-09T10:55:58Z")

</div>

My kibana version is 5.5  
I have splited the slice by specific field, below is the result I got.  
But I want all sets "/queries/xxxx" to be merged to new category like "get query", and rename the "/queries" to "post query", and finally only 4 categories show on the pie chart.(get query/post query/health/jobs)

 ![kibana](https://us1.discourse-cdn.com/elastic/original/3X/4/3/43594b8a8cdd49ec4bb05d00dcf3e04c4cecb5a6.png)

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [July 10, 2019, 9:14pm UTC](https://discuss.elastic.co/t/how-to-use-json-input-in-my-case/189528/2 "2019-07-10T21:14:55Z")

</div>

You could use a [scripted field](https://www.elastic.co/guide/en/kibana/current/scripted-fields.html) to group `ul_log_data.apg_request_path.keyword` into your desired categories. Then use the scripted field in the visualization.

---

<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:** [August 7, 2019, 9:15pm UTC](https://discuss.elastic.co/t/how-to-use-json-input-in-my-case/189528/3 "2019-08-07T21:15:01Z")

</div>

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