I'm new in ELK and I need your help.
I want to see my log4j2 logs into Kibana.
For that i created and index in ES trying to map the fields from my log :
curl -XPUT localhost:9200/log_index -d '
{
"settings" : {
"index" : {
"number_of_shards" : 5,
"number_of_replicas" : 0
}
}
}
'
which plugin you are using to fetch logs that should be input to Elasticsearch?
Is there any index in elasticsearch ?
Check that index is pushed into elasticsearch via curl API as:
curl http://:9200/_cat/indices?v
if index is successfully created in elasticsearch but unable to fetch in kibana then there is some issue in kibana and if index is not created in ES then there is some communication issue between elasticsearch and plugin by which you are pushing the data.
for this share the elasticsearch logs
The index is created :
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open .kibana Bqd3zVbDQk2TQ2LSyR_gxw 1 1 2 0 9.2kb 9.2kb
yellow open logstash-2017.09.12 lTgMTJsZSDiENOz1IEnxNw 5 1 1 35 8.4kb 8.4kb
p.s. that AWS EC2 instance was blocking and I created a new one with a new install and instead of creating my intial index I created the dynamic one using timestamp "logstash-*" but the problem is the same.
As talking about plugin from what I know Logstash doesn't have yet a plugin for Log4j2.
If I don't have any plugins installed cannot work?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.