Configure LoggingSidecar in a Remote Execution Agent
Airflow 3
This feature is only available for Airflow 3.x Deployments.Airflow task logs are generated when tasks execute in the Worker and Triggerer components. The logging sidecar is a container that runs alongside these components to collect and ship task logs to external systems like Splunk, Elasticsearch, AWS CloudWatch, or other log aggregation services.
The following procedure describes how to configure your Remote Execution Agent to use the logging sidecar. This process configures the 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:
- 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.
- Allocate resources for your sidecar container in the
values.yamlfile:
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.