How to parse json into logstash to display data in kibana


(rajkumar) #1

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"
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?


(Magnus B├Ąck) #2

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.


(system) #3

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