# How to parse json into logstash to display data in kibana

**URL:** https://discuss.elastic.co/t/how-to-parse-json-into-logstash-to-display-data-in-kibana/121169
**Category:** Logstash
**Created:** [February 23, 2018, 5:41am UTC](https://discuss.elastic.co/t/how-to-parse-json-into-logstash-to-display-data-in-kibana/121169 "2018-02-23T05:41:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Rajkumar\_idsil](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@Rajkumar\_idsil](https://discuss.elastic.co/u/Rajkumar_idsil)
#### Post date: [February 23, 2018, 5:41am UTC](https://discuss.elastic.co/t/how-to-parse-json-into-logstash-to-display-data-in-kibana/121169/1 "2018-02-23T05:41:51Z")

</div>

logstash.conf

input {  
file {  
path =\> "E:\Rajkumar\ELK-InputOutput\Input.log"  
start\_position =\> "beginning"  
type =\> "json"  
}  
}  
filter {

}  
output {  
elasticsearch {  
hosts =\> "[http://192.168.77.59:9200](http://192.168.77.59:9200)"  
index =\> "input\_files"  
document\_type =\> "employeeData"  
document\_id =\> "%{@timestamp}"

}  
stdout { codec =\> rubydebug }  
}

Input.log  
{"account\_number":1,"balance":39225,"firstname":"Amber","lastname":"Duke","age":32,"gender":"M"}

how to display into kibana into grid format so that we can create pie chart?

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [February 23, 2018, 7:07am UTC](https://discuss.elastic.co/t/how-to-parse-json-into-logstash-to-display-data-in-kibana/121169/2 "2018-02-23T07:07:26Z")

</div>

What you have should work. If it doesn't it's probably related to sincedb, so read the file input documentation and the hundreds of past threads that have discussed 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: [March 23, 2018, 7:07am UTC](https://discuss.elastic.co/t/how-to-parse-json-into-logstash-to-display-data-in-kibana/121169/3 "2018-03-23T07:07:37Z")

</div>

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