FS#62991 - [salt] logrotate config rotates rotated configs
Attached to Project:
Community Packages
Opened by Dennis Schubert (DenSchub) - Monday, 24 June 2019, 10:53 GMT
Last edited by Johannes Löthberg (demize) - Wednesday, 18 December 2019, 21:08 GMT
Opened by Dennis Schubert (DenSchub) - Monday, 24 June 2019, 10:53 GMT
Last edited by Johannes Löthberg (demize) - Wednesday, 18 December 2019, 21:08 GMT
|
Details
The `/etc/logrotate.d/salt` provided by the salt package
touches `/var/log/salt/*`. This results in logrotate
rotating already rotated logs, and thus one ends up with
filenames like
`minion.1.gz.1.gz.1.gz.1.gz.2.gz.1.gz.1.gz.1.gz.1.gz.1.gz`
and although the ls looks pretty, that shouldn't be the
case.
Since salt only ever creates two files, it should be save to change the logrotate config to `/var/log/salt/{master,minion}`. |
This task depends upon
Closed by Johannes Löthberg (demize)
Wednesday, 18 December 2019, 21:08 GMT
Reason for closing: Fixed
Wednesday, 18 December 2019, 21:08 GMT
Reason for closing: Fixed
Comment by
Dennis Schubert (DenSchub) -
Monday, 24 June 2019, 21:10 GMT
Actually, should be
`/var/log/salt/{api,key,master,minion,ssh,syndic}` to cover all
the log files available in the default config.