Happy !
olivierauverlot / Syslog
Project infos
| License | MIT |
| Tags | unix, udp, network, syslog, protocol |
| Creation date | 2015-03-31 |
| Website |
Monticello registration
About Syslog
Syslog is the implementation of the syslog protocol. This is an UDP client and it uses the port 514/UDP.
See RFC5424 for more info -- http://www.rfc-editor.org/rfc/rfc5424.txt
| s |
s := SLSyslog hostName: 'myserver.mydomain.org'.
s appName: 'test'.
s procID: (OSProcess thisOSProcess pid asString).
s alert: 'big problem with the coffee pot !!!' facilityLevel: (SLAuthLevel new).
The protocol supports advanced features of syslog as the message part (msgID) and structured data.
| s |
s := SLSyslog hostName: 'myserver.mydomain.org'.
s appName: 'myApp'.
s procID: (OSProcess thisOSProcess pid asString).
s alert: 'big problem with the coffee pot !!!' facilityLevel: (SLAuthLevel new) msgID: 'anOperation' structuredData: (
OrderedCollection new
add: (SLStructuredData id: 'exampleSDID@32473' data: {
'value'->3.
'eventSource'->'Application'.
'eventID'->'1011'} asDictionary);
add: (SLStructuredData id: 'exampleSDID@32475' data: { 'id'->'45665' } asDictionary);
yourself)
if you use rsyslogd, don't forget to activate the UDP server in the /etc/rsyslog.conf file.
# provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514
