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개 답변
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠