Advertisement
Guest User

Untitled

a guest
Nov 9th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. This is the logrotate.sls file.
  2. /etc/logrotate.d/syslog:
  3. file:
  4. - managed
  5. - source: salt://system/logrotate/syslog
  6. - user: root
  7. - group: root
  8. - mode: 644
  9.  
  10. syslog as follows:
  11. /var/log/cron
  12. /var/log/maillog
  13. /var/log/messages
  14. /var/log/secure
  15. /var/log/spooler
  16. {
  17. daily
  18. dateext
  19. dateformat -%Y-%m-%d-%s
  20. create
  21. rotate 7
  22. size 100M
  23. missingok
  24. notifempty
  25. delaycompress
  26. compress
  27. sharedscripts
  28. postrotate
  29. /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
  30. endscript
  31. }
  32.  
  33. however when i run "#salt 'SDC1*' logrotate.show_conf"
  34. syslog:
  35. - /var/log/secure
  36. - /var/log/messages
  37. - /var/log/maillog
  38. - /var/log/cron
  39. - /var/log/spooler
  40. - {
  41. up2date:
  42. - /var/log/up2date
  43. yum:
  44. - /var/log/yum.log
  45. rotate:
  46. 4
  47. weekly:
  48. True
  49. {:
  50. ----------
  51. /bin/kill:
  52. -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
  53. endscript:
  54. True
  55. postrotate:
  56. True
  57. sharedscripts:
  58. True
  59.  
  60. if my understanding correct this output is different from what is configured above for syslog. This output taking from what was configured in /etc/logrotate.conf and /etc/logrotate.d/syslog
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement