logrotate.conf 686 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # see "man logrotate" for details
  2. # rotate log files weekly
  3. weekly
  4. # keep 4 weeks worth of backlogs
  5. rotate 4
  6. # restrict maximum size of log files
  7. #size 20M
  8. # create new (empty) log files after rotating old ones
  9. create
  10. # uncomment this if you want your log files compressed
  11. #compress
  12. # Logs are moved into directory for rotation
  13. # olddir /var/log/archive
  14. # Ignore pacman saved files
  15. tabooext + .pacorig .pacnew .pacsave
  16. # Arch packages drop log rotation information into this directory
  17. include /etc/logrotate.d
  18. /var/log/wtmp {
  19. monthly
  20. create 0664 root utmp
  21. minsize 1M
  22. rotate 1
  23. }
  24. /var/log/btmp {
  25. missingok
  26. monthly
  27. create 0600 root utmp
  28. rotate 1
  29. }