<@U04S8PLJWMT> airbyte is generating a massive amo...
# ask-ai
c
@kapa.ai airbyte is generating a massive amount of logs in our kubernetes environment. How do we control what is logged and what is sent to a log monitoring
k
To control Airbyte's logging in your Kubernetes environment, you have several options: ### 1. Adjust Log Levels You can set the log level using the
LOG_LEVEL
environment variable. By default, it is set to
INFO
, but you can change it to other Log4J log levels (e.g.,
WARN
,
ERROR
, or
DEBUG
). Lowering the verbosity (e.g., to
WARN
or
ERROR
) will reduce the volume of logs generated.
Copy code
yaml server:   env_vars:     LOG_LEVEL: WARN
[Configuring Airbyte - Logging](https://docs.airbyte.com/platform/next/operator-guides/configuring-airbyte#logging) Important: It is recommended to turn off
DEBUG
logs for any non-testing use, as leaving them enabled can overload the
server
pod and disrupt your deployment, especially during large-scale syncs [Scaling Airbyte - DEBUG Logs](https://docs.airbyte.com/platform/next/enterprise-setup/scaling-airbyte#debug-logs). ### 2. Configure External Log Storage For better reliability and control, configure Airbyte to use external log storage (S3, GCS, or Azure Blob Storage) instead of the default internal Minio. This setup allows you to manage, archive, or forward logs to your observability tool as needed. Example for S3 in `values.yaml`:
Copy code
yaml global:   storage:     type: "S3"     storageSecretName: airbyte-config-secrets     bucket:       log: airbyte-bucket       state: airbyte-bucket       workloadOutput: airbyte-bucket     s3:       region: "us-east-1"       authenticationType: credentials
[Configuring External Logging](https://docs.airbyte.com/platform/next/enterprise-setup/implementation-guide#configuring-external-logging) ### 3. Log Forwarding Once logs are stored externally, you can set up log forwarding from your external storage (e.g., S3) to your log monitoring or observability tool. This step is typically handled outside of Airbyte, using your preferred log aggregation or monitoring solution. ### 4. Job Log Separation If you notice that job logs are being replicated into the Airbyte Worker's logs (which can flood your log monitoring system), this is a known issue. The recommended approach is to ensure logs are exported to your external storage (S3, Minio, etc.) and not duplicated in the worker logs. However, the knowledge sources do not provide a direct configuration to prevent this duplication entirely within Airbyte itself. You may need to filter logs at the log monitoring tool level or adjust your log collection settings accordingly [GitHub Issue #30564](https://github.com/airbytehq/airbyte/issues/30564). --- Summary: - Set appropriate
LOG_LEVEL
to reduce log verbosity. - Use external log storage for better control and reliability. - Forward logs from external storage to your monitoring tool. - Avoid
DEBUG
logs in production. - Some log duplication issues may require external filtering. If you need more granular log control (e.g., filtering specific log types before they reach your monitoring tool), you may need to implement this at the log aggregation or monitoring layer, as Airbyte's built-in controls are primarily at the log level and storage configuration.