简体   繁体   中英

Access and search an Azure Logic app history

I'd like to be able to search my logic app runs with more than just status/date range, eg keywords in trigger body or an action output.

I've been looking into https://docs.microsoft.com/en-us/rest/api/logic/workflowruns/list using https://management.azure.com but seem to be limited to the top 250 and would then need to call the get workflow run actions based on each result.

Is there a best practise way to access/search a logic app history (more than the top 250), in order to search it's content within given actions?

For this requirement, I suggest you to export the logs of logic app to "Log Analytics Workspace".

First, you need to create a "Log Analytics Workspace".

Then enable log analytics workspace for your logic app. And go to your logic app, set up Azure Monitor logs.

Run your logic app a few times and wait for a few minutes(at least 20 minutes). Then you can see the logs in your "Log Analytics Workspace".

After that, you can use api to query the logs.

Here is another post which I provided answer also use "Log Analytics Workspace" for your reference.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM