IIS LOG Parser語法

LOG Parser語法和SQL很像,出來的結果也和SQL很像有欄位、有列資料,

————————————————————————————-

這樣可以抓全部的欄位,不過資料大的話會很久容易當。
SELECT * FROM c:\u_ex131202.log

————————————————————————————

取得IE6的紀錄
SELECT
cs(User-Agent) AS Browser, c-ip , COUNT(*) AS Requests
FROM c:\u_ex131202.log
where cs(User-Agent) like ‘%MSIE+6.0%’
GROUP BY Browser , c-ip

————————————————————————————

可以使用的欄位語法
cs(User-Agent) => 取得瀏覽器的資訊
c-ip => 取得IP的資訊
TO_STRING(time, ‘HH’) => 取得小時的資訊

————————————————————————————

by mhchen15 on 2 12 月, 2013 in 工具

There are no comments.

Name*: Website: E-Mail*:
XHTML: You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>