New version of salt-formula from Saltstack
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ů.

48 lines
1.2KB

  1. {%- if pillar.salt.minion is defined %}
  2. [logstreamer_salt_minion]
  3. type = "LogstreamerInput"
  4. log_directory = "/var/log/salt"
  5. file_match = 'minion-?(?P<Index>\d+)?(\.gz)?'
  6. priority = ["^Index"]
  7. decoder = "Sandbox_salt_minion"
  8. [Sandbox_salt_minion]
  9. type = "PayloadRegexDecoder"
  10. match_regex = '^(?P<Timestamp>[0-9\-]+ [0-9:]+),\d+ \[(?P<Module>[\w\d\.]+)[\ \t]*\]\[(?P<Severity>\w+)[\ \t]*\]\[(?P<JID>\d+)\] (?P<Payload>.*)'
  11. timestamp_layout = "2006-01-02 15:04:05"
  12. [Sandbox_salt_minion.severity_map]
  13. DEBUG = 7
  14. INFO = 6
  15. WARNING = 4
  16. ERROR = 3
  17. [Sandbox_salt_minion.message_fields]
  18. Module = "%Module%"
  19. JID = "%JID%"
  20. {%- endif %}
  21. {% if pillar.salt.master is defined %}
  22. [logstreamer_salt_master]
  23. type = "LogstreamerInput"
  24. log_directory = "/var/log/salt"
  25. file_match = 'master-?(?P<Index>\d+)?(\.gz)?'
  26. priority = ["^Index"]
  27. decoder = "Sandbox_salt_master"
  28. [Sandbox_salt_master]
  29. type = "PayloadRegexDecoder"
  30. match_regex = '^(?P<Timestamp>[0-9\-]+ [0-9:]+),\d+ \[(?P<Module>[\w\d\.]+)[\ \t]*\]\[(?P<Severity>\w+)[\ \t]*\]\[(?P<JID>\d+)\] (?P<Payload>.*)'
  31. timestamp_layout = "2006-01-02 15:04:05"
  32. [Sandbox_salt_master.severity_map]
  33. DEBUG = 7
  34. INFO = 6
  35. WARNING = 4
  36. ERROR = 3
  37. [Sandbox_salt_master.message_fields]
  38. Module = "%Module%"
  39. JID = "%JID%"
  40. {%- endif %}