I've run this config for a year now and this is creating a lot of indexes (one or more per day).
Is this supposed to be a code example to illustrate the possibilities offered in output, or the best way to organize the data ?
Should I have simply created a single index like this ?
How large are your daily indicies? This will be the determining factor. I would not remove the date element completely as eventually the indicies will become too large, and deleting data to make space will be a more complex process. However, you may be able to move from daily to monthly indicies if your current daily indicies are really small (e.g. < 1GB).
That is pretty small. I if changed to monthly indices, by changing this...
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
to this...
index => "%{[@metadata][beat]}-%{+YYYY.MM}"
You will reduce the number of indices significantly. The only downside is that if you want to drop old data by simply deleting old indices, you would have to drop a full month at a time, but this is likely not an issue in your case.
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.