【问题标题】:Azure KUSTO statment fails with "No tabular statement found"Azure KUSTO 语句失败并显示“未找到表格语句”
【发布时间】:2020-06-05 20:10:09
【问题描述】:

谁能告诉我为什么 Log Analytics 中的这个 Kusto 语句失败并显示“未找到表格语句”?

let eventcnt = Event
| where TimeGenerated > ago(10m)

我可以运行这个查询并返回一个数据表:

Event
| where TimeGenerated > ago(10m)

【问题讨论】:

  • 实际的错误信息是“No tabular expression statement found”

标签: azure-data-explorer kql


【解决方案1】:

RE:您的第一个代码 sn-p:就像您在程序中定义了一个函数,但您实际上并没有在程序中执行任何其他操作(并且您不会在程序中调用该函数)。

let 语句和查询也是如此:如果您想使用刚刚定义的内容,则需要将其包含在查询中。例如:

let eventcnt = Event
| where TimeGenerated > ago(10m);
eventcnt

【讨论】:

  • 帮助很多,谢谢@yoni
猜你喜欢
  • 2017-01-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-02-02
  • 2015-07-07
  • 2019-01-26
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多