Whether you delete, rotate, cleanup, or manage your logs, it's a generally unpleasant yet necessary part of administration in any envronment. System logs, Application logs, Patch logs, Web logs... the list can seem endless. Worse, each log is in a different location and format; some binary, some text, and others - well, who knows? If only there were a simple solution.
Well - there is a simple solution! The MSP Builder Log Management Utility. Initially developed and deployed for the Federal Reserve Bank's application servers, this single utility can make simple work of any log format, from any source. One tool, one config file, many logs.
The Log Management tool uses a text based configuration file to define the source path, filespec(s), destination (archiving) path, and other parameters that control how old a file must be before it is archived and/or deleted. Additional parameters can run external commands or batch files before and after each management event, and can even stop and restart services. Multiple management tasks and schedules can be defined in the configuration file.
The Log Management tool can run as a system service for the ultimate in simplicity. The configuration file defines the schedule as well as the tasks to perform. The service detects changes to the configuration file and adjusts its internal schedule accordingly, allowing dynamic edits or mass distribution of configuration updates. The same tool, using the same configuration file, can be run from the command line or system scheduler to accommodate special requirements or pre-deployment testing.
Simple to Install and Use
Two install processes are available - one to install the tools and sample config, and one to install everything including the system service. The installer uses a configuration file that allows easy customization to suit any requirement.
The configuration file uses a simple, familiar INI format file. No complex XML or obscure binary files.
When run as a system service, the cleanup tasks are scheduled directly in the configuration file. Log maintenance tasks can be scheduled as Daily (every n days) or Weekly (Days of week, every n weeks). More complex scheduling can be accommodated via a command-line invocation and the system task scheduler.
System Event Log Support
The sample configuration file provided with the package will dump each of the system event logs nightly, just before midnight. Logs are dumped in .EVT format to maintain audit trail. If the log dump is successful, the event log can optionally be cleared. The DumpEVT utility is included in the Log Management package. The event logs are maintained with just the past 24-hours with local copies for the past 30 days. Older logs can be archived in ZIP files or moved to a central location.