Saltstack Official Logrotate Formula
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

logrotate.conf 749B

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