NXLog User Guide
- OS Support
- Enterprise Edition Reference Manual
- 146. Man Pages
- 147. Configuration
- 148. Language
- 149. Extension Modules
- 150. Input Modules
- 151. Processor Modules
- 152. Output Modules
- 152.1. Microsoft Azure (om_azure)
- 152.2. Batched compression (om_batchcompress)
- 152.3. Blocker (om_blocker)
- 152.4. DBI (om_dbi)
- 152.5. Elasticsearch (om_elasticsearch)
- 152.6. EventDB (om_eventdb)
- 152.7. Program (om_exec)
- 152.8. File (om_file)
- 152.9. Go (om_go)
- 152.10. HTTP(s) (om_http)
- 152.11. Java (om_java)
- 152.12. Kafka (om_kafka)
- 152.13. Null (om_null)
- 152.14. ODBC (om_odbc)
- 152.15. Perl (om_perl)
- 152.16. Named pipes (om_pipe)
- 152.17. Python (om_python)
- 152.18. Raijin (om_raijin)
- 152.19. Redis (om_redis)
- 152.20. Ruby (om_ruby)
- 152.21. TLS/SSL (om_ssl)
- 152.22. TCP (om_tcp)
- 152.23. UDP (om_udp)
- 152.24. UDP with IP spoofing (om_udpspoof)
- 152.25. Unix domain sockets (om_uds)
- 152.26. WebHDFS (om_webhdfs)
- 152.27. ZeroMQ (om_zmq)
- NXLog Manager
- NXLog Add-Ons
This module can send log data to a Redis server. It issues RPUSH commands using the Redis Protocol to send data.
The input counterpart, im_redis, can be used to retrieve data from a Redis server.
|To examine the supported platforms, see the list of installer packages in the Available Modules chapter.|
This mandatory directive specifies the IP address or DNS hostname of the Redis server to connect to.
This directive is interpreted the same way as the Key directive (can be an expression which evaluates to a string), except that its evaluated value will be used as the name of the Redis channel to which this module will publish records. The usage of this directive is mutually exclusive with the usage of the
RPUSHXcommands in the Command directive.
This specifies the Key used by the RPUSH command. It must be a string type expression. If the expression in the Key directive is not a constant string (it contains functions, field names, or operators), it will be evaluated for each event to be inserted. The default is
nxlog. The usage of this directive is mutually exclusive with the usage of the
PUBLISHcommand in the Command 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.
Due to the required
See the OutputType directive in the list of common module directives. If this directive is unset, the default
Dgramformatter function is used, which writes the value of
$raw_eventwithout a line terminator. To preserve structured data
Binarycan be used, but it must also be set on the other end.
This specifies the port number of the Redis server. The default is port 6379.
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 with 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.
|The Reconnect directive must be used with caution. If it is used on multiple systems, it can send reconnect requests simultaneously to the same destination, potentially overloading the destination system. It may also cause NXLog to use unusually high system resources or cause NXLog to become unresponsive.|
The following procedures are exported by om_redis.
Force a reconnection. This can be used from a Schedule block to periodically reconnect to the server.Caution
The reconnect() procedure must be used with caution. If configured, it can attempt to reconnect after every event sent, potentially overloading the destination system.