# Convert JSON key value to index

**URL:** <https://discuss.elastic.co/t/convert-json-key-value-to-index/132705>\
**Category:** Logstash\
**Created:** [May 22, 2018, 12:51am UTC](https://discuss.elastic.co/t/convert-json-key-value-to-index/132705 "2018-05-22T00:51:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stang](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@Stang](https://discuss.elastic.co/u/Stang)\
**Post date:** [May 22, 2018, 12:51am UTC](https://discuss.elastic.co/t/convert-json-key-value-to-index/132705/1 "2018-05-22T00:51:38Z")

</div>

Hi,

I am new to elk and have a usecase to solve, my input JSON has key value pairs nested with json, I have to be able to use one of these as indexes to report in Kibana, Did anyone solve this kind of issue? Any ideas or suggestions would be greatly helpful.

Thanks,  
Stang

---

<div class="post-metadata">

**Author:** ![Olivia\_Smith](https://avatars.discourse-cdn.com/v4/letter/o/439d5e/32.png) [@Olivia\_Smith](https://discuss.elastic.co/u/Olivia_Smith)\
**Post date:** [May 22, 2018, 5:01am UTC](https://discuss.elastic.co/t/convert-json-key-value-to-index/132705/2 "2018-05-22T05:01:00Z")

</div>

If you are working with JSON , I hope these links will help.

[https://codeblogmoney.com/convert-string-to-json-using-javascript/](https://codeblogmoney.com/convert-string-to-json-using-javascript/) this article helps to understand conerting JSON String to Object.

[https://jsonformatter.org](https://jsonformatter.org) will help to understand and validate JSON object.

Let me know if you need more information.

---

<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 19, 2018, 5:01am UTC](https://discuss.elastic.co/t/convert-json-key-value-to-index/132705/3 "2018-06-19T05:01:06Z")

</div>

Closed on June 19, 2018, 5:01am UTC

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