azure - 获取 Azure Monitor 日志查询中失败请求的 Blob 名称列表
问题描述
有一个 blob 触发器函数失败,其中一些是由System.NullReferenceException
. 是否可以获得导致此异常的 blob 名称列表?该日志查询会是什么样子?这是我到目前为止的查询,但不确定从这里去哪里获取导致空引用异常的 blob 名称列表。
requests
| where success == false
解决方案
首先,您应该从dependencies
表而不是requests
表中查询。
然后要获取失败的 blob 列表,您可以使用如下查询:
dependencies
| where timestamp >ago(7d) // here the time range is set to the latest 7 days, you can change it.
| where success == "false"
| where type == "Azure blob"
| project customDimensions.Blob
推荐阅读
- java - Oracle Hibernate 单次插入性能间歇性变慢
- pandas - 在 mac 上的 jupyter notebook 中将 pandas 作为 pd 导入
- vue.js - 如何强制嵌套组件重新渲染
- python - Sharepoint 文件到 Jupyter Notebook
- swift - 在没有 Xcode 的情况下添加 swift 包/依赖项
- rust - 如何用元组字段定义结构?
- html - 链接来自不同文件夹的 CSS 文件和 HTML/PHP 文件
- php - Magento 1.9 getMediaGalleryImages() 从产品集合中返回空
- hibernate - 获取 Infinispan 锁座线程
- linux - 二进制文件执行错误(Assembly - linux)