Move hdd_errors filter to the Heka formula
This is to be consistent with the other log_collector filters.
diff --git a/heka/meta/heka.yml b/heka/meta/heka.yml
index c7a7fdf..a18c6b1 100644
--- a/heka/meta/heka.yml
+++ b/heka/meta/heka.yml
@@ -34,6 +34,19 @@
grace_interval: 30
logger: log_counter_filter
source: log_collector
+ hdd_errors:
+ engine: sandbox
+ module_file: /usr/share/lma_collector/filters/hdd_errors_counter.lua
+ module_dir: /usr/share/lma_collector/common;/usr/share/heka/lua_modules
+ preserve_data: false
+ message_matcher: "Type == 'log' && Logger == 'system.kern'"
+ ticker_interval: 10
+ config:
+ grace_interval: 10
+ patterns: "/error%s.+([sv]d[a-z][a-z]?)%d?/ /([sv]d[a-z][a-z]?)%d?.+%serror/"
+ hostname: '{{ grains.host }}'
+ logger: hdd_errors_filter
+ source: log_collector
{%- if log_collector.elasticsearch_host is defined %}
encoder:
elasticsearch:
@@ -66,7 +79,7 @@
module_file: /usr/share/lma_collector/decoders/metric.lua
module_dir: /usr/share/lma_collector/common;/usr/share/heka/lua_modules
config:
- deserialize_bulk_metric_for_loggers: 'aggregated_http_metrics_filter hdd_errors_counter_filter log_counter_filter'
+ deserialize_bulk_metric_for_loggers: 'aggregated_http_metrics_filter hdd_errors_filter log_counter_filter'
input:
heka_collectd:
engine: http