sonic-utilities icon indicating copy to clipboard operation
sonic-utilities copied to clipboard

Add sonic-clear logging command

Open matiAlfaro opened this issue 1 year ago • 1 comments

###What I did Added command sonic-clear logging - delete syslog & syslog.1 sonic-clear logging -a/--all - delete syslog* files

###How I did it Equivalent to "show logging" command, working on files at /var/log or at /var/log.tmpfs delete relevant syslog* files

###How to verify it clear logging when no syslog files exist clear logging when only syslog file exist clear logging when syslog & syslog.1 files exits clear logging when syslog, syslog.1 and syslog2.gz files exits Repeat 1-4 with Clear logging --all

verify also that show logging behave correctly after clear

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

matiAlfaro avatar Feb 04 '24 06:02 matiAlfaro

@mihirpat1 would you be able to review?

matiAlfaro avatar Feb 06 '24 12:02 matiAlfaro