syslog-0.1.0.0: Decode RFC 3164 and RFC 5424 syslog message formats
Safe HaskellSafe-Inferred
LanguageHaskell2010

Syslog.Ietf

Description

Parse RFC 5424 messages. For example (from the spec itself):

<165>1 2003-10-11T22:14:15.003Z mymachine.example.com
  evntslog - ID47 [exampleSDID@32473 iut="3" eventSource="Application"
  eventID="1011"] BOMAn application event log entry...
Synopsis

Types

data Message Source #

Constructors

Message 

Fields

Instances

Instances details
Show Message Source # 
Instance details

Defined in Syslog.Ietf

data Element Source #

Constructors

Element 

Instances

Instances details
Show Element Source # 
Instance details

Defined in Syslog.Ietf

data Parameter Source #

Constructors

Parameter 

Fields

Instances

Instances details
Show Parameter Source # 
Instance details

Defined in Syslog.Ietf

Full Decode

decode :: Bytes -> Maybe Message Source #

Run the RFC 5424 parser. See parser.

parser :: Parser () s Message Source #

Parse a RFC 5424 message.