diff options
author | zsdc <taras@vyos.io> | 2022-03-07 18:20:53 +0200 |
---|---|---|
committer | zsdc <taras@vyos.io> | 2022-03-07 18:20:53 +0200 |
commit | ebb524702e1cd60a74b00727b7bd24d375648c78 (patch) | |
tree | 7316b9e1c2434d8e18ce798a644e393078008fe8 /src/etc/logrotate.d | |
parent | 1d0d4e83d8413c1b389be763cadd5d150d4be982 (diff) | |
download | vyos-1x-ebb524702e1cd60a74b00727b7bd24d375648c78.tar.gz vyos-1x-ebb524702e1cd60a74b00727b7bd24d375648c78.zip |
logrotate: T4250: Fixed logrotate config generation
* Removed `/var/log/auth.log` and `/var/log/messages` from
`/etc/logrotate.d/rsyslog`, because they conflict with VyOS-controlled
items what leads to service error.
* Removed generation config file for `/var/log/messages` from
`system-syslog.py` - this should be done from `syslom logs` now.
* Generate each logfile from `system syslog file` to a dedicated
logrotate config file.
* Fixed logrotate config file names in
`/etc/rsyslog.d/vyos-rsyslog.conf`.
* Added default logrotate settins for `/var/log/messages`
Diffstat (limited to 'src/etc/logrotate.d')
-rw-r--r-- | src/etc/logrotate.d/vyos-rsyslog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/etc/logrotate.d/vyos-rsyslog b/src/etc/logrotate.d/vyos-rsyslog new file mode 100644 index 000000000..3c087b94e --- /dev/null +++ b/src/etc/logrotate.d/vyos-rsyslog @@ -0,0 +1,12 @@ +/var/log/messages { + create + missingok + nomail + notifempty + rotate 10 + size 1M + postrotate + # inform rsyslog service about rotation + /usr/lib/rsyslog/rsyslog-rotate + endscript +} |