Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. /var/log/syslog
  2. {
  3. rotate 30
  4. daily
  5. missingok
  6. notifempty
  7. delaycompress
  8. compress
  9. postrotate
  10. /usr/lib/rsyslog/rsyslog-rotate
  11. endscript
  12. }
  13.  
  14. # rotate log files weekly
  15. weekly
  16.  
  17. # use the syslog group by default, since this is the owning group
  18. # of /var/log/syslog.
  19. su root syslog
  20.  
  21. # keep 4 weeks worth of backlogs
  22. rotate 4
  23.  
  24. # create new (empty) log files after rotating old ones
  25. create
  26.  
  27. # uncomment this if you want your log files compressed
  28. #compress
  29.  
  30. # packages drop log rotation information into this directory
  31. include /etc/logrotate.d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement