Ask questions. Get answers. Find technical product solutions from passionate experts in the NXLog community.
Using om_redis with mulitple output servers
davidatpinger created
Hey!
I have a bunch of log data that I'd like to push to a set of redis instances that are used as a queue. In an ideal world, I could use a config like this:
<Output redis-out>
Command LPUSH
Host server1,server2,server3
</Output>
The desired result is that nxlog pushes sequential lines to each of the servers in turn - no duplication, just load distribution.
Is there presently a way to do this? I'm thinking I'm likely to end up running through a hardware load-balancer, but it sure would be nice to just do this in nxlog.
Thanks!
davidatpinger created
Output module "om_redis" documentation?
le_logging created
Where can I find the documenation for this om_redis module?
Only resource I can find is: https://nxlog.co/question/1593/redis-module-lpush
le_logging created
Redis Module LPUSH
bourazaniss created
NXLog Redis output module sends data to a Redis server with the RPUSH command allowing only to change the Redis key ( = database).
RPUSH inserts all the specified values at the tail of the list stored at key
I suggest that the Redis command has to be implemented as a parameter and to support at least the LPUSH.
LPUSH inserts all the specified values at the head of the list stored at key
There are clients that support only retreiving data from the head. The most usual case is to send data to Redis with LPUSH and then have Logstash poll record from Redis with LPOP.
Thank you.
bourazaniss created