Hi all,
I have a lot of JSON data and I want to visualize it. I have seen the POST_bulk method in Kibana, but it is not dynamic. We can not update the data whenever it is being generated. So, I thought of using logstash for this purpose and read my JSON files. I am not able to find the exact solution to this. I am posting my logstash.conf file below. What changes do I have to make?
input{
file{
path => "C:\Users\tushar\Documents\Reports\JsonData\first_run*.json"
start_position => "beginning"
type => "json"
sincedb_path => "NULL"
}
# stdin{}
}
filter{
json{
source => "message"
}
}
output{
elasticsearch{
hosts => "http://localhost:9200"
index => "jsondata"
}
stdout{
codec =>"rubydebug"
}
}
`````````````````````````````````````````````````````````````````````````````
I have gone through a few discussions on this topic on this site only. But I am not able to find the solution from those discussions. Also currently by using this logstash.conf, I am not able to read the JSON file and it is not getting reflected in Kibana UI Index. Kindly, help me with this.