Syslog Collection UDR Types
This section describes the UDR types that are used with the Syslog Collection agent.
SyslogMessageUDR
The fields in the SyslogMessageUDR follows the naming conventions but are based on the Syslog specification. For further information about the fields described in this section, see RFC5424 and RFC3164. The latter is only applicable if the incoming messages are not compliant with RFC5424.
Field | Description |
|---|---|
AppName (string) | This field contains |
Facility (int) | This field contains the numerical code of the facility in the Priority value ( |
HostName (string) | This field contains |
Msg (string) | This field contains MSG, a free-form message that provides information about the event. |
MsgId (string) | This field contains |
ProcId (string) | This field contains |
Severity (int) | This field contains the numerical code of the severity in the Priority value ( |
StructuredData (map<string,map<string,map>>) | This field contains This field is stored in a map that in itself contains maps of
Each STRUCTURED-DATA Example - Using StructuredData field in APL consume {
SyslogMessageUDR myUDR = (SyslogMessageUDR) input;
//Note the space between the angle brackets!
map<string,map<string,string>> myData = input.StructuredData;
//..
} |
Timestamp (string) | This field contains |
Version (int) | This field indicates the compliance level of the incoming messages.
If the message contains RFC5424 is more restrictive compared to RFC3164, and deviations from the specification in any of the subsequent message fields will cause decoding errors. |
Example - SyslogMessageUDR based on RFC5424 compliant message
Message
<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...
Expected UDR field values
AppName: evntslogFacility: 20Hostname: mymachine.example.comMsg: BOMAn application event log entry..MsgId: ID47ProcId: nullSeverity: 5StructuredData: {exampleSDID@32473={eventID=1011, eventSource=Application, iut=3}}
Timestamp: 2003-10-11T22:14:15.003Z
Version: 1
Example - SyslogMessageUDR based on RFC3164 compliant message with PRI
Message
<34>Oct 11 22:14:15 mymachine su: 'su root' failed for lonvick on /dev/pts/8
Expected UDR field values
AppName: nullFacility: 4Msg: su: 'su root' failed for lonvick on /dev/pts/8Hostname: mymachineMsgId: nullProcId: nullSeverity: 2StructuredData: nullTimestamp: Oct 11 22:14:15Version: 0
Example - SyslogMessageUDR based on RFC3164 compliant message without PRI
Message
"Use the BFG!"
Expected UDR field values
AppName: nullFacility: 0Hostname: nullMsgId: nullMsg: Use the BFG!ProcId: nullSeverity: 0StructuredData: null Timestamp: nullVersion: 0