I'm trying to create a custom log alert with this query:
traces
| where message contains "Setup"
| extend Proposal = tostring(split(split(tostring(message), " ]")[1], ": ")[1])
| summarize AggregatedValue=count() by Time=bin(ago(24h), 1h), Proposal
But I'm getting the error
Search Query should contain 'AggregatedValue' and 'bin(timestamp, [roundTo])' for Metric alert type
Since I have both requirements of the error, why am I getting it?
summarize AggregatedValue=count() by bin(ago(24h), 1h), Proposal
? Besides, could you please describe your issue in detail? – Jim Xu