Logs
Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud. Availability This functionality is generally available and ready for production usage. The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats. Availability This functionality is generally available and ready for production usage. Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes. The Elastic APM Go agent enables you to trace the execution of operations in your Go applications, sending performance metrics and errors to the Elastic APM Server. Availability This functionality is generally available and ready for production usage. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
Serverless Observability
Generally available
Stack
Generally available
APM Agent Go
Generally available
Elastic 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.