summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrividya0208 <a.srividya@vyos.io>2021-05-28 12:48:50 -0400
committerrebortg <github@ghlr.de>2021-05-28 19:56:01 +0200
commit62a786dc94ea2f036653a4279c16f6133ee9b5d9 (patch)
tree621ff47cd53b0143f9b7cddb7b2b8b36b95de4ff
parent53376e0f7fa1aa09fa9ca00b651928105848ae7e (diff)
downloadvyos-documentation-62a786dc94ea2f036653a4279c16f6133ee9b5d9.tar.gz
vyos-documentation-62a786dc94ea2f036653a4279c16f6133ee9b5d9.zip
system:syslog: added delete log file section
Added a help section for the "delete log file" command (cherry picked from commit 041e8e07a460ed7b9d78fab42115fe5c7a8c9c50)
-rw-r--r--docs/configuration/system/syslog.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/configuration/system/syslog.rst b/docs/configuration/system/syslog.rst
index a4d641b5..9ba9d415 100644
--- a/docs/configuration/system/syslog.rst
+++ b/docs/configuration/system/syslog.rst
@@ -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.