Skip to main content

RSYSLOG Overview


Syslog Definition

Syslog is a standard protocol that defines log information and collection with 'The BSD syslog protocol' defined in RFC 3164.


Transport Protocol

Syslog transmits log information using the User Datagram Protocol (UDP) and is transmitted using port number 514.


Since UDP is used, the reliability of the transfer cannot be guaranteed and is unilaterally transferred to the server and ended.


Packet Format

Syslog Message is divided into PRI Part, Header, and MSG.


PRI Part

It consists of Facility and Severity.


The Facility is defined as follows:

Numerical CodeFacility
0Kernel messages
1User-level messages
2Mail system
3System daemons
4Security/authentication messages
5Messages generated internally by syslogd
6Line printer subsystem
7Network news subsystem
8UUCP subsystem
9Clock daemon
10Security/authentication messages
11FTP daemon
12NTP subsystem
13Log audit
14Log alert
15Scheduling daemon
16–23Locally used facilities

Severity 

Numerical CodeSeverity
0Emergency: system is unusable
1Alert: action must be taken immediately
2Critical: critical conditions
3Error: error conditions
4Warning: warning conditions
5Notice: normal but significant condition
6Informational: informational messages
7Debug: debug-level messages


The PRI value consists of 8 times the facility value and the severity value added.

For example, a facility of 20 and severity of 5 would be 20 x 8 +5 = 165.


HEADER Part

The header consists of timestamp and hostname( or IP address).


MSG Part

This is a text message indicating additional information, separated by TAG Field and CONTENT Field.

TAG means process name, and the content contains detailed messages.


Packet Format

PRIHEADERMSG
FACILITYSEVERITYTIMESTAMPHOSTNAMETAG CONTENT

 


Comments