apacheのログファイルの設定

Apache のログをカスタマイズ
Apacheのログ・ローテーション設定(access_log、error_logのlogrotate)
Apache のカスタムログ設定 - Linux で自宅サーバ [ Home Server Technical. ]

自ネットワークからのアクセスをログに記録しない

/etc/httpd/conf/httpd.conf

SetEnvIf Remote_Addr 192.168.24.* no_log
CustomLog logs/access_log combined env=!no_log

ログファイルをローテーションする

/etc/logrotate.d/httpd

/var/log/httpd/*log {
    weekly
    rotate 4
    missingok
    notifempty
    sharedscripts
    postrotate
        /sbin/service httpd reload > /dev/null 2>/dev/null || true
    endscript
}

毎週で4ファイル。