Skip to content

Instantly share code, notes, and snippets.

@rstruber
Created April 21, 2015 19:02
Show Gist options
  • Save rstruber/914b0b16e7d59036424b to your computer and use it in GitHub Desktop.
Save rstruber/914b0b16e7d59036424b to your computer and use it in GitHub Desktop.
[hekad]
share_dir = "/usr/share/heka"
pid_file = "/var/run/hekad.pid"
max_message_size = 2097152
maxprocs = 2
[DashboardOutput]
ticker_interval = 5
[ApiInput]
type = "UdpInput"
address = "127.0.0.1:5566"
[ApiEncoder]
type = "SandboxEncoder"
filename = "lua_encoders/es_payload.lua"
[ApiEncoder.config]
index = "copy_log_%{%Y.%m.%d}"
type_name = "api-dispatch"
es_index_from_timestamp = true
[ApiOuput]
type="ElasticSearchOutput"
server = "http://-:9200"
message_matcher = "Logger == 'ApiInput'"
encoder = "ApiEncoder"
use_buffering = false
flush_interval = 5000
flush_count = 1000
[LogOutput]
message_matcher = "Logger == 'ApiInput'"
encoder = "ApiEncoder"
@rstruber
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment