Raphael Dumas created AIRFLOW-5573:
--------------------------------------

             Summary: Explain/Improve Default Logging Behaviour
                 Key: AIRFLOW-5573
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5573
             Project: Apache Airflow
          Issue Type: Improvement
          Components: logging
    Affects Versions: 1.10.5
            Reporter: Raphael Dumas


The [documentation for 
logging|[https://airflow.apache.org/howto/write-logs.html]] currently only 
mentions the various places logging files can get stored. It does not mention 
any configuration options for log persistence (which I'm guessing there are 
none).

After 1 month of operation with mostly just the example dags, my log files were 
on the order of 20 GB. 

I have found found the following resources, indicating this appears to a common 
problem:

- [Removing Airflow task logs|https://stackoverflow.com/q/43548744/4047679]
- [Remove Airflow Scheduler 
logs|https://stackoverflow.com/questions/49783850/remove-airflow-scheduler-logs]
- Both lead to [this 
"extension"|https://github.com/teamclairvoyant/airflow-maintenance-dags] which 
includes a dag for deleting log files older than X days.

*Can the default logging behaviour be explained in the logging documentation 
section?*
*Can that extension be linked to in the logging documentation section?*
*Can there be a configuration option to specify the amount of time logs will 
persist?*

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to