header image

Ryuzeeの他サイト

mixi Twitter Twitter

Categories

携帯対応

QRコード

RING

人気ブログランキング



新着記事

実はすごく簡単です。

まずcronologを導入する。

その後、httpd.confにおいて、以下のようなエントリを追加する。

CustomLog "|/usr/local/sbin/cronolog /var/log/httpd/bydate/access.log.%Y%m%d" combined env=!nolog

logkfと組み合わせたりするとさらに良い。

またcronologにはcronosplitというツールが付属している。
cronosplit を使えば、一発でログ分割が出来るので便利だ。

/usr/local/sbin/cronosplit --template "access.log.%Y%m%d" access.log

Ratings

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

“apacheのログを日別に分割する”へのコメントはありません。

コメントはありません。是非コメントしてください。

コメントする

XHTML: 以下のタグが利用可能です: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback

 

add to hatena hatena.comment (0) add to del.icio.us (0) add to livedoor.clip (0) add to Yahoo!Bookmark (0) Total: 0