The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Log::Saftpresse - a modular logfile analyzer

VERSION

version 1.3

Description

This is the central class of the saftpresse log analyzer.

Synopsis

  use Log::Saftpresse;

  my $saft = Log:::Saftpresse->new;

  $saft->load_config( $path );
  $saft->init;

  # start main loop
  $saft->run;

Attributes

config( Log::Saftpresse::Config)

Holds the configuration.

slurp( Log::Saftpresse::Slurp )

Holds the slurp class implementing the input.

analyzer( Log::Saftpresse::Analyzer )

Holds the analyzer object which controls the processing plugins.

counter_outputs( Log::Saftpresse::CounterOutputs )

Holds the counter output object which controls output of metrics.

outputs( Log::Saftpresse::Outputs )

Holds the Outputs plugin which controls the event output.

flush_interval( $seconds )

How often to flush metrics to CounterOutputs.

Methods

init

Initialize saftpresse as configured in config file.

Will load slurp, analyzer, counter_outputs, outputs and flush_interval from configuration.

run

Run the main loop of saftpresse.

See also

Log::Saftpresse::App

Commandline glue for this class.

bin/saftpresse

Commandline interface of saftpresse with end-user docs.

AUTHOR

Markus Benning <ich@markusbenning.de>

COPYRIGHT AND LICENSE

This software is Copyright (c) 1998 by James S. Seymour, 2015 by Markus Benning.

This is free software, licensed under:

  The GNU General Public License, Version 2, June 1991