Last active
August 29, 2015 14:23
-
-
Save rstruber/355ecfe1faa0e41505cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[hekad] | |
share_dir = "/usr/share/heka" | |
pid_file = "/var/run/hekad.pid" | |
maxprocs = 4 | |
poolsize = 500 | |
[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 = "log_%{%Y.%m.%d}" | |
type_name = "api-dispatch" | |
es_index_from_timestamp = true | |
[ApiOuput] | |
type="ElasticSearchOutput" | |
server = "http://xxx:9200" | |
message_matcher = "Logger == 'ApiInput'" | |
encoder = "ApiEncoder" | |
use_buffering = false | |
flush_count = 2500 | |
flush_interval = 500 | |
http_timeout = 1500 | |
connect_timeout = 1500 | |
[NginxAccess] | |
type = "LogstreamerInput" | |
log_directory = "/var/log/nginx" | |
file_match = 'access_log' | |
decoder = "NginxAccessDecoder" | |
oldest_duration = "15m" | |
[NginxAccessDecoder] | |
type = "SandboxDecoder" | |
filename = "lua_decoders/nginx_access.lua" | |
[NginxAccessDecoder.config] | |
type = "nginx.access" | |
user_agent_transform = true | |
log_format = '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$gzip_ratio"' | |
[NginxError] | |
type = "LogstreamerInput" | |
log_directory = "/var/log/nginx" | |
file_match = 'error_log' | |
decoder = "NginxErrorDecoder" | |
oldest_duration = "15m" | |
[NginxErrorDecoder] | |
type = "SandboxDecoder" | |
filename = "lua_decoders/nginx_error.lua" | |
[NginxErrorDecoder.config] | |
[NginxEncoder] | |
type = "ESJsonEncoder" | |
index = "%{Type}-%{2006.01.02}" | |
es_index_from_timestamp = true | |
type_name = "%{Type}" | |
[NginxOutput] | |
type = "ElasticSearchOutput" | |
server = "http://xxx:9200" | |
message_matcher = "Type == 'nginx.access' || Type == 'nginx.error'" | |
encoder = 'NginxEncoder' | |
use_buffering = false | |
flush_interval = 500 | |
http_timeout = 1500 | |
connect_timeout = 1500 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2015/06/29 10:59:48 Plugin 'ApiOuput' error: FATAL: process_message() /usr/share/heka/lua_encoders/es_payload.lua:79: output_limit exceeded