POE::Filter::Syslog - syslog parser
version 1.22
my $filter = POE::Filter::Syslog->new(); $filter->get_one_start($buffer); while( my $record = $filter->get_one() ) { }
This module follows the POE::Filter specification. Actually, it technically supports both the older specification (get) and the newer specification (get_one). If, at some point, POE deprecates the older specification, this module will drop support for it. As such, only use of the newer specification is recommended.
get
get_one
Creates a new filter object.
get_one returns a list of records with the following fields:
time
The time of the datagram (as specified by the datagram itself)
pri
The priority of message.
facility
The "facility" number decoded from the pri.
severity
The "severity" number decoded from the pri.
host
The host that sent the message.
msg
The message itself. This often includes a process name, pid number, and user name.
put is not supported yet.
put
Matt Cashner (sungo@pobox.com)
This software is Copyright (c) 2017 by Matt Cashner (sungo@pobox.com).
This is free software, licensed under:
The (three-clause) BSD License
To install POE::Component::Server::Syslog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::Server::Syslog
CPAN shell
perl -MCPAN -e shell install POE::Component::Server::Syslog
For more information on module installation, please visit the detailed CPAN module installation guide.