[olug] Log Retention
T. J. Brumfield
enderandrew at gmail.com
Mon Dec 12 01:11:28 UTC 2011
I feel stupid asking what should be a fairly elementary question, but it is
something I've never had to do on a Linux Apache box before. Log retention
policies were always in place before I got there, or we had enough storage
that we've never had to worry about it. (Not to mention that everyplace
I've worked has been predominately a Microsoft-only shop). But I have a VPS
with limited disk space and need a way to manage log retention.
I need to make sure I've got something in place to keep log files in check.
I don't want to turn off logging, but I need to rotate logs at file size X
and then delete logs when I get over Y number of logs so I keep my overall
log storage at a fairly constant number.
I need to do this for MySQL, Apache, PHP, Murmur and local system logs
because I can't afford to let any logs run me out of disk space.
I'm running Fedora 16 (because I wanted to familiarize myself with systemd).
-- T. J. Brumfield
"I'm questioning my education
Rewind and what does it show?
Could be, the truth it becomes you
I'm a seed, wondering why it grows"
-- Pearl Jam, Education
More information about the OLUG
mailing list