On Tue, Apr 01, 2003 at 10:24:22PM +0200, Alexander Wied wrote:
> Is there any manual available how to change the log-rotating in Redhat? 

man logrotate

> We want to use the Webalizer, but Redhat constantly erases old logfiles
> or renames them to other logfiles. Redhat renames the logfiles of the
> webserver to access_log.1; access_log.2 and so on, but there are never
> more than 5 access_lo* files in the log directory. Our webserver is up
> for more than 4 months, but we got logfiles only  for the last five
> weeks.

Here's what I'm using:
[EMAIL PROTECTED] ewilts]$ cat /etc/logrotate.d/apache
/var/log/httpd/access_log /var/log/httpd/agent_log
/var/log/httpd/error_log /var/log/httpd/referer_log
/var/log/httpd/ssl_request_log {
    rotate 26
    missingok
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null
|| true
    endscript
}

        .../Ed
-- 
Ed Wilts, Mounds View, MN, USA
mailto:[EMAIL PROTECTED]
Member #1, Red Hat Community Ambassador Program



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to