How to define fields in kibana

(Prateek Kshtriya) #1


I am using Acconts.json as a data file which is having different fields e.g firstName, lastName ,city etc but I am not able to get the same as different fields in kibana.
Please suggest how to apply filters to get the data (in logstash config file).


(Magnus B├Ąck) #2

This is a Logstash question, not a Kibana question. Please edit your post and change its category.

You need to use the json codec or json filter to parse the contents of the message field as JSON.

(Prateek Kshtriya) #3

Adding codec => "json" within input{} helped to get the fields.


(system) #4