# How to use URL decode on JSON Input?

**URL:** <https://discuss.elastic.co/t/how-to-use-url-decode-on-json-input/106626>\
**Category:** Kibana\
**Created:** [November 7, 2017, 5:48am UTC](https://discuss.elastic.co/t/how-to-use-url-decode-on-json-input/106626 "2017-11-07T05:48:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![keyolk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keyolk/32/23955_2.png) [@keyolk](https://discuss.elastic.co/u/keyolk)\
**Post date:** [November 7, 2017, 5:48am UTC](https://discuss.elastic.co/t/how-to-use-url-decode-on-json-input/106626/1 "2017-11-07T05:48:22Z")

</div>

Hello,

I don't know well at kibana yet. : (

I have filed which has UTF-8 urlencoded string.  
Is there a simple way to decode it on JSON Input from Kibana ?  
I have found painless script reference but didnt find proper way.

Anyone can help ?

example)

in filed query, it has utf-8 encoded korean characters like below

%EC%84%9C%EC%9A%B8%EC%84%9C%EC%B4%88%EA%B5%AC%EC%9D%B8%EB%A0%A5

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [November 7, 2017, 4:43pm UTC](https://discuss.elastic.co/t/how-to-use-url-decode-on-json-input/106626/2 "2017-11-07T16:43:51Z")

</div>

Can you provide some sample data from the field?

---

<div class="post-metadata">

**Author:** ![keyolk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keyolk/32/23955_2.png) [@keyolk](https://discuss.elastic.co/u/keyolk)\
**Post date:** [November 8, 2017, 1:13am UTC](https://discuss.elastic.co/t/how-to-use-url-decode-on-json-input/106626/3 "2017-11-08T01:13:30Z")

</div>

in field "query", it has utf-8 encoded korean characters.

%EC%84%9C%EC%9A%B8%EC%84%9C%EC%B4%88%EA%B5%AC%EC%9D%B8%EB%A0%A5

it should be

서울서초구인력

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [November 8, 2017, 3:59pm UTC](https://discuss.elastic.co/t/how-to-use-url-decode-on-json-input/106626/4 "2017-11-08T15:59:19Z")

</div>

Why is it encoded, rather than simply storing "서울서초구인력" in the field?

---

<div class="post-metadata">

**Author:** ![keyolk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keyolk/32/23955_2.png) [@keyolk](https://discuss.elastic.co/u/keyolk)\
**Post date:** [November 9, 2017, 1:24am UTC](https://discuss.elastic.co/t/how-to-use-url-decode-on-json-input/106626/5 "2017-11-09T01:24:40Z")

</div>

It is httpd's log which is not under my control.  
the filed is for request param.  
I can touch this on kibana but no right to change filebeat, elasticsearch.

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [November 9, 2017, 8:38pm UTC](https://discuss.elastic.co/t/how-to-use-url-decode-on-json-input/106626/6 "2017-11-09T20:38:33Z")

</div>

Unfortunately there's not really a way to do this, but you could write a Kibana plugin that adds a custom field formatter to accomplish this.

---

<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:** [December 7, 2017, 8:39pm UTC](https://discuss.elastic.co/t/how-to-use-url-decode-on-json-input/106626/7 "2017-12-07T20:39:10Z")

</div>

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