logrotate.conf 705 B

123456789101112131415161718192021222324252627282930313233343536
  1. # see "man logrotate" for details
  2. # rotate log files weekly
  3. weekly
  4. # use the syslog group by default, since this is the owning group
  5. # of /var/log/syslog.
  6. # su root syslog
  7. # keep 4 weeks worth of backlogs
  8. rotate 4
  9. # create new (empty) log files after rotating old ones
  10. create
  11. # uncomment this if you want your log files compressed
  12. #compress
  13. # packages drop log rotation information into this directory
  14. include /etc/logrotate.d
  15. # no packages own wtmp, or btmp -- we'll rotate them here
  16. /var/log/wtmp {
  17. missingok
  18. monthly
  19. create 0664 root utmp
  20. rotate 1
  21. }
  22. /var/log/btmp {
  23. missingok
  24. monthly
  25. create 0660 root utmp
  26. rotate 1
  27. }
  28. # system-specific logs may be configured here