Skip to content

Instantly share code, notes, and snippets.

@aaronfeng
Created March 31, 2015 15:39
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 aaronfeng/29629f2e7f33aae83725 to your computer and use it in GitHub Desktop.
Save aaronfeng/29629f2e7f33aae83725 to your computer and use it in GitHub Desktop.
foo hekad.toml
[foo_decoder]
type = "SandboxDecoder"
filename = "/etc/heka/foo_decoder.lua"
[Logs]
type = "LogstreamerInput"
log_directory = "/var/log"
file_match = 'foo/(?P<Logger>[0-9a-z]+)-json\.log'
priority = ["^Logger"]
differentiator = ["Logger"]
decoder = "foo_decoder"
[es_payload]
type = "SandboxEncoder"
filename = "lua_encoders/es_payload.lua"
[es_payload.config]
es_index_from_timestamp = true
index = "123-%{Logger}-%{%Y.%m.%d}"
type_name = "%{Hostname}"
[ElasticSearchOutput]
message_matcher = "TRUE"
encoder = "es_payload"
server = "http://localhost:9200"
queue_full_action = "drop"
flush_interval = 5000
flush_count = 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment