Skip to content

Remote logging to Azure blob storage #749

Discussion options

You must be logged in to vote

@HakarK after reading the airflow implementation, I can confirm that Azure Blob Store logging is really messed up, as explained here.

Effectively, the problems are:

  1. the Azure Blob Store container name has been hard-coded to airflow-logs
  2. the REMOTE_BASE_LOG_FOLDER must start with wasb for airflow to know you are using Azure Blob Store (which causes blob names to always have a prefix that starts with wasb/)

However, we can work around these issues to get logs stored in the Azure Blob Store container named MY_CONTAINER, with the prefix CUSTOM_PREFIX/.

SOLUTION: Airflow 2.6

If you are using airflow 2.6, you can set:

  • AIRFLOW__LOGGING__REMOTE_LOGGING to True
  • AIRFLOW__LOGGING__REMOTE_LOG_CONN_ID

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@HakarK
Comment options

Comment options

You must be logged in to vote
5 replies
@HakarK
Comment options

@thesuperzapper
Comment options

@HakarK
Comment options

@thesuperzapper
Comment options

@HakarK
Comment options

Answer selected by thesuperzapper
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants