LOGWHACKER

Logwhacker is a Korn shell script to perform useful operations on log files, under the control of a configuration file. The idea is that a site would run logwhacker on a nightly basis and have it maintain all the log files being generated on a system.

Logwhacker allows logs to be handled in various ways.

Trimmed

A log file can be simply trimmed to a particular size by effectievly rotating the contents and discarding lines off the front of the file.

Daily or Monthly Cycle

A new log file may be creaed on a daily or monthly basis with either a week or a years worth of log files kept as backup respectively.

Rotated

Keep a defined set of old logfiles and rotate if the logfile exceeds a specified size which can be 0.

Removed

Remove files which have not been modified for a set period.

The man page for logwhacker is a bit cryptic but it is a useful tool for handling all your logfile problems.

The current version of logwhacker 2.4. It is distributed under the GNU public license. It was developed under solaris 2.6. Your milage may vary. If you have problems with logwhacker send me the details.

DOWNLOAD

Last modified April 14, 1999.