How to create comments in Azure Log Analytics

两盒软妹~` 提交于 2020-01-11 10:21:51

问题


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

Couldn't find anything for search term "Comment" either on the https://docs.loganalytics.io reference.


回答1:


// works for Azure Log Analytics queries



来源:https://stackoverflow.com/questions/47641274/how-to-create-comments-in-azure-log-analytics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!