Hi, OMV WebGUI today says that my syslog is 680 pages, 34000 records, and the last and only time he did logrotate was 9 days ago. I reinstalled the system recently.
All the files in /etc/logrotate.d have the date of today boot.
if I have a look into the files many of them (but not all) seem corrupt, here are some:
rsyslog
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log f^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^$
nginx
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
#^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@$
salt-common
see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4Is there a way to bypass this strange situation and allow to rotate the logs correctly, a time a week and storing them in a compressed way ?
# create new (empty) log files after rotati^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@$
samba
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
#^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@$
Alles anzeigen
It seems there are strange characters (00 in hexadecimal) inside the files that truncate the scripts. Some file starting with "{" don't have the ending "}".
I don't know why, because the syslog management is completely in charge to Armbian that define the base rules.
Is there a way to bypass this strange situation and allow to rotate the logs correctly, once a week and storing them in a compressed way ?
I hope it is not necessary to rebuilt the system from scratch, I have done this too many times already.