|
做seo,难免要分析服务器日志,我们下面将分析数据源日志格式和按天的截断规则 下面我们针对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+(+http://www.baidu.com/search/spider.htm) http://www.24hx.cn 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+(+http://www.baidu.com/search/spider.htm) //百度在收录你呢J cs(Referer) (引用站点) http://www.24hx.cn //搜索的站点 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 "411" : 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
|