@@ -17,56 +17,47 @@ Syslog supports logging to multiple targets, those targets could be a plain
17
17
file on your VyOS installation itself, a serial console or a remote syslog
18
18
server which is reached via :abbr: `IP ( Internet Protocol ) ` UDP/TCP.
19
19
20
- Global
21
- ------
20
+ Global Settings
21
+ ---------------
22
22
23
- .. cfgcmd :: system syslog global marker interval <number>
23
+ .. cfgcmd :: system syslog marker interval <number>
24
24
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.
27
27
28
- .. cfgcmd :: system syslog global preserve-fqdn
28
+ This defaults to 1200 seconds.
29
29
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
32
31
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.
34
34
35
- Filter syslog messages based on facility and level.
35
+ .. cfgcmd :: set system syslog source-address <address>
36
36
37
+ Source IP address used to initiate connection when sending log data to a
38
+ remote host.
37
39
38
- Console
39
- -------
40
+ Local Logging
41
+ -------------
40
42
41
- .. cfgcmd :: set system syslog console facility <keyword> level <keyword>
43
+ Enable logging to a local target (`` /var/log/messages ``) on the system.
42
44
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>
46
46
47
- .. _ custom-file :
47
+ Filter syslog messages based on facility and level.
48
48
49
- Custom File
50
- -----------
49
+ .. _syslog_console :
51
50
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>
53
55
54
- Log syslog messages to file specified via ` <filename> `, for an explanation on
56
+ Log syslog messages to `` /dev/console ` `, for an explanation on
55
57
:ref: `syslog_facilities ` keywords and :ref: `syslog_severity_level ` keywords
56
58
see tables below.
57
59
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 :
70
61
71
62
Remote Host
72
63
-----------
@@ -76,37 +67,35 @@ can be configured in parallel to a custom file or console logging. You can log
76
67
to multiple hosts at the same time, using either TCP or UDP. The default is
77
68
sending the messages via port 514/UDP.
78
69
79
-
80
- .. cfgcmd :: set system syslog host <address> facility <keyword> level <keyword>
70
+ .. cfgcmd :: set system syslog remote <address> facility <keyword> level <keyword>
81
71
82
72
Log syslog messages to remote host specified by `<address> `. The address
83
73
can be specified by either FQDN or IP address. For an explanation on
84
74
:ref: `syslog_facilities ` keywords and :ref: `syslog_severity_level `
85
75
keywords see tables below.
86
76
87
-
88
- .. cfgcmd :: set system syslog host <address> facility <keyword> protocol
89
- <udp|tcp>
77
+ .. cfgcmd :: set system syslog remote <address> protocol <udp|tcp>
90
78
91
79
Configure protocol used for communication to remote syslog host. This can be
92
80
either UDP or TCP.
93
81
82
+ .. cfgcmd :: set system syslog remote <address> format include-timezone
94
83
95
- .. cfgcmd :: set system syslog vrf <name>
84
+ Include system timezone in syslog message
96
85
97
- Specify name of the :abbr: ` VRF ( Virtual Routing and Forwarding ) ` instance.
86
+ .. cfgcmd :: set system syslog remote <address> format octet-counted
98
87
88
+ Allows for the transmission of all characters inside a syslog message.
99
89
100
- Local User Account
101
- ------------------
90
+ .. cfgcmd :: set system syslog remote <address> vrf <name>
102
91
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.
104
94
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.
110
99
111
100
.. _syslog_facilities :
112
101
@@ -253,16 +242,3 @@ displayed.
253
242
254
243
.. hint :: Use ``show log | strip-private`` if you want to hide private data
255
244
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