I want to create an Azure Alert by custom log search. Ich wrote a query to monitor e.g. the Processor Usage and render the results in a timechart. This query works in the Analytics without problems, but when I provide this query to the custom log search, the timechart for the alert doesn't work, that means the diagram is completely wrong. But I didn't change anything...
My query:
Perf
| where CounterName == "% Processor Time" and ObjectName == "Processor" and InstanceName == "_Total"
| summarize AggregatedValue = avg(CounterValue) by bin(TimeGenerated, 1h), Computer
| render timechart
This query works fine in Logs:
And the result in the Alert configurations:
Picture of the query in alerts configuration
Did I forget something? I mean obviously I can use this feature with the custom log search otherwise I couldn't provide the query to the alert.
Thanks in Advance!