Saltstack Official Logrotate Formula
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

36 lines
665B

  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. # RPM packages drop log rotation information into this directory
  13. include /etc/logrotate.d
  14. # no packages own wtmp and btmp -- we'll rotate them here
  15. /var/log/wtmp {
  16. monthly
  17. create 0664 root utmp
  18. minsize 1M
  19. rotate 1
  20. }
  21. /var/log/btmp {
  22. missingok
  23. monthly
  24. create 0600 root utmp
  25. rotate 1
  26. }
  27. # system-specific logs may be also be configured here.