Skip to content

Correlations

Correlations allow you to link trace datasets with logs datasets, enabling you to view related log entries when analyzing distributed traces. Correlating datasets helps you quickly identify the root cause of issues by connecting trace spans to their corresponding application logs.

When troubleshooting distributed systems, you often need to correlate data across multiple sources. A trace might show that a request failed, but the detailed error information is in your application logs. Using correlations, you can:

  • Link a single trace dataset to up to five logs datasets.
  • View related logs directly from the span details panel.
  • Navigate seamlessly between trace analysis and log exploration.

For correlations to work correctly, your logs data must include the following fields that can be mapped to trace context.

FieldPurpose
Trace IDLinks log entries to specific traces
Span IDLinks log entries to specific spans
Service nameFilters logs by service
TimestampOrders log entries chronologically

If your logs do not follow OpenTelemetry conventions, configure schema mappings in your logs dataset to map your custom field names to these standard fields.

To create a correlation between a trace dataset and logs datasets, follow these steps:

  1. Navigate to Datasets in the left navigation.

  2. Select the trace dataset you want to correlate with logs.

  3. In the dataset details page, select the Correlated datasets tab.

    Trace dataset Correlated datasets tab

  4. Select Configure correlation.

  5. In the Configure correlation dialog, select up to five logs datasets to correlate with this trace dataset.

    Configure correlation dialog

  6. Select Save to create the correlation.

  7. The correlated logs datasets now appear in the Correlated datasets table.

    Created correlation in table

You can view the trace datasets that are correlated with a logs dataset from the logs dataset details:

  1. Navigate to Datasets in the left navigation.

  2. Select a logs dataset that has been correlated with a trace dataset.

  3. Select the Correlated traces tab to view trace datasets linked with this logs dataset.

    Logs dataset Correlated traces tab

After creating correlations, you can access related logs when analyzing traces.

  1. Navigate to Discover > Traces.

  2. Select a trace to view its details.

  3. Select a span within the trace to open the Span details.

  4. In Span details, select the Logs tab to open Related logs. The related logs are retrieved by matching the trace ID from the span to log entries in your correlated logs datasets.

    Span details with related logs

  5. Select a log entry to view its full details or navigate to the Logs page for further exploration.

You can edit or remove correlations from the trace dataset details page.

To modify an existing correlation, follow these steps:

  1. Navigate to Datasets in the left navigation and select the trace dataset you want to modify.
  2. Select the Correlated datasets tab.
  3. Select Configure correlation to modify the list of correlated logs datasets.
  4. Add or remove datasets as needed.
  5. Select Save to apply changes.

To remove a correlation:

  1. Navigate to Datasets in the left navigation and select the trace dataset you want to modify.
  2. Select the Correlated datasets tab.
  3. Delete the configured correlations using the delete icon.