Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.6KB

  1. log_collector:
  2. decoder:
  3. system:
  4. engine: sandbox
  5. module_file: /usr/share/lma_collector/decoders/generic_syslog.lua
  6. module_dir: /usr/share/lma_collector/common;/usr/share/heka/lua_modules
  7. config:
  8. syslog_pattern: '<%PRI%>%TIMESTAMP% %HOSTNAME% %syslogtag%%msg:::sp-if-no-1st-sp%%msg%\n'
  9. fallback_syslog_pattern: '%TIMESTAMP% %HOSTNAME% %syslogtag%%msg:::sp-if-no-1st-sp%%msg%\n'
  10. input:
  11. linux_log_stream:
  12. engine: logstreamer
  13. log_directory: "/var/log"
  14. file_match: '(?P<Service>daemon\.log|cron\.log|haproxy\.log|kern\.log|auth\.log|syslog|messages|debug)'
  15. differentiator: [ 'system.', 'Service' ]
  16. decoder: "system_decoder"
  17. splitter: "TokenSplitter"
  18. filter:
  19. linux_hdd_errors:
  20. engine: sandbox
  21. module_file: /usr/share/lma_collector/filters/hdd_errors_counter.lua
  22. module_dir: /usr/share/lma_collector/common;/usr/share/heka/lua_modules
  23. preserve_data: false
  24. message_matcher: "Type == 'log' && Logger == 'system.kern'"
  25. ticker_interval: 10
  26. config:
  27. grace_interval: 10
  28. patterns: "/error%s.+([sv]d[a-z][a-z]?)%d?/ /([sv]d[a-z][a-z]?)%d?.+%serror/"
  29. hostname: '{{ grains.host }}'
  30. linux_logs_counter:
  31. engine: sandbox
  32. module_file: /usr/share/lma_collector/filters/logs_counter.lua
  33. module_dir: /usr/share/lma_collector/common;/usr/share/heka/lua_modules
  34. preserve_data: true
  35. message_matcher: "Type == 'log' && Logger =~ /^openstack\\\\./"
  36. ticker_interval: 1
  37. config:
  38. interval: 60
  39. grace_interval: 30
  40. hostname: '{{ grains.host }}'
  41. metric_collector:
  42. filter: {}