Skip to content

Datadog

Enable log collection (logs_enabled: true in datadog.yaml), then add conf.d/artex.d/conf.yaml:

logs:
- type: file
path: /opt/artex/data/audit/target.jsonl
service: artex-cc
source: artex
tags: ["artex_stream:target"]
- type: file
path: /opt/artex/data/audit/agent.jsonl
service: artex-cc
source: artex
tags: ["artex_stream:agent"]

Each line must end with a newline, or the Agent waits for it indefinitely; ARTEX writes whole lines. JSON lines are parsed into attributes automatically. Add a pipeline date remapper on time, a status remapper on severity_text and a message remapper on body, so the record’s own fields are used. Name only the active files: rotated generations (target.jsonl.<UTC time>, older ones .gz) must not match path.

Datadog drops log timestamps more than 18 hours old, so a long replay after an outage loses records on the Datadog side; the local files keep them.

sinks:
datadog:
type: datadog_logs
inputs: [artex_by_stream.target, artex_by_stream.agent]
default_api_key: "${DD_API_KEY}"
site: "${DD_SITE}"
compression: gzip

Use with the Vector base config.

Create a log monitor or a Cloud SIEM rule on service:artex-cc @event_name:artex.alert, grouped by @security_rule.name and @artex.identity. A second log monitor on service:artex-cc @event_name:artex.heartbeat, grouped by @artex.stream and alerting when the count over 5 minutes is below 1, catches a writer or shipper that stopped. Datadog’s standard attributes use different names (http.url_details.host, network.bytes_written); remap in a pipeline if you want them, see Field mappings.

  • Agentless OTLP (#395). Datadog accepts OTLP logs over HTTP with protobuf and a dd-api-key header, and rejects request bodies over 5.1 MiB. Datadog recommends an Agent or Collector in production.
  • Metrics (#396). The Agent’s OpenMetrics check could scrape ARTEX’s /metrics; OTLP metrics to Datadog would need delta temporality.
  • Vector sink: vector validate 0.62.0 passed, see Vector.
  • The Agent config and monitor queries were written from Datadog documentation only. Nothing was sent to Datadog.