the command "delete log file" only works when any file is present in /var/log/user and mostly no files are written in this directory
[email protected]:~$ delete log file messages File does not exist
the command "delete log file" only works when any file is present in /var/log/user and mostly no files are written in this directory
[email protected]:~$ delete log file messages File does not exist
When the following command "set system syslog file <filename> facility <keyword> level <keyword>" is applied, then the files are stored in the /var/log/user directory. These files can be deleted using the command "delete log file <text>"
Updated the documentation:
https://docs.vyos.io/en/latest/configuration/system/syslog.html#delete-logs
[email protected]# run sh conf comm |grep syslog set system syslog file test facility auth level 'all' [email protected]# ls -ltr /var/log/user total 4 -rw-r----- 1 root adm 561 May 30 08:50 test [email protected]:~$ delete log file test [email protected]:~$ ls -ltr /var/log/user/ total 0
The file will be recreated once new events are generated.