Chris Williams
and 1 contributors

NAME

POE::Filter::Syslog - syslog parser

VERSION

version 1.22

SYNOPSIS

  my $filter = POE::Filter::Syslog->new();
  $filter->get_one_start($buffer);
  while( my $record = $filter->get_one() ) {

  }

DESCRIPTION

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.

CONSTRUCTOR

new

Creates a new filter object.

METHODS

get
get_one_start
get_one

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.

BUGS / CAVEATS

  • put is not supported yet.

AUTHOR

Matt Cashner (sungo@pobox.com)

COPYRIGHT AND LICENSE

This software is Copyright (c) 2017 by Matt Cashner (sungo@pobox.com).

This is free software, licensed under:

  The (three-clause) BSD License