syslog cleanup

Delete log files. Using this command following syslog rotate causes all grow-able log files to be deleted.

User Privileges

Users with the following privileges can perform this command:

>Admin

Syntax

syslog cleanup [-force]

Argument(s) Shortcut Description
-force -f Forces the command to proceed silently without prompting. Useful for scripting.

Example

lunash:>syslog cleanup
 
 
WARNING !!  This command creates an archive of the current logs then deletes ALL THE LOG FILES.
If you are sure that you wish to proceed, then type 'proceed', otherwise type 'quit'.
 
> proceed
Proceeding...
Creating tarlogs then deleting all log files...
 
The tar file containing logs is now available via scp as filename "logs_cleanup_20170301_1443.tgz".
Please copy "logs_cleanup_20170301_1443.tgz" to a client machine with scp.
 
Deleting log files ...
restart the rsyslogd service if it's running
Stopping syslog:                                           [  OK  ]
 
Starting syslog:                                           [  OK  ]
 
 
Command Result : 0 (Success)