How can I see the audit trail/execution history of a workflow?
While having a workflow open, clicking on Executions and Execution history provides detailed information about respective workflow executions, including their outcome, log, and the possibility of re-running it.
To see a general overview of all executions (across workflows) you can click on Executions on the top left corner while being in the overall workflow table.
This is great. However, looking at the event data this is what one of my customer needs.
An audit report that shows the workflow runs, who runs it, who created the workflow or modified the workflow.
The also need a breakdown of each step in the workflow, to understand which element in the workflow may need to be optimized.
you can find each workflow execution as a system event in grail: System event models — Dynatrace Docs
This contains the info when, who or what it was triggered, and the final state.
You can also use the task and action executions data to look at individual tasks, and eg identify task or certain action with high failure rate.
The lifecycle events are written anytime a workflow is saved, by whom on what kind of change it was: System event models — Dynatrace Docs
For specific details on the structure of a workflows, this is done in the workflows app.
Hi.
How do we filter these system events for the workflow final status using DQL?
Thank you
this will give you the information about the latest workflow execution for every workflows:
fetch dt.system.events
| filter event.provider == "AUTOMATION_ENGINE"
| filter event.type == "WORKFLOW_EXECUTION"
| dedup dt.automation_engine.workflow.id, sort: { timestamp desc }
HI
Is there a DQL that can figure out the number of tasks executed per workflow?
This is kind of the runtime cost for the task execution themselves?
Calculate your consumption of Automation Workflow (DPS) — Dynatrace Docs
Example.
9 (workflow executions) × 2 (executed tasks) × 1 (minutes per AppEngine function) = 18 invocations

