14 Commits

Author SHA1 Message Date
Jan Gerhards
a61796217d omhiredis: add option to use RPUSH instead of LPUSH
if userpush is on, RPUSH will be use instead of LPUSH

closes https://github.com/rsyslog/rsyslog/issues/1625
2017-12-27 18:06:52 +01:00
PascalWithopf
29c9fb1f9a codestyle: reduce line length to 120
lines are still checked for a length of 125 because
these are just some of the lines
2017-12-21 17:09:32 +01:00
Rainer Gerhards
5bd1daf647 omhiredis bugfix: rsyslog segfault on startup if no template is specified
closes https://github.com/rsyslog/rsyslog/issues/2217
2017-12-17 19:17:41 +01:00
Rainer Gerhards
6bfc00bdef refactor modules that do not expose legacy action interface
simplify code, also gets us rid of Coverity cosmetic CIDs
2017-12-04 19:06:59 +01:00
Rainer Gerhards
422061984f omhiredis: fix Coverity scan cosmetic CID 185874 2017-11-27 12:55:25 +01:00
Brian Knox
691f8389dc fix omhiredis build warnings 2017-05-23 09:13:15 -04:00
Bob Gregory
f50c0e55be Redis dynakey
This commit adds a dynakey attribute to omhiredis configuration.

The dynakey attribute provides the name of a template that should be
used to create the publish key or list name when sending log entries to
redis.
2016-11-06 08:01:58 +00:00
Rainer Gerhards
448f16495c remove "inline" attribute from excessivly long functions 2016-10-26 11:50:15 +02:00
Bob Gregory
2ec1ad26ee Omhiredis now reconnects to redis after failure
* We check for the connection state when receiving replies
  so that we don't try to free(NULL)
* We now close the redis connection if we fail to send logs, which
  causes us to reconnect in tryResume
* Cleaned up the freeReply code in endTransaction and dropped the
  replies array since it isn't actually used.
2016-09-13 16:28:58 +01:00
Manohar Ht
631a45b322 Support for authenticated redis database. 2016-03-20 10:44:07 +05:30
Rainer Gerhards
35e9e6a2cd omhiredis: serverport config parameter did not reliably work
depended on environment/compiler used to build
2016-03-01 17:28:25 +01:00
Brian Knox
2f2f3f8df9 redis - fix template mode config switch 2015-09-21 16:40:58 -04:00
Brian Knox
e8d18fb295 omhiredis: add queue (list) and publish support 2015-09-17 14:36:27 -04:00
Rainer Gerhards
aad8041e0b move contributed modules to ./contrib directory 2014-11-12 16:56:20 +01:00