Hi all, I am trying the omhiredis plugin and I stumpled upon a very strange behaviour : you can not send a log message to redis with LPUSH.
The reason is that if the log message contains one (or more) space(s) Redis will add as much values as there are spaces. For example if you try : $template RedisCommand,"LPUSH logs \"foo\"" *.* action(type="omhiredis", template="RedisCommand") In redis, you get : 1) "foo" (integer) 1 Which is normal. However if you try with the template $template RedisCommand,"LPUSH logs \"foo bar\"", in Redis you get: 1) "bar" 2) "foo" (integer) 2 Which is also normal as the LPUSH command [1] prototype is LPUSH key value [value ...] so anything after a space is considered a new value in the list. With such a behaviour, how do you manage to store a log message in Redis (a log message contains spaces) ? (Maybe I overlooked something in the configuration, if yes feel free to tell me.) Thanks in advance for your feedback. Best Regards, 1. http://redis.io/commands/lpush -- Jérôme _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards

