Ingest logs from the Datadog Agent

You ingest Datadog logs using the Datadog agent. You can sent the logs only to Cloud Observability, or you can send them to both Datadog and Cloud Observability.

Basic Datadog Agent configuration

To only send logs to Cloud Observability, paste the content below in your Datadog Agent [configuration file][datadog-agent-configuration]. Replace YOUR-ACCESS-TOKEN with your own value.

1 2 3 4 5 6 7 8 
api_key: YOUR-ACCESS-TOKEN logs_enabled: true logs_config: logs_dd_url: logingest.lightstep.com # US data center # logs_dd_url: logingest.eu.lightstep.com # EU data center use_v2_api: false force_use_http: true 

To send logs to both Datadog and Cloud Observability ([dual-shipping][datadog-agent-dualshipping]), use the following configuration. Replace YOUR-ACCESS-TOKEN with your own value.

1 2 3 4 5 6 7 8 
logs_config: use_v2_api: false use_http: true additional_endpoints: - api_key: "YOUR-ACCESS-TOKEN" host: "logingest.lightstep.com" # US data center # host: "logingest.eu.lightstep.com" # EU data center port: 443 

See also

Send logs to Cloud Observability

Log concepts

Updated Sep 27, 2023