View on
MetaCPAN
Chris Williams > POE-Component-Server-Syslog > POE::Filter::Syslog

Download:
POE-Component-Server-Syslog-1.22.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 1.22   Source  

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 ^

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
syntax highlighting: