星外系統(tǒng)IIS日志分析常用的幾個命令小結(jié)
更新時間:2012年03月31日 23:33:49 作者:
星外系統(tǒng)IIS日志分析常用的幾個命令小結(jié),使用星外系統(tǒng)IIS日志分析工具的朋友可以參考下
命令中的{0}代表源日志文件的路徑,實際運行的時候請?zhí)鎿Q為真實路徑
命令中的{1}代表日志導(dǎo)出到的文件的路徑,實際運行的時候請?zhí)鎿Q為真實路徑
例如:
7i24iislog.exe -i:BIN -o:W3C "select siteid,uristem,bytessent from 'd:\iislog\w3svc\sss.ibl' to 'd:\a.log' order by bytessent desc"
1、查詢某IP訪問某網(wǎng)站的某網(wǎng)頁的次數(shù),倒序排列
7i24iislog.exe -i:BIN -o:W3C "select clientipaddress,siteid,uristem,count(clientipaddress) from '{0}' to '{1}' group by clientipaddress,uristem,siteid order by count(clientipaddress) desc"
2、某IP訪問整個服務(wù)器網(wǎng)站的次數(shù)
7i24iislog.exe -i:BIN -o:W3C "select clientipaddress,count(clientipaddress) from '{0}' to '{1}' group by clientipaddress order by count(clientipaddress) desc"
3、按照接收數(shù)據(jù)(用戶上傳)大小排列
7i24iislog.exe -i:BIN -o:W3C "select siteid,uristem,bytesreceived from '{0}' to '{1}' order by bytesreceived desc"
4、按照發(fā)送數(shù)據(jù)(用戶下載)大小排列
7i24iislog.exe -i:BIN -o:W3C "select siteid,uristem,bytessent from '{0}' to '{1}' order by bytessent desc"
5、檢測PHP發(fā)包
7i24iislog.exe -i:BIN -o:W3C "select siteid,uristem,uriquery from '{0}' to '{1}' where uriquery like '%port=%' and uriquery like '%ip=%'"
命令中的{1}代表日志導(dǎo)出到的文件的路徑,實際運行的時候請?zhí)鎿Q為真實路徑
例如:
7i24iislog.exe -i:BIN -o:W3C "select siteid,uristem,bytessent from 'd:\iislog\w3svc\sss.ibl' to 'd:\a.log' order by bytessent desc"
1、查詢某IP訪問某網(wǎng)站的某網(wǎng)頁的次數(shù),倒序排列
7i24iislog.exe -i:BIN -o:W3C "select clientipaddress,siteid,uristem,count(clientipaddress) from '{0}' to '{1}' group by clientipaddress,uristem,siteid order by count(clientipaddress) desc"
2、某IP訪問整個服務(wù)器網(wǎng)站的次數(shù)
7i24iislog.exe -i:BIN -o:W3C "select clientipaddress,count(clientipaddress) from '{0}' to '{1}' group by clientipaddress order by count(clientipaddress) desc"
3、按照接收數(shù)據(jù)(用戶上傳)大小排列
7i24iislog.exe -i:BIN -o:W3C "select siteid,uristem,bytesreceived from '{0}' to '{1}' order by bytesreceived desc"
4、按照發(fā)送數(shù)據(jù)(用戶下載)大小排列
7i24iislog.exe -i:BIN -o:W3C "select siteid,uristem,bytessent from '{0}' to '{1}' order by bytessent desc"
5、檢測PHP發(fā)包
7i24iislog.exe -i:BIN -o:W3C "select siteid,uristem,uriquery from '{0}' to '{1}' where uriquery like '%port=%' and uriquery like '%ip=%'"
相關(guān)文章
Windows 2000的系統(tǒng),防止木馬寫入指定目錄
Windows 2000的系統(tǒng),防止木馬寫入指定目錄...2007-08-08新安裝的用戶,請檢查有沒有修改默認的數(shù)據(jù)庫密碼。
新安裝的用戶,請檢查有沒有修改默認的數(shù)據(jù)庫密碼。...2007-08-08