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.
deployment create
or pod create
in the kubernetes Namespace where your Remote Execution Agent is installed.values.yaml
file to collect task logs:enabled
to true
in your Remote Execution Agent’s values.yaml
file, 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
file: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.