TCP Input (new line delimited)
todo: when more than line splitting is needed the file should be read in chunks and passed to a generic splitter buffer with a token/match specification and a find function similar to the Heka stream reader.
1. Sample Configuration
filename = "tcp.lua"
instruction_limit = 0
-- address (string) - an IP address (* for all interfaces)
-- Default:
-- address = "127.0.0.1"
-- port (integer) - IP port to listen on (ignored for UNIX socket)
-- Default:
-- port = 5566
-- default_headers (table) - Sets the message headers to these values if they
-- are not set by the decoder.
-- This input will always default the Hostname header to the source IP address.
-- Default:
-- default_headers = nil
-- Specifies a module that will decode the raw data and inject the resulting message.
-- Default:
-- decoder_module = "decoders.payload"
-- Boolean, if true, any decode failure will inject a message of Type "error",
-- with the Payload containing the error.
-- Default:
-- send_decode_failures = false
ssl_params = {
mode = "server",
protocol = "tlsv1",
key = "/etc/hindsight/certs/serverkey.pem",
certificate = "/etc/hindsight/certs/server.pem",
cafile = "/etc/hindsight/certs/CA.pem",
verify = {"peer", "fail_if_no_peer_cert"},
options = {"all", "no_sslv3"}
}
source code: tcp.lua