azure-data-explorer - 查找使用 Kusto 函数的最后日期
问题描述
我想在我们的 Kusto 集群中进行一些清理,该集群充满了我们创建的功能,我知道其中许多功能没有被使用(而且我很确定它们也不能正常工作)。有没有办法查询每个函数最后一次使用的时间?
解决方案
Your cluster holds a journal of last actions, including queries, dating 14 days back. You can access it using the ".show queries" command (in order to view queries run by other users, the command caller must be the relevant DB admin). Further filters can be applied on the ".show queries" output to zero in on the specific functions you are interested in (note - if you have function calling other functions, this investigation will become a little more tricky).
For example: .show queries | where Database == "" and Text has "" | summarize count(), max(StartedOn) by Principal
推荐阅读
- javascript - 缺少 innerHTML 内容
- android - Unity + Mapbox + ARCore __Colliding plugins[arcore_client.aar] 导入 Mapbox SDK 后构建错误
- javascript - 从 URL 地址自动预选下拉值
- git - git 错误:无法读取“https://github.com”的用户名:输入/输出错误
- javascript - 根据电子表格的时区将时间转换为 GMT
- google-api - 将 Google 品牌帐户与内部 OAuth API 项目结合使用
- python - 如何在 python 3.8 的另一个函数中调用一个函数?
- python - 将数组值添加到标识符与其他数组匹配的 numpy recarray
- node.js - Vercel Serverless 功能与 nuxtjs ECONNRESET 客户端网络套接字在建立安全 TLS 连接之前断开连接
- android-jetpack-compose - Jetpack Compose 列表差异动画