<@U04S8PLJWMT> How do I save pods logs in S3?
# ask-ai
j
@kapa.ai How do I save pods logs in S3?
k
To save Airbyte pod logs in S3, you need to configure Airbyte to use S3 as its log storage backend. This is typically done by updating your deployment’s configuration (such as the
values.yaml
file if you’re using Helm) to specify S3 as the storage type and provide the necessary credentials and bucket information. Here’s a general outline of the steps: 1. Create an S3 Bucket Set up an S3 bucket in AWS where logs will be stored. Make sure your Airbyte deployment has permissions to write to this bucket. 2. Create Kubernetes Secrets Store your AWS credentials (access key ID and secret access key) in a Kubernetes secret, usually named
airbyte-config-secrets
, under the keys
s3-access-key-id
and
s3-secret-access-key
(or
aws-s3-access-key-id
and
aws-s3-secret-access-key
for some enterprise setups) [Configuring External Logging](https://docs.airbyte.com/platform/1.7/enterprise-setup/implementation-guide#configuring-external-logging). 3. Update your
values.yaml
Configuration
In your
values.yaml
, configure the storage section as follows:
Copy code
yaml    global:      storage:        type: "S3"        secretName: airbyte-config-secrets # Name of your Kubernetes secret        bucket:          log: airbyte-bucket         # S3 bucket for logs          state: airbyte-bucket       # (optional) S3 bucket for state          workloadOutput: airbyte-bucket # (optional) S3 bucket for workload output        s3:          region: "us-east-1"         # Your S3 bucket region          authenticationType: credentials # or "instanceProfile" if using IAM roles
If you use IAM roles (e.g., on EKS), set
authenticationType
to
instanceProfile
and omit the access keys. 4. Disable Minio (if enabled by default) If your deployment enables Minio by default, ensure it is disabled so logs are not stored there. This is typically handled automatically when you set the storage type to S3, but you may want to double-check your configuration. 5. Deploy or Update Airbyte Apply your changes and redeploy Airbyte. Logs from Airbyte pods should now be written to your specified S3 bucket. Note: - The same approach applies to both open-source and enterprise Airbyte deployments, but the secret key names may differ slightly. - You can also configure log storage for GCS or Azure by following similar steps and updating the storage type and credentials accordingly. For more details and configuration examples, see the official documentation: [Configuring External Logging](https://docs.airbyte.com/platform/1.7/enterprise-setup/implementation-guide#configuring-external-logging), [State and Logging Storage](https://docs.airbyte.com/platform/1.7/deploying-airbyte/integrations/storage#values).
j
@kapa.ai Doesn't this save only logs from syncs/connections? I want the full loga of each pod running in abctl plane
k
A message from kapa.ai
You're correct—Airbyte's built-in log storage configuration (using S3, GCS, etc.) is designed to store Airbyte application logs, such as logs from syncs, connections, and Airbyte-specific operations. This does not include the full stdout/stderr logs of every pod in the Airbyte control plane (e.g., logs from the Airbyte server, scheduler, worker, etc., at the Kubernetes pod level). According to the knowledge sources, Airbyte writes its own logs to object storage for traceability and UI access, but the full pod logs (as managed by Kubernetes) are not automatically shipped to S3 by Airbyte itself. However, Airbyte does output logs to stdout, so you can use standard Kubernetes logging solutions (such as Fluent Bit, Fluentd, or AWS CloudWatch agents) to collect and forward all pod logs—including those from the control plane—to S3 or another log aggregation service. This is a common practice in Kubernetes environments: > Airbyte needs a source of truth of logs, so we write to immutable object storage. The logs are simultaneously output on
stdout
, so you can install other logging collectors on the nodes and pipe them to other logging solutions. Curious, what workflow is missing with this current logging setup? > [K8S Production reliable deployement](https://discuss.airbyte.io/t/346) In summary: - Airbyte's S3 log configuration covers Airbyte application logs, not raw pod logs. - To capture all pod logs, use a Kubernetes log collector to ship stdout/stderr to S3. - This approach is outside of Airbyte's built-in configuration and is a standard Kubernetes logging practice. If you need more details on setting up such a collector, let me know!