Airflow 3This feature is only available for Airflow 3.x Deployments.
loggingSidecar section in your values.yaml file, which controls the deployment of a sidecar container that collects and forwards task logs.
Prerequisites
- You must have permissions for
deployment createorpod createin the kubernetes Namespace where your Remote Execution Agent is installed.
Enable the Logging Sidecar
- Configure volumes in your Agent Worker and Agent Triggerer components of your
values.yamlfile to collect task logs:
values.yaml
- To enable the logging sidecar, set
enabledtotruein your Remote Execution Agent’svalues.yamlfile, and define the name of your logging sidecar and the image you want to use. Astronomer recommends using Vector for exporting task logs and the following example uses the Timber docker image for it.
values.yaml
- Allocate resources for your sidecar container in the
values.yamlfile:
values.yaml
Example logging sidecar configuration
The following YAML file shows a full configuration example for a logging sidecar that uses Vector to export task log data to the Splunk Cloud Platform.values.yaml