You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Matthew Daubenspeck <ma...@oddprocess.org> on 2002/03/14 19:04:56 UTC

Log Rotation

I am using Apache/1.3.9 with debian 2.2rev5 [potato]

I have a mess of Named Virtual hosts, all with their own Custom error and 
access logs in separate directories. Will the cron.conf file that controls 
the log rotation rotate ALL logs automatically, or logs only in the default 
log directory?

# Debian Apache cron.daily config file

# Number of logs to keep.
APACHE_OLD_LOGS=52

# Which day of the week to run log rotation stuff on, case insensitive.
# Allowed values are one or more of: Mon,Tue,Wed,Thu,Fri,Sat,Sun,All
APACHE_DAYS_TO_RUN=Sun

# Which exact day to run log rotation stuff, if not "any" this
# supercedes the above.  Allowed values are a day of month between 01
# and 32, or a day of year between 001 and 366.  Set to "01" for
# Webalyzer and analog, but note logfiles can get huge.
APACHE_DAY_TO_RUN=any

# Pre-rotation script to run (leave blank if none).
# APACHE_PRE_SCRIPT=/usr/local/sbin/run_analog

# Post-rotation script to run (leave blank if none).
# APACHE_POST_SCRIPT=/usr/local/sbin/run_analog

# Whether to chown logfiles to the user/group Apache runs as.
APACHE_CHOWN_LOGFILES=1



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: Log Rotation

Posted by Daniel Giovannoni <te...@ct5.com>.
If Im not mistaken, logrotate.conf - /etc  -- It may be possible to
create a cron job out of it, though... 




-----Original Message-----
From: Matthew Daubenspeck [mailto:matt@oddprocess.org] 
Sent: Thursday, March 14, 2002 12:05 PM
To: users@httpd.apache.org
Subject: Log Rotation

I am using Apache/1.3.9 with debian 2.2rev5 [potato]

I have a mess of Named Virtual hosts, all with their own Custom error
and 
access logs in separate directories. Will the cron.conf file that
controls 
the log rotation rotate ALL logs automatically, or logs only in the
default 
log directory?

# Debian Apache cron.daily config file

# Number of logs to keep.
APACHE_OLD_LOGS=52

# Which day of the week to run log rotation stuff on, case insensitive.
# Allowed values are one or more of: Mon,Tue,Wed,Thu,Fri,Sat,Sun,All
APACHE_DAYS_TO_RUN=Sun

# Which exact day to run log rotation stuff, if not "any" this
# supercedes the above.  Allowed values are a day of month between 01
# and 32, or a day of year between 001 and 366.  Set to "01" for
# Webalyzer and analog, but note logfiles can get huge.
APACHE_DAY_TO_RUN=any

# Pre-rotation script to run (leave blank if none).
# APACHE_PRE_SCRIPT=/usr/local/sbin/run_analog

# Post-rotation script to run (leave blank if none).
# APACHE_POST_SCRIPT=/usr/local/sbin/run_analog

# Whether to chown logfiles to the user/group Apache runs as.
APACHE_CHOWN_LOGFILES=1



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org