Module syslog5424::types[][src]

Types used to specify values in a RFC5424 message

Structs

AppName

Wrapper for String containing the App Name. Limited to 48 ASCII chars.

HostName

Wrapper for String containing the Host Name. Limited to 255 ASCII chars.

MessageId

Wrapper for String containing the Message ID. Limited to 32 ASCII chars.

ProcessId

Wrapper for String containing the Process ID. Limited to 128 ASCII chars.

Enums

Facility

Syslog facility

Message

The message portion of a syslog message may be either UTF-8 or binary.

Severity

Syslog severity

Functions

escape_val

Escape the val parameter according to PARAM-VALUE rule from RFC5424.

remove_invalid

Remove invalid characters from name. Used for values in PARAM-NAME and SD-ID from RFC5424. Removes '=', ' ', ']', '"', and non-printable ASCII characters. The filtered message is then truncated to 32 characters.