How to define fields in kibana


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


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.

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