Hi everyone,
Currently i’m sending a log file (json format) from FileBeat (Windows Server) to Logstash (parsing json file) then from logstash to elasticsearch then I want to retrieve this data in Grafana with a table panel.
Source Log :
{“@timestamp”:“2018-08-13T23:07:22.905+00:00”,“@version”:“1”,“message”:“Started ApplicationWebXml in 43.358 seconds (JVM running for 233.488)”,“logger_name”:“com.XXX.XXX.XXX.ApplicationWebXml”,“thread_name”:“XXX.XXX.XXX-startStop-1”,“level”:“INFO”,“level_value”:20000}
FileBeat :
filebeat.inputs:
- type: log
enabled: true
paths:
- C:\LOGS*
output.logstash:
hosts: [“192.168.1.113:5044”]
Logstash :
input {
beats {
port => “5044”
}
}
filter {
json {
source => “message”
}
}
output {
elasticsearch {
hosts => [ “192.168.1.112:9200” ]
}
}
Elasticsearch (example from Kibana) :
Elasticsearch - Indicies :
- logstash-2018.08.13
- logstash-2018.08.14
I can see my json message is correctly parsed and stored in elasticsearch :
Grafana - DataSource :
My data source is correctly configured ( I can’t post a screenshot due to limit to 2 for new users).
Time field is @timestamp
Grafana - Table Panel :
I select Elasticsearch source but I can not retrieve correctly my ES data …
I just want to display fields we can see in kibana screenshot into grafana table panel.
I’m using Elasticsearch 6.4.1.
Thanks a lot, each help will be warmly welcomed