Skip to content

Datadog Logs sink option conforms_as_agent appears to break encoding.except_fields #23824

@tbenade

Description

@tbenade

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

It appears that if one enables conforms_as_agent in the Datadog Logs Sink the exclusion of fields by option encoding.except_fields no longer works and the excluded data is forwarded on to Datadog regardless.

Configuration

type: datadog_logs
inputs:
  - stuff
compression: gzip
conforms_as_agent: true
default_api_key: "${DATADOG_API_KEY:-undefined}"
healthcheck:
  enabled: true
encoding:
  except_fields:
    - "vector_http_path"
    - "source_type"

Version

0.47

Debug Output


Example Data

No response

Additional Context

No response

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    sink: datadog_logsAnything `datadog_logs` sink relatedtype: bugA code related bug.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions