Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Customize log message routing with syslog.conf' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Customize log message routing with syslog.conf
Authored by: bluehz on Mar 12, '04 08:58:55AM

You might want to take a look at "logrotate" also for rotating and archiving all these custom logs. Your basic "daily" cron job is very specific about what it rotates and archives. I have been using logrotate on my Linux box for some time now with great success. I was unable to build the code manually, but I was able to build from Fink unstable sources:

fink install logrotate

Info on logrotate.
http://www.topology.org/linux/logrotate.html



[ Reply to This | # ]
Customize log message routing with syslog.conf
Authored by: blakers on May 16, '04 06:36:20PM

logrotate seems simpler -- well to me, anyway -- than 'tweaking' the daily scripts, etc.

i've managed to successfully build/use logrotate from source on both OSX 10.2.8 & 10.3.3. the important prereqs are "gettext" & "popt" ... both of which also build easily.

logrotate's config file format of

log_name {
options
}

is very straightforward and allows you to specifiy, e.g. how often to rotate, whether to compress, how many logs to archive, rotates based on log size, etc.

i would've thought that osx allows for something as simple, but, if its there, it's eluded me so far!

blakers



[ Reply to This | # ]