Push logs to S3

0

How can I push Airflow task logs to S3?

I tried adding the following configuration parameters to "Airflow configuration options",
logging.base_log_folder: /usr/local/airflow/logs
logging.remote_base_log_folder: s3://my-bucket/logs/
logging.remote_log_conn_id: aws_default
logging.remote_logging: True
but it seems to have no effect.

Came across this https://blogs.halodoc.io/experience-with-evaluating-managed-workflow-for-apache-airflow-mwaa/ post saying it ain't possible to push logs into S3.

已提問 3 年前檢視次數 944 次
3 個答案
0

Hi,

Logging configurations cannot be changed in MWAA. All logs are sent exclusively to CloudWatch.

Thanks.

AWS
John_J
已回答 3 年前
0

Hi John,

Thanks for your response!
Would you know if support for other logging destinations is on the roadmap as such?

已回答 3 年前
0

Unfortunately Airflow currently does not support multiple logging destinations, and CloudWatch is required for service monitoring.

You can however export from Cloudwatch to S3: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/S3Export.html

AWS
John_J
已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南