Alejo Buxeres
02/06/2025, 12:42 PMkapa.ai
02/06/2025, 12:42 PMkubectl
is configured to communicate with your abctl cluster by running: kind export kubeconfig -n airbyte-abctl
2. The log level for connectors is typically controlled by environment variables. However, the knowledge sources don't provide specific information on how to change the log level for individual connectors in the abctl setup. 3. One general approach you can try is to edit the deployment of the worker pod, which is responsible for running connector jobs. You can do this by running: kubectl edit deployment -n airbyte-abctl airbyte-abctl-worker
4. In the editor, look for the environment variables section and add or modify the DEBUG
environment variable: yaml env: - name: DEBUG value: "true"
5. Save and exit the editor. Kubernetes will automatically roll out the changes to the worker pods. However, it's important to note that this method will affect all connectors run by that worker, not just a specific one. Additionally, the knowledge sources don't provide explicit confirmation that this method will work for abctl deployments. For more detailed information about debugging and logging in Airbyte, you might want to check the [Airbyte documentation on troubleshooting](https://docs.airbyte.com/deploying-airbyte/troubleshoot-deploy#additional-resources). If you need more specific or detailed instructions, I recommend reaching out to the Airbyte community through their [GitHub forum](https://github.com/airbytehq/airbyte/discussions/categories/questions) or [Slack channel](https://airbytehq.slack.com/archives/C021JANJ6TY), as mentioned in the [Additional Resources](https://docs.airbyte.com/deploying-airbyte/troubleshoot-deploy#additional-resources) section of the Airbyte documentation.Alejo Buxeres
02/06/2025, 12:53 PMAlejo Buxeres
02/06/2025, 12:55 PMkapa.ai
02/06/2025, 12:55 PMAlejo Buxeres
02/06/2025, 12:55 PMkapa.ai
02/06/2025, 12:55 PMkapa.ai
02/06/2025, 12:55 PMLOG_LEVEL
, not DEBUG
. Let me provide you with the correct information based on the knowledge sources: To change the log level for Airbyte, including connectors, you can use the LOG_LEVEL
environment variable. According to the [Airbyte documentation on configuring logging](https://docs.airbyte.com/operator-guides/configuring-airbyte#logging): 1. The LOG_LEVEL
environment variable defines log levels and defaults to INFO. 2. This value is expected to be one of the various Log4J log levels. To change the log level in your abctl setup, you can try the following: 1. Edit the worker deployment: kubectl edit deployment -n airbyte-abctl airbyte-abctl-worker
2. In the editor, look for the environment variables section and add or modify the LOG_LEVEL
environment variable: yaml env: - name: LOG_LEVEL value: "DEBUG" # Or any other Log4J log level you prefer
3. Save and exit the editor. Kubernetes will automatically roll out the changes to the worker pods. It's worth noting that this change will affect all connectors run by that worker, not just a specific one. Additionally, for debugging purposes, you might want to be cautious about using DEBUG
log level in production environments. As mentioned in the [Airbyte documentation on scaling](https://docs.airbyte.com/enterprise-setup/scaling-airbyte#debug-logs): "We recommend turning off DEBUG
logs for any non-testing use of Self-Managed Airbyte. Failing to do while running at-scale syncs may result in the server
pod being overloaded, preventing most of the deployment for operating as normal." If you need to debug a specific connector or sync, you might want to temporarily increase the log level, perform your debugging, and then revert it back to a less verbose level like INFO for normal operations.Alejo Buxeres
02/06/2025, 1:04 PMkapa.ai
02/06/2025, 1:04 PMkapa.ai
02/06/2025, 1:04 PMcontainer-orchestrator-java-opts
that affects debug logging. To set the log level for the workload-launcher, you should modify its deployment instead: 1. Edit the workload-launcher deployment: kubectl edit deployment -n airbyte-abctl airbyte-abctl-workload-launcher
2. In the editor, look for the environment variables section and add or modify the LOG_LEVEL
environment variable: yaml env: - name: LOG_LEVEL value: "DEBUG"
3. Save and exit the editor. Kubernetes will automatically roll out the changes to the workload-launcher pods. Additionally, you might want to check if the JAVA_OPTS
environment variable is set correctly. According to the issue, the correct setting should include: JAVA_OPTS: -XX:+ExitOnOutOfMemoryError -XX:MaxRAMPercentage=75.0 -javaagent:/app/dd-java-agent.jar -Ddd.profiling.enabled=true -XX:FlightRecorderOptions=stackdepth=256 -Ddd.trace.sample.rate=0.5 -Ddd.trace.request_header.tags=User-Agent:http.useragent -DLOG_LEVEL=DEBUG
Note the -DLOG_LEVEL=DEBUG
at the end of this string. If you're still not seeing DEBUG logs after making these changes, it's possible that there might be other configuration issues or that the logs are being written to a location you're not checking. In this case, I would recommend reaching out to the Airbyte community or support channels for more specific assistance with your setup. [Github Issue: container-orchestrator-java-opts feature flag not always consistent](https://github.com/airbytehq/airbyte/issues/36557)Alejo Buxeres
02/06/2025, 1:38 PMkapa.ai
02/06/2025, 1:38 PMkapa.ai
02/06/2025, 1:38 PM--debug
flag when running the connector. Here's how you can do it: 1. First, you need to modify the command that runs your connector to include the --debug
flag. This is typically done in the connector's configuration or in the Airbyte platform settings. 2. If you're running the connector locally for testing, you can use a command like this: python main.py read --config secrets/config.json --catalog sample_files/configured_catalog.json --debug
3. In the Airbyte platform (which you're running with abctl), you'll need to modify the connector's configuration to include this debug flag. Unfortunately, the knowledge sources don't provide specific instructions on how to do this in the abctl environment. 4. You can also add your own debug statements in your connector code: python self.logger.debug("your debug message here", extra={"debug_field": self.value})
It's important to note that enabling debug logging can significantly increase the volume of logs produced, which might impact performance in production environments. If you're still having trouble enabling debug logging for your Python connector in the abctl environment, I recommend reaching out to the Airbyte community through their [GitHub forum](https://github.com/airbytehq/airbyte/discussions/categories/questions) or [Slack channel](https://airbytehq.slack.com/archives/C021JANJ6TY) for more specific guidance on how to modify connector configurations in abctl. [Airbyte CDK Python Documentation](https://docs.airbyte.com/connector-development/cdk-python#debugging)