Acehaidrey opened a new pull request #20733: URL: https://github.com/apache/airflow/pull/20733
<!-- Thank you for contributing! Please make sure that your code changes are covered with tests. And in case of new features or big changes remember to adjust the documentation. Feel free to ping committers for the review! In case of existing issue, reference it using one of the following: closes: #ISSUE related: #ISSUE How to write a good git commit message: http://chris.beams.io/posts/git-commit/ --> A common use case for our users is that they want to know exactly what actions pertain to their dags. This is partially available because Airflow as a system allows for event logging, but these event logs have a ton of noise. Each organization may only care about certain events only - maybe some want only POST events, some could want all events minus system generated events, others could want to see them all. The fact is, this is all available but to present this data could be useful if we have it just on the dag view level. In this case, we filter the view to just display events for the specific dag of course, and we provide in the airflow.cfg a way to only filter based on events they care for. The screenshots below capture this, and how can interact with this. In this view too, there is a link back to the Log View which will have all events. We simply put the events of the last X days (default it to 31 in the cfg) but we can change this behavior if the open source community doesn't like it. It is primarily meant to allow users to know who cleared the dag, or marked a date or anything of that sort recently. Actions that would directly affect the run of the workflow. First screenshots are just of all the records, but later on we use the below settigns to remove the excluded events to show they will not be displayed either. ``` # Number of dags to look back for dag audit log view audit_trail_query_days = 31 # Types of events to ignore for dag audit log view # E.g. excluded_events = dagrun_success,landing_times excluded_events = tree,running # Types of events to include for dag audit log view # e.g. included_events = dagrun_cleared,failed included_events = ``` ![Uploading Screen Shot 2022-01-06 at 1.00.28 PM.png…]() This PR is ready for merging as it doesn't touch any new major components, but any concerns can be discussed and altered. --- **^ Add meaningful description above** Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#pull-request-guidelines)** for more information. In case of fundamental code change, Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals)) is needed. In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x). In case of backwards incompatible changes please leave a note in [UPDATING.md](https://github.com/apache/airflow/blob/main/UPDATING.md). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
