I have set up ELK stack and following type of JSON is getting stored in elasticsearch(following JSON is copied from Kibana UI).
Now I want to display Vertical bar chart which will have Top 5 "hostname" when "action" is equal to "passthrough"
{
"_index": "logstash-2016.06.16",
"_type": "utm",
"_id": "AVVaFcaB7mNsx5uOb1-_",
"_score": null,
"_source": {
"message": "<190>date=2016-06-16 time=22:10:26 hostname=\"googleads.g.doubleclick.net\" profile=\"Software_Dept\" action=passthrough",
"@version": "1",
"@timestamp": "2016-06-16T16:40:24.284Z",
"hostname": "googleads.g.doubleclick.net",
"profile": "Software_Dept",
"action": "passthrough"
},
"fields": {
"@timestamp": [
1466095224284
]
},
"sort": [
1466095224284
]
}
I am stuck here, able to show top 5 hostname but they are not filtered by "action" is equal to "passthrough".