在日志分析中添加一排,kusto查询
我查询请求日志以摘要状态代码。但是,我想在结果结束时添加一行,以显示请求总数。如何添加这样的行?
当前查询(简化)
MyLog
| summarize count() by responseCode
当前结果看起来像是
响应量 | 计数 |
---|---|
200 | 1000 |
404 | 20 |
500 | 100 |
我想拥有这样的总数,例如This
Responsecode | Count |
---|---|
200 | 1000 |
404 | 20 |
500 | 100 |
总计 | 1120 |
I query a request log for a summary of status codes. However I would like to add a row at the end of the results, showing the total number of requests. How do I add such a row?
Current query (simplified)
MyLog
| summarize count() by responseCode
Current result looks like
responseCode | count |
---|---|
200 | 1000 |
404 | 20 |
500 | 100 |
I would like to have the totals like this
responseCode | count |
---|---|
200 | 1000 |
404 | 20 |
500 | 100 |
total | 1120 |
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试以下操作:
或以下:
如果您想将“总”行持续保留,则可以订购联合数据集。例如:
you could try this:
or this:
if you want to keep the 'total' row last, you can order the unioned data set. for example: