- OS Support
- Enterprise Edition Reference Manual
- 127. Man Pages
- 128. Configuration
- 129. Language
- 130. Extension Modules
- 131. Input Modules
- 132. Processor Modules
- 133. Output Modules
- 133.1. Batched Compression (om_batchcompress)
- 133.2. Blocker (om_blocker)
- 133.3. DBI (om_dbi)
- 133.4. Elasticsearch (om_elasticsearch)
- 133.5. EventDB (om_eventdb)
- 133.6. Program (om_exec)
- 133.7. Files (om_file)
- 133.8. Go (om_go)
- 133.9. HTTP(s) (om_http)
- 133.10. Java (om_java)
- 133.11. Kafka (om_kafka)
- 133.12. Null (om_null)
- 133.13. ODBC (om_odbc)
- 133.14. Perl (om_perl)
- 133.15. Named Pipes (om_pipe)
- 133.16. Python (om_python)
- 133.17. Raijin (om_raijin)
- 133.18. Redis (om_redis)
- 133.19. Ruby (om_ruby)
- 133.20. TLS/SSL (om_ssl)
- 133.21. TCP (om_tcp)
- 133.22. UDP (om_udp)
- 133.23. UDP with IP Spoofing (om_udpspoof)
- 133.24. Unix Domain Sockets (om_uds)
- 133.25. WebHDFS (om_webhdfs)
- 133.26. ZeroMQ (om_zmq)
- NXLog Manager
- NXLog Add-Ons
This module sends log messages as UDP datagrams to the address and port specified. UDP is the transport protocol of the legacy BSD Syslog standard as described in RFC 3164, so this module can be particularly useful to send messages to devices or Syslog daemons which do not support other transports.
|To examine the supported platforms, see the list of installer packages in the Available Modules chapter.|
The module connects to the IP address or hostname defined in this directive. If additional hosts are specified on new lines, the module works in a failover configuration. If a destination becomes unavailable, the module automatically fails over to the next one. If the last destination becomes unavailable, the module fails over to the first destination.Note
Hostdirective is used with a hostname instead of an IP address, the the hostname will be resolved to an IP address for each new connection. If a resolver, e.g. DNS, returns multiple IP addresses, only the first IP address will be used. If a single output instance is configured with multiple
Hostdirectives, these hosts are accessed in failover mode. If a
Hostdirective is configured with a hostname, it will send to that host as long a usable connection can be established with the IP address it resolves to. Should that connection fail, it will then resolve the IP address of the next hostname in the list and attempt to establish a connection with it. Each time a failure occurs, the next
Hostdirective in the list is tried.Note
ListenAddr(or similar) directive specifies a hostname, the module binds to the first IP address that is exposed by the system for that hostname. On most systems that support IPv6, this address will be an IPv6 address. This means that client applications and the systems they run on will also need to have IPv6 support enabled, and must be able to connect to the same IPv6 address. NXLog output modules achieve this requirement through failover. For third-party client applications, the configuration details are application-specific but they should have the ability to detect which IP address the server is listening on when using a hostname to connect.
For client applications that don’t support IPv6, to avoid the behavior described above the
ListenAddrdirective of the listening module may be set to an IPv4 address e.g.
Alternatively, the server-side system may be configured to prioritize IPv4 addresses for the hostname specified by the
ListenAddrdirective, although this is a more complicated and potentially intrusive approach. On most Linux-based systems, this can be achieved through the
/etc/gai.confconfiguration file. On BSD-based systems, the
ip6addrctlcommand can be used. Windows is more limited and can only be configured to prioritize IPv4 over IPv6 addresses for ALL hostnames resolved on the system, by setting the following registry value to
For more information see the Microsoft documentation on Configuring IPv6 in Windows for advanced users.
This limitation will be addressed in a future release by making listening modules bind to all available IPv4/IPv6 addresses that a hostname resolves to.
The port number can be defined by appending it at the end of the hostname or IP address using a colon as a separator (
host:port). For each destination with no port number defined here, the port number specified in the Port directive is used. Port numbers defined here take precedence over any port number defined in the Port directive. The default port is 514.
|Because of the nature of the UDP protocol and how ICMP messages are handled by various network devices, the failover functionality in this module is considered as "best effort". Detecting hosts going offline is not supported. Detecting the receiving service being stopped - while the host stays up is supported.|
The module connects to the port number on the destination host defined in this directive. This configuration is only used for any destination in the Host directive which does not have a port specified. If no port is configured for a destination in either directive, the default port is used, which is port 514.
|The Port directive will become deprecated from NXLog EE 6.0. After that, the port can only be defined in the Host directive.|
This optional directive specifies the local port number of the connection. If this is not specified a random high port number will be used, which is not always ideal in firewalled network environments.
This optional directive sets the reconnect interval in seconds. If it is set, the module attempts to reconnect in every defined second. If it is not set, the reconnect interval will start at 1 second and doubles on every attempt. If the duration of the successful connection is greater than the current reconnect interval, then the reconnect interval will be reset to 1 sec.
This optional directive sets the socket buffer size (SO_SNDBUF) to the value specified. If this is not set, the operating system default is used.
Pre-v5 syntax examples are included, they will become invalid with NXLog EE 6.0.
This configuration reads log messages from socket and forwards them via UDP.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 <Input uds> Module im_uds UDS /dev/log </Input> <Output udp> Module om_udp Host 192.168.1.1:1514 LocalPort 1555 </Output> # Using the syntax prior to NXLog EE 5, # where the port is defined in a separate directive. #<Output udp> # Module om_udp # Host 192.168.1.1 # Port 1514 # LocalPort 1555 #</Output> <Route uds_to_udp> Path uds => udp </Route>
This configuration sends logs via UDP in a failover configuration (multiple Hosts defined).