---
title: Log Side Panel
description: Search through all of your logs and perform log analytics
breadcrumbs: Docs > Log Management > Log Explorer > Log Side Panel
---

# Log Side Panel

## Overview{% #overview %}

Datadog displays individual logs following this general side panel layout:

{% image
   source="https://datadog-docs.imgix.net/images/logs/explorer/side_panel/overview.5e7270de31e8ec255f176a7ef332129f.png?auto=format"
   alt="Log Explorer side panel" /%}

- The upper part of the panel displays general **context** information
- The lower part of the panel displays the actual **content** of the log

**Context** refers to the infrastructure and application context which the log has generated. Information is gathered from tags, whether automatically attached (host name, container name, log file name, serverless function name, etc.) or added through custom tags (team in charge, environment, application version, etc.) to the log by the Datadog Agent or Log Forwarder.

**Content** refers to the log itself. This includes the log message, as well as all structured information extracted and enriched from the logs through [Log Pipelines](https://docs.datadoghq.com/logs/log_configuration/pipelines). For logs generated by common components of a technical stack, parsing and enriching comes out-of-the-box.

- For file log collection, make sure you properly set up the source field, which triggers file log collection. See [Log Integrations](https://docs.datadoghq.com/integrations/#cat-log-collection) for reference.
- For container log collection, use [Autodiscovery](https://docs.datadoghq.com/agent/autodiscovery/integrations/?tab=kubernetes).

Some standard fields, for instance `error.stack`, `http.method`, or `duration`, have specific enhanced displays in the Log Panel for better readability. Extract corresponding information from your logs and remap your attributes with [standard attribute remappers](https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention).

## Hub to other data sources{% #hub-to-other-data-sources %}

### Correlate with infrastructure data{% #correlate-with-infrastructure-data %}

The **View in context** button updates the search request in order to show you the log lines dated just before and after a selected log, even if they don't match your filter. This context is different according to the situation, as Datadog uses the `Hostname`, `Service`, `filename`, and `container_id` attributes, along with tags, in order find the appropriate context for your logs.

Click on the **Metrics** tab and access underlying infrastructure metrics in a 30 minutes time frame around the log.

Interact with **Host** in the upper reserved attributes section, the related [host dashboard](https://docs.datadoghq.com/dashboards/list/#preset-lists), or [Network Analytics](https://docs.datadoghq.com/network_monitoring/performance/network_analytics/) page. Interact with **Container** sections to navigate to the [container page](https://docs.datadoghq.com/infrastructure/livecontainers/?tab=linuxwindows#introduction) scoped with the underlying parameters.

{% video
   url="https://datadog-docs.imgix.net/images/logs/explorer/side_panel/infra.mp4" /%}

When logs come from a serverless source, the Host Section is replaced with a Serverless section that links to the corresponding [serverless page](https://docs.datadoghq.com/infrastructure/serverless/#function-detail-view).

{% image
   source="https://datadog-docs.imgix.net/images/logs/explorer/side_panel/infra-serverless.6331bc88b37827a0e13c4527c378dd41.png?auto=format"
   alt="Hub to Serverless" /%}

### Correlate with APM data{% #correlate-with-apm-data %}

Make sure you enable [trace injection in logs](https://docs.datadoghq.com/tracing/other_telemetry/connect_logs_and_traces/) and follow the [Unified Service Tagging](https://docs.datadoghq.com/getting_started/tagging/unified_service_tagging) best practices to benefit from all the capabilities of Logs and APM correlation.

Click on the **Trace tab** and see a log in the context of its entire trace, with upstream and downstream services running. Deep dive into the corresponding APM data by clicking on [View Trace Details](https://docs.datadoghq.com/tracing/app_analytics/search/#displaying-a-full-trace).

Interact with the **Service** section to highlight the part of the trace that corresponds with the selected service. Use this information to refocus your query in the Log Explorer and view other logs from the same trace.

{% video
   url="https://datadog-docs.imgix.net/images/logs/explorer/side_panel/trace.mp4" /%}

## Configure your troubleshooting context{% #configure-your-troubleshooting-context %}

Interact with the attributes names and values in the lower JSON section to:

- Add or remove a column from the logs table
- Append the search request with specific values (include or exclude)
  {% image
     source="https://datadog-docs.imgix.net/images/logs/explorer/side_panel/context.1720d5a45dd3ecf996ba324505c7d7a2.jpg?auto=format"
     alt="Side Panel context" /%}

  {% image
     source="https://datadog-docs.imgix.net/images/logs/explorer/side_panel/context2.8bcc9dff3fa76ef977cf8f5cb53e5853.jpg?auto=format"
     alt="Side Panel context" /%}
- Build or edit a facet or measure from an attribute. See [Log Facets](https://docs.datadoghq.com/logs/explorer/facets/#overview).
  {% video
     url="https://datadog-docs.imgix.net/images/logs/explorer/side_panel/facets.mp4" /%}
- Build or edit a calculated field from an attribute. See [Calculated Fields](https://docs.datadoghq.com/logs/explorer/calculated_fields/).

## Share a log{% #share-a-log %}

Use the **Share** button to share the log opened in side panel to other contexts.

- **Copy to clipboard** or `Ctrl+C` / `Cmd+C` copies the log JSON to your clipboard.
- **Share Event** shares the log (along with the underlying view) with teammates through email, Slack, and more. See all [Datadog notification integrations](https://docs.datadoghq.com/integrations/#cat-notification) available.

## Further Reading{% #further-reading %}

- [Learn how to process your logs](https://docs.datadoghq.com/logs/log_configuration/processors)
- [Connect logs and traces](https://docs.datadoghq.com/tracing/other_telemetry/connect_logs_and_traces)
- [Connect logs with infrastructure metrics](https://docs.datadoghq.com/logs/guide/correlate-logs-with-metrics)
- [Learn more about Calculated Fields Formulas](https://docs.datadoghq.com/logs/explorer/calculated_fields/formulas)
