Upgrade to data streams
editUpgrade to data streams
editClassic indices are deprecated starting in version 7.16.0. Users that are not ready to Switch to the Elastic APM integration should upgrade to data streams in the meantime.
Why upgrade?
editData streams offer a number of benefits over classic indices:
Data streams:
- Reduced number of fields per index, better space efficiency, and faster queries
- More granular data control
- Errors and metrics data streams are shared with other data sources — which means better long-term integration with the logs and metrics apps
- Removes template inheritance for ILM policies and makes use of new Elasticsearch index and component templates
-
Fixes
resource 'apm-7.16.3-$type' exists, but it is not an alias
Data streams considerations
edit- Users on Elastic Cloud Enterprise require additional steps prior to migrating, like configuring TLS certificates for the connection between APM Server and Elasticsearch
- RUM sourcemaps are not working with data streams in 7.16 — this will be fixed in 8.0
Upgrade a self-managed APM Server
editUpgrade the Elastic Stack
editThe Elastic Stack (Elasticsearch and Kibana) must be upgraded prior to APM Server. See the Elastic Stack Installation and Upgrade Guide for guidance.
Review the APM release notes, breaking changes, and Observability What’s new content for important changes between your current APM version and this one.
Add the APM integration
editBefore enabling data streams in APM Server, the APM integration must be added to your cluster. This enables Fleet to set up ingest templates, ILM policies, and ingest pipelines when APM Server tries to connect.
- In Kibana, navigate to Management > Fleet. First time? The page may take a few minutes to load.
- Select Agent policies > Default policy and click Add integration.
- Search for and select Elastic APM. Under step one, select APM integration.
- Click Add Elastic APM. Configuring the integration is not required as we’re only using the integration to set up Elasticsearch resources. Click Save and Continue and then Add Elastic Agent later (you don’t need to add an Elastic Agent later).
Configure APM Server to use data streams
edit-
Stop APM Server and set
data_streams.enabled: true
in apm-server.yml:apm-server: data_streams.enabled: true
- Restart APM Server.
Configure resources
editNeed to customize anything?
- See Index lifecycle management to learn about the new default Index lifecycle management (ILM) policies applied to data streams and how to customize them.
- See Parse data using ingest pipelines for more information on how to edit or view ingest pipelines.