<?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://mosa.nubobo.net/archives/tag/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://mosa.nubobo.net</link>
	<description>へぼプログラマのメモ書き</description>
	<lastBuildDate>Fri, 17 Jun 2011 07:57:44 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Apacheのアクセスログを日付別に分割する：mod_log_rotate</title>
		<link>http://mosa.nubobo.net/archives/13</link>
		<comments>http://mosa.nubobo.net/archives/13#comments</comments>
		<pubDate>Tue, 21 Apr 2009 05:05:00 +0000</pubDate>
		<dc:creator>もさもさ</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://mosa.nubobo.net/archives/13/apache%e3%81%ae%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e3%83%ad%e3%82%b0%e3%82%92%e6%97%a5%e4%bb%98%e5%88%a5%e3%81%ab%e5%88%86%e5%89%b2%e3%81%99%e3%82%8b%ef%bc%9amod_log_rotate/</guid>
		<description><![CDATA[AWStats等のアクセスログ解析のためにApacheのアクセスログを日付別に分割したい場合がある。今まではパイプでcronologを使って分割パイプで使用していたが、なんだか怪しい気がしていた。 Apacheのモジュールで存在しないか探してみたところ発見した。Mod-log-rotate &#8211; Hexten mod_log_rotateをCentOS 5.2にインストールしたときのメモ ◆ダウンロード $ wget http://hexten.net/assets/apache2/mod_log_rotate.c ◆インストール # apxs -i -a -c mod_log_rotate.c ※apxsコマンドがない場合はhttpd-develをインストールする # yum install httpd-devel 勝手に/etc/httpd/conf/httpd.confも書き換わるっぽい。 ◆設定（/etc/httpd/conf/httpd.conf）おそらくこれは上記インストール時に追加される。 LoadModule log_rotate_module /usr/lib64/httpd/modules/mod_log_rotate.so 下記を追加する。 RotateLogs OnRotateLogsLocalTime On CustomLog部分の変更。日付別の形式とする。 #CustomLog logs/access_logcombined CustomLog "logs/access_log.%Y%m%d" combined ◆設定（/etc/httpd/conf.d/ssl.conf）ssl_access_log部分の変更 #TransferLog logs/ssl_access_logCustomLog "logs/ssl_access_log.%Y%m%d" combined ssl_request_log部分の変更 #CustomLog logs/ssl_request_log \# "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"CustomLog "logs/ssl_request_log.%Y%m%d" \ "%t [...]]]></description>
		<wfw:commentRss>http://mosa.nubobo.net/archives/13/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

