Use the index lifecycle management (ILM) feature in Elasticsearch to manage your APM Server indices as they age. ILM enables you to automate how you want to manage your indices over time, by automating rollovers to a new index when the existing index reaches a specified size or age.
You can view and edit the index lifecycle policies in the Index lifecycle policies UI in Kibana. For more information about working with the UI, see Index lifecycle policies.
APM Server currently offers two ways to get started with ILM:
If you’re migrating from an existing setup, any indices present before ILM was configured will need to be managed manually.