Skip to content

Datadog Logs Source Environment Variable Injection #23122

Closed Answered by jspdhillon
jspdhillon asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah I figured it out, you need to set this environment variable https://github.com/DataDog/datadog-agent/blob/b60575ea4f8cefde88eb0bc3dd5d5fb74d917cac/pkg/config/config_template.yaml#L588-L592 which will let you override the upstream endpoint and allow for you to interpolate strings/other environment variables.

 - name: HOST_IP
    valueFrom:
      fieldRef:
        fieldPath: status.hostIP
  - name: DD_OBSERVABILITY_PIPELINES_WORKER_LOGS_URL # URL endpoint for the Observability Pipelines Worker to send logs to
    value: "http://$(HOST_IP):6767"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jspdhillon
Comment options

Answer selected by jspdhillon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants