-
Notifications
You must be signed in to change notification settings - Fork 56
Tcp Input
Frank Denis edited this page Sep 22, 2015
·
4 revisions
TCP accepts plain, unencrypted, unauthenticated messages. It is compatible with most syslog daemons and other log collectors.
With a dedicated thread/parser for each connection (recommended for optimal performance, using less persistent connections than the available number of cores):
[input]
type = "tcp"
listen = "127.0.0.1:514"
With a fixed number of threads, using coroutines (recommended if many persistent connections have to be processed on a limited number of cores):
[input]
type = "tcp_co"
listen = "127.0.0.1:514"
Optional properties:
-
timeout = <seconds>
: automatically close idle connections after the specified number of seconds. ignored by thetcp_co
implementation. -
tcp_threads = <number>
: the number of threads to use. only for thetcp_co
implementation`. -
framing = "<splitter>"
(defaults toline
): indicates how messages are split.