VictoriaMetrics/docs/VictoriaLogs/data-ingestion/DataDogAgent.md
Andrii Chubatiuk 23dcec3911
vlinsert: support datadog logs
This commit adds the following changes:

- Added support to push datadog logs with examples of how to ingest data
using Vector and Fluentbit
- Updated VictoriaLogs examples directory structure to have single
container image for victorialogs, agent (fluentbit, vector, etc) but
multiple configurations for different protocols

Related issue https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6632

(cherry picked from commit e0930687f1)
2024-11-06 13:58:16 +01:00

1.8 KiB

weight title disableToc menu url aliases
5 DataDog Agent setup true
docs
parent weight
victorialogs-data-ingestion 5
/victorialogs/data-ingestion/datadog-agent/
/VictoriaLogs/data-ingestion/DataDogAgent.html

Datadog Agent doesn't support custom path prefix, so for this reason it's required to use VMAuth or any other reverse proxy to append /insert/datadog path prefix to all Datadog API logs requests.

In case of VMAuth your config should look like:

unauthorized_user:
  url_map:
    - src_paths:
        - "/api/v2/logs"
      url_prefix: "`<victoria-logs-base-url>`/insert/datadog/"

To start ingesting logs from DataDog agent please specify a custom URL instead of default one for sending collected logs to VictoriaLogs:

logs_enabled: true
logs_config:
  logs_dd_url: `<vmauth-base-url>`
  use_http: true

While using Serverless DataDog plugin please set VictoriaLogs endpoint using LOGS_DD_URL environment variable:

custom:
  datadog:
    apiKey: fakekey                 # Set any key, otherwise plugin fails
provider:
  environment:
    LOGS_DD_URL: `<vmauth-base-url>`/   # VictoriaLogs endpoint for DataDog

Substitute the <vmauth-base-url> address with the real address of VMAuth proxy.

See also: