mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 08:41:46 +01:00
Merge pull request #541 from srividya0208/syslog
system:syslog: added delete log file section
This commit is contained in:
commit
262d740652
@ -26,6 +26,7 @@ Console
|
||||
:ref:`syslog_facilities` keywords and :ref:`syslog_severity_level` keywords
|
||||
see tables below.
|
||||
|
||||
.. _custom-file:
|
||||
|
||||
Custom File
|
||||
-----------
|
||||
@ -229,3 +230,16 @@ displayed.
|
||||
|
||||
.. hint:: Use ``show log | strip-private`` if you want to hide private data
|
||||
when sharing your logs.
|
||||
|
||||
Delete Logs
|
||||
===========
|
||||
|
||||
.. opcmd:: delete log file <text>
|
||||
|
||||
Deletes the specified user-defined file <text> in the /var/log/user directory
|
||||
|
||||
Note that deleting the log file does not stop the system from logging events.
|
||||
If you use this command while the system is logging events, old log events
|
||||
will be deleted, but events after the delete operation will be recorded in
|
||||
the new file. To delete the file altogether, first delete logging to the
|
||||
file using system syslog :ref:`custom-file` command, and then delete the file.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user