Accessing Execution Logs
These logs are stored in Azure Cosmos MongoDB. They can be accessed individually via the Azure Portal -> MongoDB -> Data Explorer.
However, this only allows access to one file at a record. If we need access to access the entire execution of a single process instance, we need to export these files. This is not possible natively from the Azure Portal.
Downloading Execution Logs
- Download and Extract Download MongoDB Command Line Database Tools | MongoDB
- This tool is a bit tempramental in PowerShell, so use the default Windows Command Prompt instead
- Open a command prompt in the directory above and browse to the bin sub-directory
- Create a new file called "query.json". Inside this file, paste the following, replacing the ID with your execution ID
- Find your MongoDB connection string from within Azure Portal and create a local variable called AZCOSMOS_URI. This is to remove issues with escape characters and quotes when running the query:
- Run the following command to export the JSON records