318 Commits

Author SHA1 Message Date
PascalWithopf
2f40554acb codestyle: correct too long lines 2017-06-29 09:28:21 +02:00
Shane Lawrence
ed5ea46a65 Fix mangled pmsnare messages when tabs not escaped. 2017-06-05 11:44:11 -04:00
Rainer Gerhards
062d0c671a Merge pull request #1565 from Whissi/fix-format-security-issue-in-zmq-modules
Fix format security issue in zmq3 modules
2017-06-01 15:39:40 +02:00
Rainer Gerhards
aecdbdf360 mmdblookup: upgrade from contrib module to fully supported one 2017-05-31 13:43:05 +02:00
Rainer Gerhards
435978f9b4 mmdblookup: permit to specify container for extracted fields 2017-05-31 13:43:05 +02:00
Rainer Gerhards
cc65f25f90 mmdblookup: permit to specify custom var names
... for database fields
2017-05-31 13:43:05 +02:00
Rainer Gerhards
0e9c6547f6 mmdblookup: simplify code && remove path size bug
We use code already present in rsyslog core. Also, the max
path size was hardcoded at 5/10 elements. While there is little
reason more could be used, if so, the module had misadressing
errors.
2017-05-31 13:43:05 +02:00
Rainer Gerhards
387c60eec3 mmdblookup: fix yet another memory leak
this happened when multi-level field names were used
2017-05-31 13:43:05 +02:00
Rainer Gerhards
8a5a62fd5c testbench: cleanup & move kafka test to new style config 2017-05-31 13:43:05 +02:00
Rainer Gerhards
1b4762f68b Merge pull request #1580 from rgerhards/i-600
bugfix: handling of json "null" objects in regard to msgGetJSONPropJSON
2017-05-29 14:38:03 +02:00
Rainer Gerhards
59565657c0 bugfix: handling of json "null" objects in regard to msgGetJSONPropJSON
libfastjson returns NULL for json "null" objects, and callers need
to handle this. This is correctly handled in almost all code path
in rsyslog, and this patch fixes theoretical issues in the remaining
two places. Note, however, that a json null object can not really
occur at those places due to the rest of processing. But we
wanted to include the check anyways.

closes https://github.com/rsyslog/rsyslog/issues/600
2017-05-23 16:23:40 +02:00
Brian Knox
691f8389dc fix omhiredis build warnings 2017-05-23 09:13:15 -04:00
Rainer Gerhards
9e848478d0 Merge pull request #1575 from rgerhards/i-1415
mmdblookup bugfix: multiple memory leaks
2017-05-22 14:13:20 +02:00
Rainer Gerhards
0407bc8276 mmdblookup bugfix: multiple memory leaks
There were multiple large memory leaks in mmdblookup, which made
it unusable when used more than lightly.

closes https://github.com/rsyslog/rsyslog/issues/1415
2017-05-19 17:26:22 +02:00
Thomas Deutschmann
3f8a235d17
omzmq3: Fix building with -Werror=format-security 2017-05-17 23:07:40 +02:00
Thomas Deutschmann
6bc4aa975a
imzmq3: Fix building with -Werror=format-security 2017-05-17 23:05:24 +02:00
Rainer Gerhards
3ac9051b12 cosmetic: build system still used JSON_C name
... but used it for libfastjson. This was a left-over when we
could use both json-c and libfastjson. As github user hdatma
pointed out, this was confusing to users. This has now been
changed to LIBFASTJSON. No functional changes.
2017-05-16 11:05:57 +02:00
Luca Boccassi
75d5e6ff9e imczmq: if topic is empty subscribe to everything
ZMQ_SUB supports subscribing to every topic, and it's indicated by an
empty string being passed as a topic.
Fix the config parsing to correctly interpret an empty string passed as
a parameter.
This fixes a regression introduced in 8.19 by commit:
299f5a637f97d2ec064ad3df20fa845ef4b7c7e5
2017-03-09 20:17:46 +00:00
Luca Boccassi
8ec2edc638 imczmq: do not set SUB/DISH sockets as serverish
By default it makes sense for ZMQ_SUB and ZMQ_DISH sockets to
connect, as that's the most common use case, unless specified by the
endpoint syntax.
Regression introduced in 8.19 by commit 299f5a637f97d2ec064ad3df20fa8
2017-03-09 20:13:15 +00:00
Rainer Gerhards
e318309c61 Merge pull request #1357 from GrayTShirt/mmdb-stylecheck
mmdblookup module cleanup
2017-01-23 15:37:49 +01:00
Pascal Withopf
b63a6b9010 codestyle: line length adjusted 2017-01-17 08:54:37 +01:00
Dan Molik
591eb7dbc2 Compile ip-lookup module during testing
- fix clang compilation by switching to BEGINdoAction_nostring
2017-01-13 13:41:52 -05:00
Dan Molik
6a4b10d861 Cleanup mmdb lookup readme 2017-01-13 08:59:36 -05:00
Dan Molik
f6451bb20b mmdblookup - fix building
- minor coding style issues.
- fix compiler warnings
  * string const
  * function prototype
- fix compiler error, msg_t -> smsg_t
- fix libfastjson function deprecation.
- drop libjson environments file, as it is extraneous.
2017-01-12 16:57:24 -05:00
Dan Molik
f24662817c Stylecheck the mmdblookup module 2017-01-12 14:43:06 -05:00
taotetek
cb50f28fa6 Merge pull request #1325 from taotetek/master
new omczmq features
2017-01-04 13:28:24 -05:00
Rainer Gerhards
b583093fea Merge pull request #1099 from chenryn/master
new maxminddb lookup message modify plugin
2016-12-23 09:39:10 +01:00
Brian Knox
be13aae970 omczmq: more zmq options 2016-12-14 17:44:08 -05:00
Brian Knox
4d0e9f5ccf omczmq: more heartbeat options 2016-12-14 16:55:31 -05:00
Brian Knox
d67805fac9 omczmq: fixes and more debug output 2016-12-14 13:37:33 -05:00
Brian Knox
73806e7f40 omczmq: finish heartbeat support 2016-12-14 12:28:57 -05:00
Brian Knox
d21911b32e omczmq: finish heartbeat support 2016-12-14 12:10:22 -05:00
Brian Knox
a02c4e736c zmq - readme updates 2016-12-14 10:49:25 -05:00
Brian Knox
b6ab69c7b3 omczmq: add support for heartbeats 2016-12-14 10:39:02 -05:00
Brian Knox
020184ea25 omczmq: change key to topic 2016-12-13 09:52:18 -05:00
Brian Knox
97bcb7a282 omczmq: update readme 2016-12-12 15:52:40 -05:00
Brian Knox
78e29730c2 omczmq: RADIO now works 2016-12-12 11:28:01 -05:00
Brian Knox
3976fddd2e omczmq: new socket support 2016-12-11 19:24:16 -05:00
Brian Knox
6d8a5d0ceb omczmq: simplify send routine 2016-12-11 18:38:49 -05:00
Brian Knox
f3763223fd omczmq - support dynatopic with single frame 2016-12-11 16:05:12 -05:00
Brian Knox
2523224d84 omczmq: more dynakey work 2016-12-11 11:47:22 -05:00
Brian Knox
31ed55a1b4 omczmq: working on dynakey support 2016-12-11 09:38:15 -05:00
purnima
d45daa2af0 Rebase,redefine msgDestruct() as smsg_t is used 2016-11-22 14:24:25 +05:30
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
zacharyzhao
b31f40be37 Fix an incorrect spelling of mmgrok's README.md
This incorrect spelling may confusing people who follows `README.md`'s
instruction.
2016-11-02 18:00:17 +08:00
Rainer Gerhards
448f16495c remove "inline" attribute from excessivly long functions 2016-10-26 11:50:15 +02:00
Francisco Castro
9ef50fa710 Add test case for OmTcl 2016-10-11 14:49:58 +02:00
Francisco Castro
c2aabea934 Add initial untested version of the Tcl output module 2016-10-11 14:49:58 +02:00
Rainer Gerhards
4bdd2142b0 Merge branch 'master' of https://github.com/patelritesh/rsyslog into merge-1152 2016-10-05 16:09:35 +02:00
Ritesh Patel
dc2274861a patch to handle "From " in AIX forwarded messages.
if syslog in AIX started with "-s" option, AIX syslog adds only "From " instead of "Message forwarded from "
2016-09-24 17:12:54 -04:00