Can someone tell me why this Kusto statement in Log Analytics fails with "no tabular statement found"?
let eventcnt = Event
| where TimeGenerated > ago(10m)
I can run this query and a table of data is returned:
Event
| where TimeGenerated > ago(10m)
RE: your first code snippet: it's like you define a function in your program, but you don't actually do anything else in your program (and you don't call that function in your program).
it's the same with let
statements and queries: if you want to use what you've just defined, you need to include it in your query. for example:
let eventcnt = Event
| where TimeGenerated > ago(10m);
eventcnt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With