Skip to content

Commit d1010ae

Browse files
committed
syslog: T6989: upgrade CLI to latest version
1 parent 5cc3e61 commit d1010ae

File tree

1 file changed

+37
-61
lines changed

1 file changed

+37
-61
lines changed

docs/configuration/system/syslog.rst

+37-61
Original file line numberDiff line numberDiff line change
@@ -17,56 +17,47 @@ Syslog supports logging to multiple targets, those targets could be a plain
1717
file on your VyOS installation itself, a serial console or a remote syslog
1818
server which is reached via :abbr:`IP (Internet Protocol)` UDP/TCP.
1919

20-
Global
21-
------
20+
Global Settings
21+
---------------
2222

23-
.. cfgcmd:: system syslog global marker interval <number>
23+
.. cfgcmd:: system syslog marker interval <number>
2424

25-
Interval (in seconds) for sending mark messages to the syslog input to
26-
indicate that the logging system is functioning.
25+
Interval (in seconds) for sending mark messages to the syslog input to
26+
indicate that the logging system is functioning.
2727

28-
.. cfgcmd:: system syslog global preserve-fqdn
28+
This defaults to 1200 seconds.
2929

30-
If set, the domain part of the hostname is always sent,
31-
even within the same domain as the receiving system.
30+
.. cfgcmd:: system syslog preserve-fqdn
3231

33-
.. cfgcmd:: system rsyslog global facility <keyword> level <keyword>
32+
If set, the domain part of the hostname is always sent, even within the same
33+
domain as the receiving system.
3434

35-
Filter syslog messages based on facility and level.
35+
.. cfgcmd:: set system syslog source-address <address>
3636

37+
Source IP address used to initiate connection when sending log data to a
38+
remote host.
3739

38-
Console
39-
-------
40+
Local Logging
41+
-------------
4042

41-
.. cfgcmd:: set system syslog console facility <keyword> level <keyword>
43+
Enable logging to a local target (``/var/log/messages``) on the system.
4244

43-
Log syslog messages to ``/dev/console``, for an explanation on
44-
:ref:`syslog_facilities` keywords and :ref:`syslog_severity_level` keywords
45-
see tables below.
45+
.. cfgcmd:: system rsyslog local facility <keyword> level <keyword>
4646

47-
.. _custom-file:
47+
Filter syslog messages based on facility and level.
4848

49-
Custom File
50-
-----------
49+
.. _syslog_console:
5150

52-
.. cfgcmd:: set system syslog file <filename> facility <keyword> level <keyword>
51+
Console
52+
-------
53+
54+
.. cfgcmd:: set system syslog console facility <keyword> level <keyword>
5355

54-
Log syslog messages to file specified via `<filename>`, for an explanation on
56+
Log syslog messages to ``/dev/console``, for an explanation on
5557
:ref:`syslog_facilities` keywords and :ref:`syslog_severity_level` keywords
5658
see tables below.
5759

58-
.. cfgcmd:: set system syslog file <filename> archive size <size>
59-
60-
Syslog will write `<size>` kilobytes into the file specified by `<filename>`.
61-
After this limit has been reached, the custom file is "rotated" by logrotate
62-
and a new custom file is created.
63-
64-
.. cfgcmd:: set system syslog file <filename> archive file <number>
65-
66-
Syslog uses logrotate to rotate logfiles after a number of gives bytes.
67-
We keep as many as `<number>` rotated file before they are deleted on the
68-
system.
69-
60+
.. _syslog_remote:
7061

7162
Remote Host
7263
-----------
@@ -76,37 +67,35 @@ can be configured in parallel to a custom file or console logging. You can log
7667
to multiple hosts at the same time, using either TCP or UDP. The default is
7768
sending the messages via port 514/UDP.
7869

79-
80-
.. cfgcmd:: set system syslog host <address> facility <keyword> level <keyword>
70+
.. cfgcmd:: set system syslog remote <address> facility <keyword> level <keyword>
8171

8272
Log syslog messages to remote host specified by `<address>`. The address
8373
can be specified by either FQDN or IP address. For an explanation on
8474
:ref:`syslog_facilities` keywords and :ref:`syslog_severity_level`
8575
keywords see tables below.
8676

87-
88-
.. cfgcmd:: set system syslog host <address> facility <keyword> protocol
89-
<udp|tcp>
77+
.. cfgcmd:: set system syslog remote <address> protocol <udp|tcp>
9078

9179
Configure protocol used for communication to remote syslog host. This can be
9280
either UDP or TCP.
9381

82+
.. cfgcmd:: set system syslog remote <address> format include-timezone
9483

95-
.. cfgcmd:: set system syslog vrf <name>
84+
Include system timezone in syslog message
9685

97-
Specify name of the :abbr:`VRF (Virtual Routing and Forwarding)` instance.
86+
.. cfgcmd:: set system syslog remote <address> format octet-counted
9887

88+
Allows for the transmission of all characters inside a syslog message.
9989

100-
Local User Account
101-
------------------
90+
.. cfgcmd:: set system syslog remote <address> vrf <name>
10291

103-
.. cfgcmd:: set system syslog user <username> facility <keyword> level <keyword>
92+
Specify name of the :abbr:`VRF (Virtual Routing and Forwarding)` instance
93+
used when forwarding logs to remote syslog server.
10494

105-
If logging to a local user account is configured, all defined log messages
106-
are display on the console if the local user is logged in, if the user is not
107-
logged in, no messages are being displayed. For an explanation on
108-
:ref:`syslog_facilities` keywords and :ref:`syslog_severity_level` keywords
109-
see tables below.
95+
.. cfgcmd:: set system syslog remote <address> source-address <address>
96+
97+
Define IPv4 or IPv6 source address used when forwarding logs to remote
98+
syslog server.
11099

111100
.. _syslog_facilities:
112101

@@ -253,16 +242,3 @@ displayed.
253242

254243
.. hint:: Use ``show log | strip-private`` if you want to hide private data
255244
when sharing your logs.
256-
257-
Delete Logs
258-
===========
259-
260-
.. opcmd:: delete log file <text>
261-
262-
Deletes the specified user-defined file <text> in the /var/log/user directory
263-
264-
Note that deleting the log file does not stop the system from logging events.
265-
If you use this command while the system is logging events, old log events
266-
will be deleted, but events after the delete operation will be recorded in
267-
the new file. To delete the file altogether, first delete logging to the
268-
file using system syslog :ref:`custom-file` command, and then delete the file.

0 commit comments

Comments
 (0)