httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Gallen <ggal...@slackinc.com>
Subject RE: Apache Logs
Date Thu, 20 Jun 2002 14:54:45 GMT
one caveat, don't delete and touch the file on the cron job,
or your logs will not update until httpd is restarted, as the
INODE still points to the old file.

Instead to clear the file do a 'cp /dev/null logfile' this will
reset it to a null file, and the logs will continue as normal.

George

>-----Original Message-----
>From: Jonathan Thomas [mailto:jonathan.thomas@veritas.com]
>Sent: Thursday, June 20, 2002 10:51 AM
>To: users@httpd.apache.org
>Subject: RE: Apache Logs
>
>
>Sounds like a nice daily cron job using sendmail should do the 
>trick... ?
>
>
>
>Thanks,
>JT
>
>
>-----Original Message-----
>From: Enrico Weigelt [mailto:weigelt@metux.de] 
>Sent: Thursday, June 20, 2002 10:32 AM
>To: users@httpd.apache.org
>Subject: Re: Apache Logs
>
>
>On Thu, Jun 20, 2002 at 12:44:33AM -0600, Kerry Peterson wrote:
>> Hello, I've been toying with this idea for awhile now, and I want to 
>> put it into action, what I want to do is have something that at the 
>> end of every day will take my apache logs, and email them to 
>me, then 
>> if possible split the logs into separate day files (instead 
>of the one 
>> log file) and start a new file for that day and so on. I've searched 
>> around for something that would do this, but to no avail. If anyone 
>> knows of anything that does this (or anything that will at 
>least email 
>> me the logs every day) plz feed me the url. Many thanks.
>
>logrotate
>
>~-n
>
>--
> Enrico Weigelt    ==   metux ITS 
> Webhosting ab 5 EUR/Monat. Server-Housing ab 50 EUR/Monat.
> www:     http://www.metux.de/        phone:     +49 36207 519931
> email:   contact@metux.de            cellphone: +49 174 7066481
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>

Mime
View raw message