This module accepts TCP connections on the configured address and port. It can handle multiple simultaneous connections. The TCP transfer protocol provides more reliable log transmission than UDP. If security is a concern, consider using the im_ssl module instead.
|This module provides no access control. Firewall rules can be used to deny connections from certain hosts.|
The im_tcp module accepts the following directives in addition to the common module directives.
The module will accept connections on this IP address or DNS hostname. For security, the default listen address is
localhost(the localhost loopback address is not accessible from the outside). To receive logs from remote hosts, the address specified here must be accessible. The any address
0.0.0.0is commonly used here.
The module will listen for incoming connections on this port number. The default port is 514 if this directive is not specified.
The following fields are used by im_tcp.
The received string.
The IP address of the remote host.
With this configuration, NXLog will listen for TCP connections on port 1514 and write received log messages to file.