Correlate Logs with Metrics
Overview
Within the Datadog app there are several ways to correlate logs with metrics. Views like Log Explorer, Dashboards, and Metrics Explorer offer detailed panels and instant view switching to help you quickly gain context of an issue and map it throughout your service.
This guide shows you how to correlate logs and metrics throughout these views.
Log Explorer
To correlate logs and metrics in the Log Explorer:
- Click on any log under the Content column. This expands a panel with detailed information about the log.
- Click on the Metrics tab within the panel.
Dashboards
To correlate logs and metrics in a Dashboard:
- Navigate to your dashboard.
- Click on any data point within any widget to populate the graph menu.
- If your widget contains logs events that you wish to correlate with metrics:
- Select View related logs to populate a panel with detailed information about related logs.
- Select a specific log event.
- Click on the Metrics tab.
- If your widget contains metrics that you wish to correlate with logs:
- Select View related logs.
Metrics Explorer
To correlate logs and metrics on the Metrics Explorer page:
- Select a metric to graph.
- Click on any point within the graph to populate the graph menu.
- Select View related logs.
Further reading
Additional helpful documentation, links, and articles:
*Logging without Limits is a trademark of Datadog, Inc.