IIS日志查询以匹配Azure应用程序见解

时间:2019-05-07 19:03:08

标签: sql iis iis-8

我需要使以下Azure Application Insights查询与使用IIS Log Parser的本地IIS日志文件的查询尽可能地匹配。

Kusto查询AppInsights:

requests
| where timestamp between(todatetime('2019-05-06T15:15:00.000')..todatetime('2019-05-06T15:22:00.000'))
| order by timestamp desc
| summarize count() by url
| order by count_

IIS日志查询代码:

SELECT cs-uri-stem as Url, 
FROM 'C:\users\xxxx\Documents\u_ex'
WHERE to_time(time)
BETWEEN TIMESTAMP ('15:15:00','hh:mm:ss') AND TIMESTAMP('15:22:00','hh:mm:ss')
AND DATE = '2019-05-06'
COUNT(*) As Hits
GROUP BY cs-uri-stem  
ORDER By Hits DESC

我在IIS查询中遇到错误:

  

错误解析查询:语法错误::期望FROM   关键字而不是令牌C:\ users \ xxxx \ Docments \ u + ex190506.log“ [SQL   查询语法无效或不受支持。]

0 个答案:

没有答案