New version of salt-formula from Saltstack
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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