如何在Azure Log Analytics中创建注释 [英] How to create comments in Azure Log Analytics

查看:69
本文介绍了如何在Azure Log Analytics中创建注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Azure Log Analytics查询中创建注释,但我很困惑.我认为挑战的一部分是将该系统视为SQL,显然不是.例如,使用-"会导致语法错误

I'm trying to create comments in my Azure Log Analytics queries and I'm stumped. Part of my challenge I think is treating this system as if it were SQL, which it is clearly not. using "--" for instance results in a syntax error

traces 
| where severityLevel > 1
-- this is an example of a line comment
| where message !contains "DiagnosticsLogger.GetMethod contains message 1"  
| where message !contains "DiagnosticsLogger.GetMethod contains message 2"
| summarize by timestamp, message, severityLevel

https://docs.loganalytics.io 参考.

推荐答案

//适用于Azure Log Analytics查询

// works for Azure Log Analytics queries

这篇关于如何在Azure Log Analytics中创建注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆