-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use ILM to manage internal indices #38470
Comments
Pinging @elastic/es-core-features |
Pinging @elastic/ml-core |
|
@gwbrown we have talked about doing this for Related issues:
|
related: #38805 Because ILM is a module that can be turned off, any dependency introduced must also add checks to prevent combinations like "ILM:off" + "Dependent Module:on" |
Adding apm-* indices as another option? |
Is this still being worked on? I'm currently working through cleaning up my own indices as I have ILM setup for all my indexes and cut down my total count to just 41. Looking all the numerous system indices created it's currently at 81... 2x the amount of my own indices... It'd be great if we could use the same ILM logic and perhaps just set a total shard size of 50GB rather than these daily indices...
|
Following... |
The recommended approach is to continue to use the cleaner service : https://www.elastic.co/guide/en/elasticsearch/reference/current/local-exporter.html#local-exporter-cleaner. Note - this requires enabling the local exporter (if you don't have it enabled already, it is the default) and if you don't want to actually self monitor you can disable the collection of monitoring data (per the reference guide). This is admittedly a bit award but we are working towards removing the cleaner service in favor of ILM. Also note - it is possible to use ILM today to delete these indices by modifying the .monitoring index template, but we do not recommend that since the system can land new versions of the template and overwrite your changes. |
@jakelandis Your recommended solution doesn't work in ESS
What should I do? BTW #53100 and #53101 are closed, can we now expect this to be fixed ASAP? |
You can set it dynamically on ESS.
|
Stack monitoring, when using MetricBeat or Fleet on 8.0+ will use data streams and ILM. Legacy monitoring and Metricbeat 6/7.x will continue to use daily indices whose retention can be configured with I am closing this issue as to my knowledge all 8.x internal time series indices are configured to use ILM. |
Now that we have a system for curating indices built-in to Elasticsearch in Index Lifecycle Management, we should use this for internal indices which either already roll over through another mechanism or would benefit from automatically rolling over.
Some of this work has already been completed, see #37443 for an example.
Internal indices which we may want to manage this way include:
.watch-history-*
.monitoring-alerts-*
.monitoring-beats-*
.monitoring-es-*
.monitoring-kibana-*
.monitoring-logstash-*
.ml-anomalies-*
.ml-state-*
The above list is preliminary and may be missing indices or contain indices we may choose to not manage with ILM.
The text was updated successfully, but these errors were encountered: