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.

demandé il y a 3 ans945 vues
3 réponses
0

Hi,

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

Thanks.

AWS
John_J
répondu il y a 3 ans
0

Hi John,

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

répondu il y a 3 ans
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
répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions