Forum Discussion
srikanth3300
Apr 23, 2020Former Employee
log details for Trigger run
The below query is working in Workbooks.
when I am modifying the line | where TriggerName == "{TriggerName}" to below
| where TriggerName == TriggerName, then also it is failing.
error...
CliveWatson
Apr 24, 2020Former Employee
"{TriggerName}" - or anything within { } is unique to a Workbook and has to be replaced in a Log Analytics query. So if the workbook parameter TriggerName has a string value of "this is a trigger", the KQL would be.
| where TriggerName == "This is a trigger"
A workbook, knows that the query language you are using is KQL - either Log Analytics or Azure resource Graph. However if you take the query from a Workbook and run it in the Log Analytics console you have to adapt it.
Make sense?