<@U04S8PLJWMT> how can i enable debug logging for ...
# ask-ai
m
@kapa.ai how can i enable debug logging for replication pods to gather more information about failed or stuck syncs?
k
Thinking completed Enabling Debug Logging for Replication Pods The knowledge sources provide a few approaches depending on your deployment type: 1. Adjust the Log Level (All Deployments) Set the
LOG_LEVEL
environment variable to
DEBUG
in your Airbyte configuration. By default it is set to
INFO
. [Configuring Airbyte] 2. View Logs in the UI For any failed or stuck sync, navigate to the connection's Job History tab, click the three grey dots next to the sync, and select View logs. You can search for
Error
,
Exception
, or
Fail
to find relevant entries. [Browsing Logs] 3. Access Replication Pod Logs Directly on Kubernetes For deeper investigation, you can exec into or copy logs from the relevant pod:
Copy code
# Find workload pods
kubectl get pods -l airbyte=job-pod --all-namespaces

# Stream orchestrator logs (richest source for sync debugging)
kubectl logs pod-name -c orchestrator -n namespace

# Exec into a pod for interactive inspection
kubectl exec -it pod-name -n namespace -c main bash
The orchestrator container is the most useful source — it aggregates logs from both source and destination connectors. [Verifying Log Collection] 4. Check Resource-Related Issues If a sync is failing due to resource constraints, check the job logs in the UI for lines like:
Copy code
platform > Launching replication pod: replication-job-... with containers:
[source] image: ... resources: ResourceRequirements(...)
This confirms what CPU/memory limits are being applied. [Configuring Connector Resources] 5. Set Up Structured Log Collection (Enterprise Flex) If you're on Airbyte Enterprise Flex (Helm chart v2.1.0+), structured JSON logging to stdout is enabled by default. You can deploy a DaemonSet-based log collector (Fluent Bit, Vector, or Datadog Agent) to ship logs to your observability backend. Logs include fields like
logSource
(
source
,
destination
,
platform
,
replication-orchestrator
) and pod labels like
job_id
,
connection_id
, and
attempt_id
for easy filtering. [Log Collection] > Note: The knowledge sources do not explicitly describe a way to set
DEBUG
-level logging per replication pod at runtime without redeploying. Setting
LOG_LEVEL=DEBUG
globally is the primary mechanism documented for increasing verbosity. 👍 0 button 👎 0 button â„šī¸ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.