@@ -83,13 +83,32 @@ sending the messages via port 514/UDP.
83
83
Configure protocol used for communication to remote syslog host. This can be
84
84
either UDP or TCP.
85
85
86
+ .. cfgcmd :: set system syslog remote <address> port <port>
87
+
88
+ Configure the TCP or UDP port to connect to on the remote syslog host.
89
+ By default, the standard port 514 is used.
90
+
86
91
.. cfgcmd :: set system syslog remote <address> format include-timezone
87
92
88
- Include system timezone in syslog message
93
+ Send syslog messages in the :rfc: `5424 ` format, rather than the
94
+ default :rfc: `3164 ` (BSD syslog) format.
95
+
96
+ .. note ::
97
+ The :rfc: `5424 ` format utilises an :rfc: `3339 ` / ISO 8601 formatted
98
+ timestamp, including the system timezone.
99
+
100
+ Examples of the two syslog message formats:
101
+
102
+ :rfc: `3164 ` format: <34>Oct 11 22:14:15 mymachine su: 'su root' failed for lonvick on /dev/pts/8
103
+
104
+ :rfc: `5424 ` format: <34>1 2003-10-11T22:14:15.003-07:00 mymachine.example.com su - ID47 - BOM'su root' failed for lonvick on /dev/pts/8
89
105
90
106
.. cfgcmd :: set system syslog remote <address> format octet-counted
91
107
92
- Allows for the transmission of all characters inside a syslog message.
108
+ Allows for the transmission of multi-line messages, without them being split
109
+ across separate syslog messages. This only applies for the TCP protocol
110
+ (this setting is ignored for UDP protocol). Ensure the receiving system is
111
+ compatible before enabling this.
93
112
94
113
.. cfgcmd :: set system syslog remote <address> vrf <name>
95
114
@@ -164,7 +183,7 @@ Facilities can be adjusted to meet the needs of the user:
164
183
+----------+----------+----------------------------------------------------+
165
184
| 21 | local5 | local use 5 (local5) |
166
185
+----------+----------+----------------------------------------------------+
167
- | 22 | local6 | use 6 (local6) |
186
+ | 22 | local6 | local use 6 (local6) |
168
187
+----------+----------+----------------------------------------------------+
169
188
| 23 | local7 | local use 7 (local7) |
170
189
+----------+----------+----------------------------------------------------+
0 commit comments