<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>寂静的深海 &#187; Apache</title>
	<atom:link href="http://www.deepseath.com/?feed=rss2&#038;tag=apache" rel="self" type="application/rss+xml" />
	<link>http://www.deepseath.com</link>
	<description></description>
	<lastBuildDate>Mon, 29 Jan 2024 09:55:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>IIS的日志分析</title>
		<link>http://www.deepseath.com/?p=341</link>
		<comments>http://www.deepseath.com/?p=341#comments</comments>
		<pubDate>Mon, 13 Oct 2008 18:11:35 +0000</pubDate>
		<dc:creator>Deepseath</dc:creator>
				<category><![CDATA[程序人生]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Explorer]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[INT]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[microsoft windows]]></category>
		<category><![CDATA[pi]]></category>
		<category><![CDATA[Port]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[W3C]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[中文]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[服务]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[浏览器]]></category>
		<category><![CDATA[知识]]></category>

		<guid isPermaLink="false">http://www.deepseath.com/?p=341</guid>
		<description><![CDATA[为了方便而又准确的统计站点信息需要分析IIS日志，找了好多软件，要么不是自己需要的要么就是收费的，因此打算自己写一个分析的程序，于是进入微软技术站看技术文档，总结了一下写在这里以备忘：   1。为了集中而又方便的统计整台服务器的日志，如果各个站点单独记录日志可能统计起来不太方便，当然如果只是为了统计某个站点那就另当别论了，我打算统计整台服务器多个站点的数据，因此如果能将多站日志合并到一起或许会方便一些。因此需要用到IIS的“启用 W3C 集中日志记录”功能，在命令行执行命令：Adsutil.vbs set w3svc/CentralW3CLoggingEnabled true，然后重起IIS服务就可以了。 2。因为服务器运行在中文语言下，而且很多站点是UTF-8作为编码字符集的，因此还有必要将IIS日志设置为UTF-8编码的，方便分析同时也相对安全一些，打开这个功能可以这样做：在IIS管理器中，在本地计算机上点击右键，选择“属性”，在“UTF-8日志”选项单元中，钩选“用 UTF-8 编码 Web 日志”，然后确定并重起IIS服务即可。 3。IIS的每个字段之间使用半角空格进行分隔的。就每个字段数据而言如果存在空格则IIS自动会将空格转换为“+”。但，要注意数据中可能自身会存在“+”。 4。每个字段对应的含义是： 日期(date)，时间(time)，客户端IP地址(c-ip)，用户名(cs-username)，服务名(s-sitename)，服务器名(s-computername)，服务器ip地址(s-ip)，服务器端口(s-port)，方法(cs-method)，uri资源(cs-uri-stem)，uri查询(cs-uri-query)，协议状态(sc-status)，协议子状态(sc-substatus)，wind32状态(sc-wind32-status)，发送的字节数(sc-bytes)，接收的字节数(cs-bytes)，所用时间(time-taken)，协议版本(cs-version)，主机(cs-host)，用户代理(cs(User-Agent))，cookie(cs(Cookie))，引用站点(cs(Referer)。 5。协议状态(这就是通用的了，无论是IIS还是Apache抑或是其他的)。 1xx &#8211; 信息提示：这些状态代码表示临时的响应。客户端在收到常规响应之前，应准备接收一个或多个 1xx 响应。 100 &#8211; 继续。 101 &#8211; 切换协议。 2xx &#8211; 成功：这类状态代码表明服务器成功地接受了客户端请求。 200 &#8211; 确定。客户端请求已成功。 201 &#8211; 已创建。 202 &#8211; 已接受。 203 &#8211; 非权威性信息。 204 &#8211; 无内容。 205 &#8211; 重置内容。 206 &#8211; 部分内容。 3xx &#8211; 重定向：客户端浏览器必须采取更多操作来实现请求。例如，浏览器可能不得不请求服务器上的不同的页面，或通过代理服务器重复该请求。 [...]]]></description>
		<wfw:commentRss>http://www.deepseath.com/?feed=rss2&#038;p=341</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
