Skip to content

Instantly share code, notes, and snippets.

@zined
Created June 27, 2013 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zined/5881186 to your computer and use it in GitHub Desktop.
Save zined/5881186 to your computer and use it in GitHub Desktop.
hekad.toml
##### INPUT
[var_log_kern_log]
type = "LogfileInput"
logfile = "/var/log/kern.log"
seekjournal = "./var/run/hekad/seekjournals"
##### DECODER
[var_log_kern_log_decoder]
type = "LoglineDecoder"
matchRegex = '/^(?P<Timestamp>\w+ \d+ \d+\:\d+\:\d+) (?P<Hostname>[^\ ]+) (?P<Event>[^\ ]+) (?P<Message>.*)$/'
timestamplayout = "Jan 02 15:04:05"
##### FILTER
[var_log_kern_log_filter]
type = "CounterFilter"
message_matcher = "Type == 'logfile' && Logger == '/var/log/kern.log'"
ticker_interval = 1
##### OUTPUT
[var_log_kern_log_counter_output]
type = "LogOutput"
message_matcher = "Type == 'heka.counter-output'"
[var_log_kern_log_debug_output]
type = "LogOutput"
message_matcher = "Type == 'logfile' && Logger == '/var/log/kern.log'"
ticker_interval = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment