Skip to content

Commit d257b1a

Browse files
authored
Merge pull request #1611 from woodsb02/patch-1
syslog: improve description of remote host config options
2 parents 7e70f18 + d493cad commit d257b1a

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

docs/configuration/system/syslog.rst

+22-3
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,32 @@ sending the messages via port 514/UDP.
8383
Configure protocol used for communication to remote syslog host. This can be
8484
either UDP or TCP.
8585

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+
8691
.. cfgcmd:: set system syslog remote <address> format include-timezone
8792

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
89105

90106
.. cfgcmd:: set system syslog remote <address> format octet-counted
91107

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.
93112

94113
.. cfgcmd:: set system syslog remote <address> vrf <name>
95114

@@ -164,7 +183,7 @@ Facilities can be adjusted to meet the needs of the user:
164183
+----------+----------+----------------------------------------------------+
165184
| 21 | local5 | local use 5 (local5) |
166185
+----------+----------+----------------------------------------------------+
167-
| 22 | local6 | use 6 (local6) |
186+
| 22 | local6 | local use 6 (local6) |
168187
+----------+----------+----------------------------------------------------+
169188
| 23 | local7 | local use 7 (local7) |
170189
+----------+----------+----------------------------------------------------+

0 commit comments

Comments
 (0)