Introduction
Since release v202109-1, Terraform Enterprise (TFE) introduced Log Forwarding feature, which enabled TFE to forward its logs to one or more external destinations. The feature is achieved using Fluent Bit, an open source Log Processor and Forwarder. This guide will cover common troubleshooting steps with setting up Log Forwarding feature
Ensure valid Fluent Bit configuration is used
Ensure valid Fluent Bit configuration syntax is used as per the instructions and given schema
With incorrect syntax, similar entries below will be shown in Fluent Bit log
[yyyy/mm/dd hh:mm:ss] [ Error] File /fluent-bit/etc/fluent-bit.conf
[yyyy/mm/dd hh:mm:ss] [ Error] Error in line 19: Invalid indentation level
Error: Configuration file contains errors. Aborting
Ensure Log endpoint is reachable
Depending on Fluent Bit Output used, ensure that the log server is reachable with current configuration. The tests are to be done are including but not limited to:
- Send a successful cURL request to the log HTTP server
- Toggle off TLS configuration parameter
- If HTTPS_PROXY, HTTP_PROXY, NO_PROXY are used, ensure the log endpoint is added to the list accordingly prior to starting TFE