A parser for the Syslog Protocol (RFC5424 - http://tools.ietf.org/search/rfc542)
Copyright © 2011 Evax Software <contact@evax.fr>
Bases: object
An SD-ELEMENT consists of a name and parameter name-value pairs.
Bases: object
A class representing a syslog entry.
arguments/attributes
- prival
- RFC5424 priority values are a combination of a priority and facility, for example LOG_ALERT | LOG_DAEMON. See loggerglue.constants.
- version
- Version of syslog entry. There is usually no need to change this.
- timestamp
- Timestamp (as a datetime object).
- hostname
- The HOSTNAME field SHOULD contain the hostname and the domain name of the originator.
- app_name
- The APP-NAME field SHOULD identify the device or application that originated the message. It is a string without further semantics. It is intended for filtering messages on a relay or collector.
- procid
- PROCID is a value that is included in the message, having no interoperable meaning, except that a change in the value indicates there has been a discontinuity in syslog reporting.
- msgid
- The MSGID SHOULD identify the type of message.
- structured_data
- STRUCTURED-DATA provides a mechanism to express information in a well defined, easily parseable and interpretable data format.
- msg
- The MSG part contains a free-form message that provides information about the event.
Returns a parsed SyslogEntry object from a syslog line.