Hi,
I am new to elastic apm and have been facing issue with ilm policies.
Following tasks are done:
Edited metrics-apm.app_metrics-default_policy and saved as custom-metrics-apm.app_metrics-default_policy
Updated ilm policy in metrics-apm.app@custom component template. Applied and saved it.
Then chose the option to wait for next rollover and apply while saving the template.
Next day, suddenly all the metrics-apm-default indices are rolled-over, even though the condition of 30 days was not met.
To rule out the interference of fleet, I created a new ilm policy new-metrics-apm.app_metrics-default_policy, with 90d or 50GB max primary shard condition in hot phase; and 180d deletion phase age.
Then I have updated it in metrics-apm.app@custom component template. Applied and saved it.
This time while saving I chose Rollover now and apply policy.
All the indices got rolled-over immediately, as expected.
But after ~5 min, all the metrics-apm-default indices got rolled-over automatically.
Please help me understand this abrupt rollover behaviour.
Elasticsearch version: 8.8.0
APM server version: 8.8.1
No fleet server was used in the installation.
I see no issues in the policy, the new policy should rollover after 90 days or if a primary shard reaches 50 gb, so not sure what is happening, you will need to provide more evidence.
What is the return of GET _cat/shards? This will show your shards to help understand how your indices looks like.
Also, check the elasticsearch logs and see if there is some logs about ILM.
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.