<@U04S8PLJWMT> Where does Airbyte stores the logs ...
# ask-ai
j
@kapa.ai Where does Airbyte stores the logs for the connection syncs? Is it in the internal database? And in which table?
k
Airbyte stores detailed sync logs as part of each job, and they’re accessible via the UI (Job History → View logs) and can be downloaded; however, the knowledge sources do not specify that these logs are stored in the internal database nor name any database table for them. In Airbyte Open Source, additional logs also exist on the host (e.g., Docker/Kubernetes volumes) outside the UI. [[Browsing logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs); [Browsing logs 1.7](https://docs.airbyte.com/platform/1.7/operator-guides/browsing-output-logs); [Browsing logs 1.6](https://docs.airbyte.com/platform/1.6/operator-guides/browsing-output-logs)] For metrics/telemetry, Self-Managed Enterprise can export to OpenTelemetry; for audit logging (Enterprise), logs are written as JSON files to blob storage you configure, not to the internal DB. [[Collecting metrics](https://docs.airbyte.com/platform/operator-guides/collecting-metrics); [Audit logging](https://docs.airbyte.com/platform/enterprise-setup/audit-logging)] I’m sorry, but there’s no information in the provided sources that names an internal database table where connection sync logs are stored.
j
@kapa.ai How can I save the output logs from connection syncs in a separate file?
k
A message from kapa.ai
You have two built-in options: - Download logs from the UI: - Go to the connection’s Job History, open the menu for a sync, and select “Download logs.” This unions logs across attempts for that job into a local file you can save. [[Browsing logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs); [Browsing logs 1.7](https://docs.airbyte.com/platform/1.7/operator-guides/browsing-output-logs)] - Retrieve logs from local workspace (Open Source): - Find the attempt folder (e.g., /tmp/workspace/<jobId>/<attemptId>) and copy logs.log from the Airbyte Docker volume. For example: - Browse: docker run -it --rm --volume airbyte_workspace:/data busybox ls /data/9/2 - Read: docker run -it --rm --volume airbyte_workspace:/data busybox cat /data/9/2/logs.log > logs.log - Or copy files with docker cp from the airbyte-server container. [[Exploring Local Logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs#exploring-local-logs); [Exploring Local Logs (Next)](https://docs.airbyte.com/platform/next/operator-guides/browsing-output-logs#exploring-local-logs)] For Self-Managed Enterprise, you can also configure external log storage (S3, GCS, Azure) via values.yaml so logs are written to your own buckets, then archive or forward from there. [[Configuring External Logging](https://docs.airbyte.com/platform/enterprise-setup/implementation-guide#configuring-external-logging); [External logging 1.7](https://docs.airbyte.com/platform/1.7/enterprise-setup/implementation-guide#configuring-external-logging)]
j
@kapa.ai There isn't any data in the data folder inside the volume
k
A message from kapa.ai
If you’re using a local file destination (CSV/JSON) and the data folder looks empty, check these: - Verify the correct host path: - Local file destinations write inside the container to /local, which is mapped by default to /tmp/airbyte_local on the host. Look for files under /tmp/airbyte_local on the machine running Airbyte. [[CSV/JSON local](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs#csv-or-json-local-destinations-check-local-data-folder); [CSV/JSON local 1.7](https://docs.airbyte.com/platform/1.7/operator-guides/browsing-output-logs#csv-or-json-local-destinations-check-local-data-folder)] - Confirm Docker Desktop file sharing: - Ensure Docker Desktop is allowed to access /tmp (and /private on macOS) in Settings → Resources → File sharing, then Apply & restart. [[CSV/JSON local](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs#csv-or-json-local-destinations-check-local-data-folder)] - Inspect from inside a container (bypasses host path issues): - List what the destination wrote:
Copy code
docker run -it --rm -v /tmp/airbyte_local:/local busybox find /local
You should see paths like /local/data/... If not, nothing was written to the mapped location. [[CSV/JSON local](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs#csv-or-json-local-destinations-check-local-data-folder)] - Check the workspace logs for the job: - Locate the attempt folder (e.g., /tmp/workspace/<jobId>/<attemptId>) and open logs.log to confirm the destination path actually used and any write errors:
Copy code
docker run -it --rm --volume airbyte_workspace:/data busybox ls /data/<jobId>/<attemptId>     docker run -it --rm --volume airbyte_workspace:/data busybox cat /data/<jobId>/<attemptId>/logs.log
[[Exploring Local Logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs#exploring-local-logs); [Exploring Local Logs 1.7](https://docs.airbyte.com/platform/1.7/operator-guides/browsing-output-logs#exploring-local-logs)] Notes: - The “Local CSV” destination writes to /local inside its container; if you’re running with abctl/Docker, /local must be mounted from the host. Otherwise you won’t see files on the host even after a “successful” sync. [[GitHub issue](https://github.com/airbytehq/airbyte/issues/55726)] If after these steps /local (container) and /tmp/airbyte_local (host) are both empty, the sync likely didn’t write files—review logs.log for errors and confirm the destination path and stream naming. [[Exploring Local Logs](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs#exploring-local-logs)]