24小时咨询热线13533390539
当前位置:网站首页 > 新闻资讯 >搜浪观点 > 分析日志对网站优化有很大的帮助。
分析日志对网站优化有很大的帮助。
日期:2012-07-26     浏览:1529     作者:搜浪君
关键词:广州网站优化,网站优化

分析日志对网站优化有很大的帮助。


如何查看服务器日志,这个不用小威说,大家都明白,分析日志,对于我们网站优化有莫大的帮助,他可以让我们及时发现问题所在,并及时解决问题。小很就不多讲了,直接在网上找了一篇,大家自己可以看下(以下为转载)


查看服务器IIS服务器日志.比如说:


2004-12-03 07:33:25 61.135.145.208 - *.*.*.* 80 GET /index/119.htm - 304 Baiduspider+(+http://www.baidu.com/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


 (http://www.google.com/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+(+http://www.baidu.com/search/spider.htm) http://www.soola.net 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.soola.net//搜索的站点


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


本站原创,转载需要注明出处:


广州网站优化:http://www.soola.


返回列表
联系方式
公司固话: 020-85557485/85675730
销售电话:13922395952(黄经理)
销售电话:13533390539(郭经理)
售中客服:337604623(QQ)郭小姐
售后客服:2101996011(QQ)郑小姐
微信公众号
网站首页 业务热线 提交需求 官方微信