On Wednesday 05 October 2005 07:57 am, R, Rajesh (STSD) wrote:
> I guess, this script needs to be running
> around like a daemon to pack off log files
> based on log-file-size/time-elapsed.. etc.
>
> And that's exactly what I've been saying.

Doesn't anyone know how to use computers anymore?
 httpd.conf:
CustomLog "| /usr/apache/bin/rotatelogs /website/admin/logs/access_log.%Y.%W 
604800" combined

Gzipping old log files is a one-liner if you have GNU date, or a 3-liner
otherwise -- can be run from cron or sgi-fam if you want to be fancy.

analog +C"LOGFILE /website/admin/logs/access_log.????.??.gz" ...

Sheesh
Dima
-- 
Sufficiently advanced incompetence is indistinguishable from malice.
+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------

Reply via email to