文档库 最新最全的文档下载
当前位置:文档库 › 查看服务器IIS服务器日志是在Windows文件

查看服务器IIS服务器日志是在Windows文件

查看服务器IIS服务器日志是在Windows文件夹.>>>>system32>>LogFiles>>W3SVC1下的.Log文件

比如说:
2004-12-03 07:33:25 61.135.145.208 - *.*.*.* 80 GET /index/119.htm - 304 Baiduspider+(+https://www.wendangku.net/doc/729219718.html,/search/spider.htm)
这就意味着百度蜘蛛在2004-12-03 07:33:25爬过/index/119.htm这一页,它发现这页是没有更新过的。

再比如说:2004-12-03 07:33:25 61.135.145.208 - *.*.*.* 80 GET /index/120.htm - Googlebot/2.1
(https://www.wendangku.net/doc/729219718.html,/bot.html)
这就意味着Google蜘蛛在2004-12-03 07:33:25爬过/index/119.htm这一页,它发现这页是新的,并全部爬完。

下面我们针对IIS服务器日志分析个例子:
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status sc-bytes
2007-11-17 16:02:09 W3SVC999 211.155.23.176 GET /b2b_cplist.asp catid=300 80 - 61.135.162.212 Baiduspider+(+https://www.wendangku.net/doc/729219718.html,/search/spider.htm) https://www.wendangku.net/doc/729219718.html, 200 0 0 47806
IIS Log
date(日期) 2007-11-17
time(时间) 16:02:09
cs-method(方法) GET
cs-uri-stem(URI资源) /b2b_cplist.asp //代表访问的资源是当前这个文件
cs-uri-query(URI查询) catid=30 // 具体的访问参数
(cs-uri-stem+ cs-uri-query=实际访问的文件:/b2b_cplist.asp? catid=30)
s-port(服务器端口) 80
c-ip(客户端IP) 211.155.23.176(实际是网站所在服务器的IP)
cs(User-Agent) Baiduspider+(+https://www.wendangku.net/doc/729219718.html,/search/spider.htm) //百度在收录你呢J
cs(Referer) (引用站点) https://www.wendangku.net/doc/729219718.html, //搜索的站点
sc-status(协议状态) 200 //200表示OK
sc-substatus(协议子状态) 0
sc-win32-status(Win32状态) 0
sc-bytes(发送的字节数) 1329 //表示当前文件的大小

附录参数:
日期 date
时间 time
客户IP地址 c-ip
用户名 cs-username
方法 cs-method
URI资源 cs-uri-stem
协议状态 sc-status
发送字节数 sc-bytes
协议版本 cs-version
用户代理 cs(User-Agent)
参照 cs(Referer)
相比IIS缺省设置:
减少的有:

服务器IP地址
服务器端口
URI查询
增加的有:

发送字节数
协议版本
参照

HTTP协议状态码的含义
协议状态sc-status,是服务器日记扩展属性的一项。
下面是各状态码含义列表:
"100" : Continue
"101" : witching Protocols
"200" : OK
"201" : Created
"202" : Accepted
"203" : Non-Authoritative Information
"204" : No Content
"205" : Reset Content
"206" : Partial Content
"300" : Multiple Choices
"301" : Moved Permanently
"302" : Found
"303" : See Other
"304" : Not Modified
"305" : Use Proxy
"307" : Temporary Redirect
"400" : Bad Request
"401" : Unauthorized
"402" : Payment Required
"403" : Forbidden
"404" : Not Found
"405" : Method Not Allowed
"406" : Not Acceptable
"407" : Proxy Authentication Required
"408" : Request Time-out
"409" : Conflict
"410" : Gone
"41

1" : Length Required
"412" : Precondition Failed
"413" : Request Entity Too Large
"414" : Request-URI Too Large
"415" : Unsupported Media Type
"416" : Requested range not satisfiable
"417" : Expectation Failed
"500" : Internal Server Error
"501" : Not Implemented
"502" : Bad Gateway
"503" : Service Unavailable
"504" : Gateway Time-out
HTTP协议状态码的含义。
"505" : HTTP Version not supported

相关文档
相关文档 最新文档