[thelist] monthly logs linux/apache

Maryanna Nesina mar at MN1052.srv.pu.ru
Thu Apr 11 01:00:01 CDT 2002


You can also modificate your system scripts. See syslog, logrotate and the
files that usially are called by crond crontab file: monthly, weakly, daily


> If you know when the logs are rotated, you could create a cron job ('man
> crontab') that copies the current log file to logfile.yyyy.mm.dd (and even
> tarballs it, if you like) just before it would be rotated.  Failing that
you
> could ask your hosts if log rotation is available.
>
> > I have sites hosted at he.net on (I believe) linux servers running
apache.
> >The log (/home/username/logs/access_log) is overwritten every
month...thats
> >a bummer. Is there some way I can make the server create a new log file
with
> >month and year appended to its name every month?
>
> :)
> John
>




More information about the thelist mailing list