Finding action taken on DAGs

722 views
Skip to first unread message

Chetan Chodankar

unread,
Mar 24, 2022, 11:37:04 AM3/24/22
to cloud-composer-discuss
Hi Team, Is there a way to find out which user has paused or unpaused a specific DAG from GCP composer? 
Please let me know if any specific search criteria can be used in log explorer? 

Thanks,
Chetan

Slawek Walkowski

unread,
Mar 25, 2022, 5:12:25 AM3/25/22
to cloud-composer-discuss
Hi Chetan,

For DAG pause/unpause actions performed through Airflow RBAC UI, the actions that are visible in Browse > Audit Logs in Airflow UI point to the user who performed them:
Airflow Audit Logs.png

The numeric account ID can be mapped to user email through Security > List Users page in Airflow UI - you must have the Admin role in Airflow RBAC to see them. There are also other ways to resolve the Google Account numeric ID, outside of Airflow.

Unfortunately, for pause/unpause actions triggered through Airflow CLI, you will see 'cli_dag_pause' event with 'airflow' owner, not pointing to a specific user.

For DAGs paused/unpaused through Airflow UI, you can also see the requests in airflow-webserver Composer logs in Cloud Logging - but you won't see the caller identity this way:
Composer Cloud Logging.png

I hope this helps.

Slawek

Chetan Chodankar

unread,
Mar 25, 2022, 10:52:15 AM3/25/22
to cloud-composer-discuss
Thank you Slawek. I was able to figure out with approach you mentioned. Similar comment I was able to find in below tracker. 
Ideally this should also appear in Log explorer so for that feature request, issue can be tracked at:  https://issuetracker.google.com/194998739

Regards,
Chetan C

Reply all
Reply to author
Forward
0 new messages