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: `http://victoria-logs-host:9428/`
use_http: true
Replace victoria-logs-host with the real hostname for the VictoriaLogs.
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:
DD_DD_URL: `http://victoria-logs-host:9428/`
Replace victoria-logs-host with the real hostname for the VictoriaLogs.
Dropping fields #
VictoriaLogs can be configured for skipping the given log fields for logs ingested via DataDog protocol. This can be done via the following options:
-datadog.ignoreFieldscommand-line flag, which accepts comma-separated list of log fields to ignore. This list can contain log field prefixes ending with*such assome-prefix*. In this case all the fields starting fromsome-prefixare ignored.ignore_fieldsHTTP request query arg orVL-Ignore-FieldsHTTP request header. See these docs for details.
Stream fields #
VictoriaLogs can be configured to use the particular fields from the ingested logs as log stream fields for logs ingested via DataDog protocol. This can be done via the following options:
-datadog.streamFieldscommand-line flag, which accepts comma-separated list of fields to use as log stream fields._stream_fieldsHTTP request query arg orVL-Stream-FieldsHTTP request header. See these docs for details.
See also: