How to define fields in kibana


(Prateek Kshtriya) #1

Hi,

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).


Regards,
Prateek


(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.

Regards.


(system) #4