This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Logs
editLogs
editElastic APM Go Agent provides Log Correlation. The agent will automaticaly inject correlation IDs that allow navigation between logs, traces and services.
This features is part of Application log ingestion strategies.
The ecslogrus
and ecszap
libraries can also be used to use the ECS logging format without an APM agent.
When deployed with the Go APM agent, the agent will provide log correlation IDs.
The Go agent provides integrations for popular logging frameworks that inject trace ID fields into the application’s log records. You can find a list of the supported logging frameworks under supported technologies.
If your favorite logging framework is not already supported, there are two other options:
- Open a feature request, or contribute code, for additional support as described in Contributing.
- Manually inject trace IDs into log records, as described below in Manual log correlation.