Skip to content

Instantly share code, notes, and snippets.

@davidbirdsong
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save davidbirdsong/9419688 to your computer and use it in GitHub Desktop.

Select an option

Save davidbirdsong/9419688 to your computer and use it in GitHub Desktop.
udp/tcp token payload
[localcarbon_udp]
type = "UdpInput"
address = "127.0.0.1:2203"
decoder = "carbon_line_decoder"
parser_type = "token"
[localcarbon_tcp]
type = "TcpInput"
address = "127.0.0.1:2203"
decoder = "carbon_line_decoder"
parser_type = "token"
[carbon_line_decoder]
type = "PayloadRegexDecoder"
match_regex = '^servers[.](?P<Hostname>[^.]+)[.]\S+ \S+ \S+$'
[carbon_line_decoder.message_fields]
Hostname = "%Hostname%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment