Advertisement
GautamSomani

logrotate.conf

Mar 21st, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. # see "man logrotate" for details
  2. # rotate log files weekly
  3. weekly
  4.  
  5. # keep 4 weeks worth of backlogs
  6. rotate 4
  7.  
  8. # create new (empty) log files after rotating old ones
  9. create
  10.  
  11. # use date as a suffix of the rotated file
  12. dateext
  13.  
  14. # uncomment this if you want your log files compressed
  15. compress
  16.  
  17. # RPM packages drop log rotation information into this directory
  18. include /etc/logrotate.d
  19.  
  20. # no packages own wtmp and btmp -- we'll rotate them here
  21. /var/log/wtmp {
  22. monthly
  23. create 0664 root utmp
  24. minsize 1M
  25. rotate 1
  26. }
  27.  
  28. /var/log/btmp {
  29. missingok
  30. monthly
  31. create 0600 root utmp
  32. rotate 1
  33. }
  34.  
  35. # system-specific logs may be also be configured here.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement