Hello ,
I need a help on configuration of logstash output section....i want to create an index and fetch some particular logs on that index...whenever am creating a new index it is not showing on kibana
output {
if "/var/log/abcd.log" in [log][file][path] {
elasticsearch {
hosts => ["http://localhost:9200"]
index => "abcd-%{+YYYY.MM.dd}"
manage_template => false
pipeline => "%{[@metadata][pipeline]}"
}
} else {
elasticsearch {
hosts => ["http://localhost:9200"]
index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
}
}
}
You don't need to change anything, [log][file][path] is in LS as well as in FB.
Please use ruby debug in the output to check the [log][file][path] value:
My index is creating after a very long time...like I created an index on 18th of August and it is showing on Kibana today i.e: 22nd of August
so let me know if it is okay that it is taking time to load the index on Kibana.
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.