Browse Source

Add support for log_collector

tags/2016.12
Simon Pasquier 8 years ago
parent
commit
07f0942f2c
2 changed files with 21 additions and 1 deletions
  1. +20
    -0
      galera/meta/heka.yml
  2. +1
    -1
      metadata/service/support.yml

+ 20
- 0
galera/meta/heka.yml View File

@@ -0,0 +1,20 @@
log_collector:
decoder:
galera:
engine: sandbox
module_file: /usr/share/lma_collector/decoders/galera.lua
module_dir: /usr/share/lma_collector/common;/usr/share/heka/lua_modules
adjust_timezone: true
input:
galera:
engine: logstreamer
log_directory: "/var/log"
file_match: 'mysql/error.log$'
differentiator: ["galera"]
decoder: "galera_decoder"
splitter: "galera_splitter"
splitter:
galera:
engine: regex
delimiter: '\n([0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2})'
delimiter_eol: false

+ 1
- 1
metadata/service/support.yml View File

@@ -4,7 +4,7 @@ parameters:
collectd:
enabled: true
heka:
enabled: false
enabled: true
sensu:
enabled: true
sphinx:

Loading…
Cancel
Save