I want to create new index every day, therefore my logstash output configuraiton looks as this:
output {
elasticsearch {
index => "metricbeat-linux-vms-%{+YYYY.MM.dd}"
I also have an ILM policy which defines rollover after 50gb and I have an index template which uses this ilm policy and is applied to all indeces with metricbeat-linux-vms*.
Where do I define that after 50gbs are reached a new index is created like: metricbeat-linux-vms-2020-07-31-000001?
Sorry, by saying "guys" I do not have specific gender in my mind. So my ILM policy is pretty easy: I want to create a new index onces my existing one has reached 50GB. I created in in Kibana. And I have an Indx template, which is using this policy:
What would be the rollover alias in this case? I need to provide it in the index template and I am not sure what I need to provide here.
So you would suggest to leave out the timestamp from the index name and to have instead an index like:
metricbeat-linux-vms ?
I have problems to understand how I can create daily indeces then. My idea was to create an index every day to maintain them easier (for example delete all index with metricbeat-linux-vms-2020.08*"
The idea is that ILM knows how old the indices are, even if they aren't created with a date in the name. So all you need to do there is set the retention period in the policy.
What is inside the rollover_alias of the index template then ? Just 1:1 the name of the index ?
So when I want to write into index: metricbeat-linux-vms my rollover_alias will be metricbeat-linux-vms and when I set the max_age to 1 day after a day has passed I will see an index called:
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.