Problem
When using Terraform Enterprise version v202109-1, the log forwarder container, tfe-fluent-bit, consistently fails when integrated with Datadog. The container logs show the following error:
getaddrinfo(host='http-intake.logs.datadoghq.com', err=12): Timeout while contacting DNS servers
Cause
The version of Fluent Bit used in the log forwarder for Terraform Enterprise v202109-1 is missing a default configuration for its DNS resolver. This causes DNS name resolution to time out when attempting to connect to external services like Datadog.
Solution
To resolve this issue, you must upgrade your Terraform Enterprise instance to version v202109-2 or a later version. This version includes an updated log forwarder component with the necessary DNS resolver configuration.
Outcome
After upgrading Terraform Enterprise, the tfe-fluent-bit container will no longer produce the DNS timeout error. Log messages from all Terraform Enterprise containers will be forwarded to your configured endpoint correctly.
Additional Information
- For more technical context on the fix, refer to the related upstream pull request: Fluent Bit PR #4088: net: add dns resolver options to all outputs.