Saltstack Official Logrotate Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
598B

  1. # see "man logrotate" for details
  2. # rotate log files weekly
  3. weekly
  4. # keep 4 weeks worth of backlogs
  5. rotate 4
  6. # create new (empty) log files after rotating old ones
  7. create
  8. # use date as a suffix of the rotated file
  9. dateext
  10. # uncomment this if you want your log files compressed
  11. #compress
  12. # comment these to switch compression to use gzip or another
  13. # compression scheme
  14. compresscmd /usr/bin/xz
  15. uncompresscmd /usr/bin/xzdec
  16. # former versions had to have the compressext set accordingly
  17. #compressext .xz
  18. # RPM packages drop log rotation information into this directory
  19. include /etc/logrotate.d