--- id: correlate-logs title: Correlating Logs and Traces description: Learn how to link your traces and logs together for a broad and deep understanding of your environment. slug: /help/docs/apm/traces/advanced-configuration/correlate-logs/ canonical: https://www.sumologic.com/help/docs/apm/traces/advanced-configuration/correlate-logs/ --- import useBaseUrl from '@docusaurus/useBaseUrl'; Linking together your Sumo Logic traces and logs will provide you a broad and deep understanding of your environment. Our configurations, available in several programming languages, will inject the trace variables `TraceId` and `SpanId` into your logs: