Users can specify the directory to place log files in airflow. cfg using base_log_folder . By default, logs are placed in the AIRFLOW_HOME directory.
Where are Airflow logs located?
Users can specify a logs folder in airflow. cfg. By default, it is in the AIRFLOW_HOME directory.
...
2 Answers
...
2 Answers
- Select the DAG you just ran and enter into the Graph View .
- Select the task in that DAG that you want to view the output of.
- In the following popup, click View Log .
How do I enable Airflow logs?
Follow the steps below to enable custom logging config class:
- Start by setting environment variable to known directory e.g. ~/airflow/ ...
- Create a directory to store the config file e.g. ~/airflow/config.
- Create file called ~/airflow/config/log_config.py with following content: