Accessing Execution Logs
Symptoms
These logs are stored in Azure Cosmos MongoDB and may be required to investigate a full execution. The portal's Data Explorer only shows individual records, not an entire execution trace.
Scope
Applies when you need the full execution JSON for a single process instance.
How to export execution logs
- Download and extract the MongoDB Database Tools: https://www.mongodb.com/try/download/database-tools
- Use the Windows Command Prompt for best results.
- Open a command prompt in the tools
bindirectory. - Create a file called
query.jsoncontaining the execution CorrelationId (replace the ID):
mongoexport.exe --uri "%AZCOSMOS_URI%" --db npobpmastmdb001custexec --collection ExecutionQueueItem --jsonArray --queryFile query.json --out results.json
Verification checklist
- [ ]
results.jsoncontains the full execution records for the CorrelationId
Notes
- The portal Data Explorer returns single documents only; exporting is required for full traces.