Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure KUSTO statment fails with "No tabular statement found"

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)
like image 493
jpsebasti Avatar asked Dec 05 '22 08:12

jpsebasti


1 Answers

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
like image 98
Yoni L. Avatar answered Dec 31 '22 15:12

Yoni L.