httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Crawford, Cole" <Cole.Crawf...@paymentech.com>
Subject RE: [users@httpd] alternative to cronolog
Date Tue, 04 Nov 2003 15:51:24 GMT
do it yourself

ie

DATE=`date +%Y%m%d`
KILL=/usr/bin/kill
MV=/usr/bin/mv
LOGDIR=/opt/apache/logs
FILES="access_log error_log"
CP=/usr/bin/cp

for f in $FILES
do
$CP $LOGDIR/$f $LOGARCH/$f.$DATE.log
$MV $LOGDIR/$f $LOGDIR/$f.$DATE.saved
done
$KILL -USR1 `/usr/bin/cat /opt/apache/logs/httpd.pid`

-----Original Message-----
From: Saqib Ali [mailto:saqib@seagate.com]
Sent: Tuesday, November 04, 2003 10:28 AM
To: users@httpd.apache.org
Subject: [users@httpd] alternative to cronolog


Hello All,

I am looking for some alternatives to cronolog. Anyone has any ideas?
Basically I just want to rotate logs on a daily basis.

Saqib Ali
---------
http://validate.sf.net <--- XHTML/HTML/DocBook Validator

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


  
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary and
confidential information intended only for the use of the recipient(s) named above.  If you
are not the intended recipient, you may not print, distribute, or copy this message or any
attachments.  If you have received this communication in error, please notify the sender by
return e-mail and delete this message and any attachments from your computer.

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message