Migrate from Datadog
Move your logs from Datadog to your Logit.io Logs stack. You can keep the Datadog Agent for now and route its logs through Vector, or replace the Agent with the OpenTelemetry Collector or Grafana Alloy.
Logit.io has no Datadog-compatible intake and no AWS Firehose HTTP destination. You cannot point the Datadog Agent, the Datadog Forwarder or a Firehose delivery stream straight at your stack by changing a URL or site. Use one of the routes in this guide instead.
What carries over
| Datadog | Logit.io |
|---|---|
| Agent log collection | Route through Vector, or replace the Agent with the OpenTelemetry Collector or Alloy. |
| AWS CloudWatch and S3 logs | Use the CloudWatch Lambda or S3 and SQS integrations. |
| Metrics and traces | Send with OpenTelemetry. They are stored only if the stack has the Metrics or APM add-on. This guide moves logs. |
| Log pipelines and processors | Rebuild as Logstash filters. |
| Log Explorer, dashboards and monitors | Rebuild in OpenSearch Dashboards and Logit.io alerts. |
Option 1: Vector as a proxy
Run Vector between the Datadog Agent and Logit.io. The Agent sends its logs to Vector's datadog_agent source and Vector forwards them to the HTTPS JSON API. You keep the Agent's collection settings and change only where it sends logs.
-
Install Vector (opens in a new tab) on a host that the Agent can reach. It needs Datadog Agent 7.35 or later. For Agents that compress with
zstd, it needs Vector 0.40.2 or later. -
Configure Vector. The key and endpoint populate in the example when you sign in and select a stack.
vector.toml[sources.datadog_agent] type = "datadog_agent" address = "127.0.0.1:8080" multiple_outputs = true store_api_key = false [sinks.logit_http] type = "http" inputs = ["datadog_agent.logs"] uri = "https://@logitApiEndpoint/v2" method = "post" compression = "none" encoding.codec = "json" framing.method = "newline_delimited" batch.max_events = 1000 batch.max_bytes = 1000000 request.headers.ApiKey = "@apikey"multiple_outputs = trueandinputs = ["datadog_agent.logs"]send only logs to the stack. Metrics and traces from the Agent are not forwarded.- Set
addressto0.0.0.0:8080when the Agent runs on another host, and restrict access with your firewall. compression = "none"and the batch limits follow the Vector page. The API rejects gzip and accepts at most 1,000 events per request.
-
Check the file offline, then start Vector.
vector validate --no-environment vector.toml vector --config vector.toml -
Point the Agent at Vector in
datadog.yaml, then restart the Agent. Datadog documentsobservability_pipelines_workeras interchangeable with the oldervectorkey.datadog.yamlobservability_pipelines_worker: logs: enabled: true url: "http://<vector-host>:8080"Datadog also documents a
dual_shipoption for this block. With it on, the Agent sends logs to both Datadog and the proxy, which suits a side-by-side comparison. See Datadog's Agent configuration reference for your version.
Events arrive with the fields the Agent sends, such as message, status, service, hostname, ddsource and ddtags, plus timestamp and source_type from Vector. Check the field names in Discover. Use a remap transform (opens in a new tab) in Vector or a Logstash filter to rename them.
Option 2: replace the Agent with OpenTelemetry or Alloy
Replace the Datadog Agent's log collection with a collector that exports OTLP over HTTPS to Hosted OpenTelemetry, at https://{stackId}-otel.logit.io. Authenticate with Basic auth, using the username {stackId}-otel and your stack's Hosted OpenTelemetry API key.
| Datadog Agent | Replace with |
|---|---|
logs: file tailing (type: file) | A filelog receiver in the OpenTelemetry Collector, or loki.source.file in Grafana Alloy. |
| Container and Kubernetes logs | The Kubernetes guide, which installs the Collector with Helm. |
| APM tracing libraries | OpenTelemetry SDKs for your language. Traces need the APM add-on. |
DD_ENV, DD_SERVICE and DD_TAGS | OpenTelemetry resource attributes, such as service.name, set in the Collector or SDK. |
- Install the Collector or Alloy on a test host. Generate some logs there and check that they arrive in Discover.
- Run it beside the Datadog Agent until the data matches. Avoid collecting the same file with both for long, so you do not double-count.
- Remove the Datadog Agent's log configuration. Remove the Agent itself only when it no longer collects metrics or traces that you still need.
Check the cutover
- In Discover, check that logs arrive from each host and service.
- Compare daily counts for a few services in Datadog and in Logit.io.
- Rebuild the searches and alerts your team relies on.
- Watch for duplicates. An HTTP 503 partway through a batch can leave earlier events queued, so a retry can duplicate them. Keep a stable ID on each event.
Not covered
- A Datadog-compatible intake for the Agent or Forwarder.
- The AWS Firehose HTTP destination.
- Datadog metrics and traces through the Vector proxy.
- Moving existing data out of Datadog.
If you need help planning a migration, contact support via live chat.