Troubleshooting
Common issues after putting 10x in front of Datadog: forwarded logs not appearing, the Standard count above the number, and Datadog Agent problems.
Troubleshooting
Logs forwarded through 10x aren't appearing in Datadog
Check these in order:
-
The 10x sidecar is running. Check the sidecar container's logs:
-
The pipeline is healthy. Run
log10x_doctorfrom the MCP client to confirm the engine is processing events and emitting metrics. -
The forwarder or Agent is reading 10x output. Confirm the Datadog Agent (or Fluent Bit) input points at the file the Receiver writes, and that the path in the config matches.
-
Datadog is ingesting. Datadog → Logs → Live Tail, filtered on the
sourceorservice. If it is empty, the forwarder is not shipping. -
The API key is valid.
echo $DD_API_KEYis non-empty, and the key is active under Organization Settings → API Keys.
Common causes:
| Problem | Solution |
|---|---|
| Agent cannot read the 10x file | Check file permissions and the file path in the config |
| Datadog API key invalid | Verify the key in the Datadog UI, rotate if needed |
| Log pipeline filters out logs | Check Log Pipelines for filters blocking the service |
| Network or firewall blocking Datadog intake | Test curl -v https://http-intake.logs.datadoghq.com |
The Standard count is above the number after deploying 10x
Check these:
-
The excess is being marked. Run
log10x_commitment_report(or query the metrics backend) and confirm patterns show non-zero volume markedrouteState: tier_downor offloaded to S3. -
Each service has a cap and an action. A cap with no action passes the excess.
-
A scheduled run carries the number. The monthly number lives in the scheduled run; without one, each statement is held to its cap and no total bounds the month.
-
The Flex index is enabled and listed first. Datadog indexes are first-match-wins, so the Flex index with its
@routeState:tier_downfilter must sit ahead of the catch-all, or the marked events land in Standard. -
Datadog usage. Datadog → Dashboards → Dashboards List, then Log Management - Estimated Usage: the moved slice counts under the Flex index.
-
Offloaded patterns reach S3. Confirm the bucket is filling.
Why the Standard count runs above the number:
- The always-pass lines. The first five events of a pattern in each 4-minute window pass on each node, so a capped pattern never falls to zero in Standard. The settings are on the rate regulator page.
- Errors. Every error line under its cap stays in Standard, as do up to 50 lines over the cap of each error statement in each window on each node, released across the window; a burst of errors on many nodes keeps the Standard count up.
- Between runs. A new service is held at the one limit the run writes for services it has not seen until the next scheduled run gives it its own limits, and a node added between runs holds its own share until the next run divides the number again; the next run takes the overshoot back from the rest of the month.
- Lines outside the Receiver. Direct Logs API submissions count in the Standard meter and are not moved; the run gives the Receiver's services what those submissions leave of the number, and its report warns when the submissions alone near it.
- A service over its own number. Datadog parses a JSON message into attributes, and a service field in the message, such as
service.name, can replace theservicetag the forwarder set, so the usage metric counts those lines under another name. The run then holds that service by the Receiver's own count, which leaves out its lines outside the Receiver, and its report warns. Keep the message's service field equal to the service's name, or map the service in the policy to the name Datadog shows. - New services without a monthly number. Added instrumentation or new apps add to Standard until a rule holds them.
- Flex not enabled or the index mis-ordered. The marked slice stays in Standard.
- Usage lag. The newest hour of the usage metric is still filling; compare complete hours.
What a Flex move does to the bill: ingestion is unchanged by a Flex move, and Flex Starter bills $0.60 per million stored a month for at least 3 months; on the public capture the move saves against 30-day Standard retention and costs more than it saves against 15-day (benchmarks/datadog-flex-accounting).
Datadog Agent errors after deploying the 10x sidecar
Check Agent logs:
Common causes and fixes:
| Error | Cause | Fix |
|---|---|---|
permission denied reading log file |
10x output file has wrong permissions | chmod 644 /path/to/log |
connection refused to 10x socket |
Socket path does not exist or 10x is not running | Verify the sidecar is running, check the path in the config |
out of memory |
The 10x sidecar's heap is too small for the load | Set the heap explicitly and the container limit above it: JAVA_TOOL_OPTIONS=-Xmx512m on the JVM images, -Xmx512m passed to tenx on the native sidecar binaries, with a 768Mi limit for a 512m heap. |
| Agent reads non-standard lines | Agent is tailing the compact S3-bound output, not the Datadog-bound output | Point the Agent at the Receiver's Datadog-bound output (standard log events); the compact stream is for S3 only |
If the errors continue:
- Temporarily disable 10x (remove the sidecar) to isolate.
- Restart the Agent:
systemctl restart datadog-agent. - Verify the Agent is healthy:
datadog-agent status. - Re-enable 10x and check logs.