Datadog Logs Source

The Vector datadog_logs source receives logs from a Datadog Agent over HTTP or HTTPS.


type = "datadog_logs" # required
acknowledgements = false # optional, default
address = "" # required
  • commonoptionalbool


    Controls if the source will wait for destination sinks to deliver the events before acknowledging receipt.

    • WARNING: Disabling this option may lead to loss of data, as destination sinks may reject events after the source acknowledges their successful receipt.
    • Default: false
  • commonrequiredstring


    The address to accept connections on. The address must include a port.

    • Syntax: literal
  • optionalbool


    When incoming events contain a Datadog API key, if this setting is set to true the key will kept in the event metadata and will be used if the event is sent to a Datadog sink.

    • Default: true
  • optionaltable


    Configures the TLS options for incoming connections.

    • optionalstring


      Absolute path to an additional CA certificate file, in DER or PEM format (X.509), or an in-line CA certificate in PEM format.

      • Syntax: literal
    • optionalstring


      Absolute path to a certificate file used to identify this server, in DER or PEM format (X.509) or PKCS#12, or an in-line certificate in PEM format. If this is set, and is not a PKCS#12 archive, key_file must also be set. This is required if enabled is set to true.

      • Syntax: literal
    • optionalbool


      Require TLS for incoming connections. If this is set, an identity certificate is also required.

      • Default: false
    • optionalstring


      Absolute path to a private key file used to identify this server, in DER or PEM format (PKCS#8), or an in-line private key in PEM format.

      • Syntax: literal
    • optionalstring


      Pass phrase used to unlock the encrypted key file. This has no effect unless key_file is set.

      • Syntax: literal
    • optionalbool


      If true, Vector will require a TLS certificate from the connecting host and terminate the connection if the certificate is not valid. If false (the default), Vector will not request a certificate from the client.

      • Default: false


This component outputs log events with the following fields:

"ddsource" : "java",
"ddtags" : "env:prod,region:ap-east-1",
"hostname" : "my-host.local",
"message" : "Hi from erlang",
"service" : "backend",
"status" : "info",
"timestamp" : "2020-10-10T17:07:36+00:00"
  • commonrequiredstring


    The source field extracted from the event.

    • Syntax: literal
  • commonrequiredstring


    The coma separated tags list extracted from the event.

    • Syntax: literal
  • commonrequiredstring


    The local hostname, equivalent to the gethostname command.

    • Syntax: literal
  • commonrequiredstring


    The message field, containing the plain text message.

    • Syntax: literal
  • commonrequiredstring


    The service field extracted from the event.

    • Syntax: literal
  • commonrequiredstring


    The status field extracted from the event.

    • Syntax: literal
  • commonrequiredtimestamp


    The exact time the event was ingested into Vector.


This component provides the following metrics that can be retrieved through the internal_metrics source. See the metrics section in the monitoring page for more info.

  • counter


    The total number of events emitted by this component. This metric includes the following tags:

    • component_kind - The Vector component kind.

    • component_name - The Vector component ID.

    • component_type - The Vector component type.

    • instance - The Vector instance identified by host and port.

    • job - The name of the job producing Vector metrics.

How It Works


By default, the datadog_logs source will augment events with helpful context keys as shown in the "Output" section.


This component is stateless, meaning its behavior is consistent across each input.

Transport Layer Security (TLS)

Vector uses Openssl for TLS protocols. You can adjust TLS behavior via the tls.* options.