如何查看和分析网站日志,分析和查看网站日志教程。

作为SEO不仅要会使用网站统计工具分析和查看网站流量,而且要能够看懂和了解网站日志,提高网站安全和风险防范意识防患于未然。

下面就带大家分析一下的网站日志,不同的空间服务商下载的网站日志会有不同,但大都八九不离十差不多,大家学会变通即可。

在这提供seo就举一条来分析:

#Software: Microsoft Log Parser
#Version: 1.0
#Date: 2012-02-13 00:29:02
#Fields: LogFilename RecordNumber ComputerName SiteID DateTime ClientIpAddress ServerIpAddress ServerPort Method ProtocolVersion ProtocolStatus SubStatus TimeTaken BytesSent BytesReceived Win32Status UriStem UriQuery UserName
d:iislogW3SVCra120212.ibl 39517 USER-1A7617C508 1081210000 2012-02-12 01:36:42 220.181.125.71 182.16.6.162 80 GET HTTP/1.1 200 0 87890 33493 360 0 /index.php - -

#Software:表示分析日志的软件名称 在这里是Microsoft Log Parser(微软日志分析器)

#Version:代表版本号 这里是1.0

#Date:代表日前 这里为2012-02-13 00:29:02

#Fields:日志的描述说明  这里为

LogFilename RecordNumber ComputerName SiteID DateTime ClientIpAddress ServerIpAddress ServerPort Method ProtocolVersion ProtocolStatus SubStatus TimeTaken BytesSent BytesReceived Win32Status UriStem UriQuery UserName

Log File name:日志文件名称          Record Number:记录次数

Computer Name:计算机名称         Site ID:站点ID

Date Time:日期时间                     Client Ip Address:客户端IP地址

Server Ip Address:服务器IP地址    Server Port:服务器端口

Method:请求方式                         Protocol Version:版本协议

Protocol Status:协议状态              Sub Status:子状态

Time Taken:抓取时间                    Bytes Sent:发送字节

Bytes Received:接受字节               Win32 Status:Win32状态

UriStem UriQuery UserName:受访的地址及名称

有了描述中的这些参数说明,就不难理解日志的内容了,接下来提供网站优化和大家一起来分析这条完整的日志:

d:iislogW3SVCra120212.ibl 39517 USER-1A7617C508 1081210000 2012-02-12 01:36:42 220.181.125.71 182.16.6.162 80 GET HTTP/1.1 200 0 87890 33493 360 0 /index.php - -

d:iislogW3SVCra120212.ibl 日志文件路径及名称

39517 记录次数

USER-1A7617C508   用户1A7617C508

1081210000   站点ID

2012-02-12 01:36:42   日期和时间

220.181.125.71    客户端IP地址

182.16.6.162    服务器IP地址

80  服务器端口

GET HTTP/1.1 200 0 87890 33493 360 0 /index.php - -  受访的页面地址

这样就网站日志就一目了然了,这条日志的意思就是这个IP(220.181.125.71)在这个(2012-02-12 01:36:42)时间来到了这个(HTTP/1.1 200 0 87890 33493 360 0 /index.php) 页面。

如果这个IP220.181.125.71为百度蜘蛛、谷歌蜘蛛或者其他引擎的IP就可以判断搜索引擎什么时候来到你网站了。

0