[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] log stopped
- Subject: Re: [cobalt-users] log stopped
- From: "Steven Werby" <steven-lists@xxxxxxxxxxxx>
- Date: Fri Sep 29 13:34:39 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
"Theodore Jones" <theoj@xxxxxxxxxxxxx> wrote:
> So do you mean that it is linux kernal specific that the file size can't
go
> larger than 2G?
Exactly. Except for large database files it's not really a problem on my
end since I prefer to rotate logs monthly and my backups are done in a
modular fashion so I don't have large single backup files.
> Since "how to rotate the logs manually" is not covered in the
oh-so-helpful and
> detailed User's
> Manauls, might you advise me on the correct commands to do it msyelf?
I'd use "locate logrotate" to see where Cobalt stores the logrotate config
files. "man logrotate" will show you the online manual on the logrotate
program. I don't recall offhand where the logrotate file for
combined-access, but I believe something like this will create compressed
backups of the logs monthly and rotate them, keeping 12 (or maybe 13) months
of archives before dropping the oldest archive.
/var/log/httpd/combined-access {
compress
rotate 12
monthly
postrotate
killall -USR1 httpd
endscript
}
Steven Werby (steven-lists@xxxxxxxxxxxx)