Intro
This article is dedicated to explain fluent-bit logging configuration in Terraform Enterprise automated setup
Problem description
Recent Terraform Enterprise release have fluent-bit log streaming option.
It's possible to enable log option during automated Terraform Enterprise setup.
Solution
To enable log streaming add to the setting.json configuration file used for the Terraform Enterprise installation following lines:
"log_forwarding_enabled": {
"value": "1"
},
extra config lines should be added, as this code block would forward everything:
"log_forwarding_config": {
"value": "# Match all logs and do not forward them anywhere.\n[OUTPUT]\n Name null\n Match *\n"
},