简体   繁体   English

访问和搜索 Azure Logic 应用历史记录

[英]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.我希望能够搜索我的逻辑应用程序运行的不仅仅是状态/日期范围,例如触发器正文中的关键字或操作 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. 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然后需要根据每个结果调用获取工作流运行操作。

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?是否有访问/搜索逻辑应用历史记录(超过前 250 个)的最佳实践方法,以便在给定操作中搜索其内容?

For this requirement, I suggest you to export the logs of logic app to "Log Analytics Workspace".对于这个需求,我建议您将逻辑应用的日志导出到“Log Analytics Workspace”。

First, you need to create a "Log Analytics Workspace".首先,您需要创建一个“Log Analytics 工作区”。

Then enable log analytics workspace for your logic app.然后为逻辑应用启用日志分析工作区。 And go to your logic app, set up Azure Monitor logs.和 go 到您的逻辑应用程序, 设置Azure 监控日志。

Run your logic app a few times and wait for a few minutes(at least 20 minutes).运行你的逻辑应用几次并等待几分钟(至少 20 分钟)。 Then you can see the logs in your "Log Analytics Workspace".然后,您可以在“Log Analytics 工作区”中查看日志。

After that, you can use api to query the logs.之后,您可以使用api查询日志。

Here is another post which I provided answer also use "Log Analytics Workspace" for your reference.这是我提供答案的另一篇文章,也使用“Log Analytics Workspace”供您参考。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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