Hi, I have managed to get my ELK stack up and ruining which filters logs using grok and passes data to elasticsearch
and allows me to visualize in Kibana.
Currently
I have completed the above task by using one log file and passes data with logstash to one index in elasticsearch :
yellow open logstash-2016.10.19 5 1 1000807 0 364.8mb 364.8mb
What I actually want to do
If i have the following logs files which are named according to Year,Month and Date
You are aware that indexes have a fixed memory overhead and that having too many indexes is a bad idea? With one index per logfile per day the numbers will quickly run up.
The index name is set with the index option of the elasticsearch output. It supports %{fieldname} references, so if you have a logfilename field containing the filename you could do this:
output {
elasticsearch {
...
index => "%{logfilename}-%{+YYYY.MM.dd}"
}
}
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.