Skip to content

Instantly share code, notes, and snippets.

@chenryn
Created October 13, 2014 09:43
Show Gist options
  • Save chenryn/e113ef73f7a4779dcbf1 to your computer and use it in GitHub Desktop.
Save chenryn/e113ef73f7a4779dcbf1 to your computer and use it in GitHub Desktop.
heka tcpinput to logoutput
[TcpInput]
address = ":5140"
parser_type = "message.proto"
decoder = "tcpdecoder"
[tcpdecoder]
type = "PayloadRegexDecoder"
match_regex = '^(?P<msg>.+)$'
[tcpdecoder.message_fields]
Type = "TcpInputLog"
Logger = "rsyslog"
Message = "%msg%"
[stdout]
type = "LogOutput"
message_matcher = "TRUE"
encoder = "hello_heka_output_encoder"
[hello_heka_output_encoder]
type = "PayloadEncoder"
append_newlines = false
@davidbirdsong
Copy link

try changing
TcpInput.parser_type to 'token'

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