Skip to content

Enhance forwarder.json with datadogTags parameter - #252

Open
gogi2811 wants to merge 1 commit into
DataDog:mainfrom
gogi2811:main
Open

Enhance forwarder.json with datadogTags parameter#252
gogi2811 wants to merge 1 commit into
DataDog:mainfrom
gogi2811:main

Conversation

@gogi2811

Copy link
Copy Markdown

Added datadogTags parameter for custom tags in logs.

reference PR to support DD_TAGS : DataDog/azure-log-forwarding-orchestration#557

This PR addresses a Datadog support issue related to custom tagging at the forwarder layer (support ticket: https://help.datadoghq.com/hc/en-us/requests/3008581).

Context:

The customer was setting DD_TAGS as a space-separated key:value string on the container environment.
DD_ENV was also being set separately.
The forwarder job was running successfully and logs were arriving in Datadog, but the expected custom tags were not being attached to the forwarded log entries.
Root cause:

The forwarder was not correctly handling the DD_TAGS environment variable format for tag extraction/normalization.
As a result, values supplied as space-delimited key:value pairs were not being applied to forwarded logs.
Fix:

Ensure forwarder reads DD_TAGS correctly from the container environment.
Parse and apply tag values in the expected format.
Keep DD_ENV handling independent, so it can be configured explicitly without conflicting with custom tags.
Preserve expected behaviour for forwarded logs while allowing custom tags to be attached before ingestion.

Added datadogTags parameter for custom tags in logs.

reference PR to support DD_TAGS : DataDog/azure-log-forwarding-orchestration#557
@gogi2811
gogi2811 requested a review from a team as a code owner September 10, 2026 03:38
@gogi2811
gogi2811 requested a review from mattsp1290 September 10, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant