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.

41 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_modules;/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_modules;/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. linux_logs_counter:
  30. engine: sandbox
  31. module_file: /usr/share/lma_collector/filters/logs_counter.lua
  32. module_dir: /usr/share/lma_collector_modules;/usr/share/heka/lua_modules
  33. preserve_data: true
  34. message_matcher: "Type == 'log' && Logger =~ /^openstack\\\\./"
  35. ticker_interval: 1
  36. config:
  37. interval: 60
  38. grace_interval: 30
  39. metric_collector:
  40. filter: {}