Kevin L. Esteb
and 1 contributors

NAME

XAS::Apps::Logmon::XAS::Process - A class to monitor XAS log files

SYNOPSIS

 use XAS::Apps::Logmon::XAS::Process;

 my $app = XAS::Apps::Logmon::XAS::Process->new(
     -throws => 'xas-logs'
 );

 exit $app->run;
 

DESCRIPTION

This procedure will monitor XAS log files. It uses various means, depending on platform to determine when a file has changed. When a change occurs, this procedure will read until the end of file, parsing and creating messages as it goes. A status file is written into the directory of log file. It will have an extension of '.logmon'. On Linux/Unix this will be a hidden file.

METHODS

setup

This method will configure the process.

main

This method will start the processing.

options

This method provides these additonal cli options.

--ignore

The number of days prior to today to ignore log lines. Defaults to 300.

--process

The name of the process used to create the log file. Defaults to "xas-spooler".

--spooldir

The spool director to use. Defaults to $XAS_SPOOL/logs.

--filename

The name of the log file. Defaults to $XAS_LOG/xas-spooler.log.

SEE ALSO

XAS::Logmon::Input::Tail
XAS::Logmon::Filter::Merge
XAS::Logmon::Output::Spool
XAS::Logmon::Format::Logstash
XAS::Logmon::Parser::XAS::Logs
XAS::Logmon::Process
XAS::Logmon
XAS

AUTHOR

Kevin L. Esteb, <kevin@kesteb.us>

COPYRIGHT AND LICENSE

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.