Last active
August 1, 2016 22:09
-
-
Save wwalker/faeb56fe131b20a29d25e542796e914f 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] | |
maxprocs = 8 | |
[TcpInput] | |
splitter = "HekaFramingSplitter" | |
decoder = "ProtobufDecoder" | |
address = ":5565" | |
# [StatAccumInput] | |
[Dashboard] | |
type = "DashboardOutput" | |
address = ":4352" | |
ticker_interval = 15 | |
[TestWebserver] | |
type = "LogstreamerInput" | |
log_directory = "/var/log/nginx" | |
file_match = 'access\.log' | |
decoder = "CombinedLogDecoder" | |
[CombinedLogDecoder] | |
type = "SandboxDecoder" | |
filename = "lua_decoders/nginx_access.lua" | |
[CombinedLogDecoder.config] | |
type = "combined" | |
user_agent_transform = true | |
# combined log format | |
log_format = '$remote_addr - $remote_user [$time_local] $server_port $ssl_protocol/$ssl_cipher $upstream_addr "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" -- [$request_time]' | |
[ESJsonEncoder] | |
index = "%{Type}-%{%Y.%m.%d}" | |
es_index_from_timestamp = true | |
type_name = "%{Type}" | |
[ESJsonEncoder.field_mappings] | |
Timestamp = "@timestamp" | |
Severity = "level" | |
[ElasticSearchOutput] | |
server = "http://10.90.17.241:9200" | |
flush_interval = 5000 | |
flush_count = 10 | |
encoder = "ESJsonEncoder" | |
message_matcher = "Type != 'sync.log'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment