XAS::Logmon - A set of procedures and modules to monitor files
Monitoring and extracting information from log files is an important task. There is important operational data stored in those files. They detail the state of your operations. These modules would compliment a centralized syslog gathering operationation. Even thou XAS can write to syslog or create JSON formatted log messages and spool them directly, these modules provide a framework that can be expanded to include other types of files.
The design of this system is a monitoring process that spawns background jobs that do the actual work. Those background jobs are kept alive when file states change, such as file rotation or new file creation.
A multi-process system is simpler to design and keep alive. It follows the XAS philosophy of small, simple components, that do one thing well.
This module provides the following utilities.
This is procedure is used to spawn and monitor file monitoring processes. It reads a configuration file to determine which files to monitor.
The configuration file is documented here: XAS::Apps::Logmon::Monitor
This will display a brief help screen on command options.
This will display the utilities man page.
This procedure monitors XAS log files. It parses them and sends the results to a spool directory.
Kevin L. Esteb, <kevin@kesteb.us>
Copyright (c) 2012-2015 Kevin L. Esteb
This is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0. For details, see the full text of the license at http://www.perlfoundation.org/artistic_license_2_0.
To install XAS::Logmon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XAS::Logmon
CPAN shell
perl -MCPAN -e shell install XAS::Logmon
For more information on module installation, please visit the detailed CPAN module installation guide.