9434 Commits

Author SHA1 Message Date
Rainer Gerhards
4669fbdcf6 require libfastjson 2016-02-03 17:13:33 +01:00
Rainer Gerhards
8944442f2e lookup.c: do not warn about deprecated functions
This is a "tactical" fix: we are about to merge a large
extension of this module (actually the first complete implementation)
what probably fixes the root problem anyways.

see https://github.com/rsyslog/rsyslog/pull/578

After we have merged, we need to re-enable those warnings. For
now, that saves us trouble with travis (and, no, I have no idea why
the warnings did not break travis so far...).
2016-02-03 17:10:10 +01:00
Rainer Gerhards
057caaf8a2 Merge branch 'patch-1' of https://github.com/Elemecca/rsyslog into master-candidate 2016-02-03 17:03:01 +01:00
Rainer Gerhards
a5fa06cda0 maintain ChangeLog 2016-02-03 16:44:06 +01:00
Rainer Gerhards
a64a658191 testbench: cleanup queue-persists tests and give some longer timeout
... extend timeout just in case we might have a very slow system
2016-02-03 16:42:50 +01:00
Rainer Gerhards
b435f4e7d2 bugfix: queue engine can loose one message during queue shutdown
... due to improper checking of return states.

closes https://github.com/rsyslog/rsyslog/issues/262
2016-02-03 16:42:50 +01:00
Rainer Gerhards
bb25892ec4 maintain ChangeLog 2016-02-03 16:42:50 +01:00
Rainer Gerhards
074879569e require libfastjson 2016-02-03 16:42:50 +01:00
Sam Hanes
340b02df5b Fix lexer bug affecting hex number literals.
This fixes a mistake in the lexer rule for hexadecimal number literals that prevented it from recognizing hex numbers containing more than one digit or the digits `8` or `9`.
2016-02-03 16:42:50 +01:00
Rainer Gerhards
0aec3c36d8 Merge branch 'fix-statan-findings2' of https://github.com/rgerhards/rsyslog into master-candidate 2016-02-03 11:29:04 +01:00
Sam Hanes
cf635309d5 Fix lexer bug affecting hex number literals.
This fixes a mistake in the lexer rule for hexadecimal number literals that prevented it from recognizing hex numbers containing more than one digit or the digits `8` or `9`.
2016-02-03 01:03:54 -08:00
Rainer Gerhards
81d4e13ecf Merge branch 'fix-imjournal-off-by-one' of https://github.com/portante/rsyslog 2016-02-02 17:32:37 +01:00
Rainer Gerhards
90a3a0553d maintain ChangeLog 2016-02-02 17:31:58 +01:00
Rainer Gerhards
62568520c6 Merge branch 'add-imuxsock-ruleset' 2016-02-02 17:31:16 +01:00
Rainer Gerhards
530f91a423 prevent a clang static analyzer warning
The static analyzer correctly complains about "garbagge
value being used", but this is exactly what we want. The
code in question is a fallback when we cannot obtain any
other source of randomness for cryptography needs.
2016-02-02 15:51:52 +01:00
Peter Portante
f98d4bf32e imjournal: fix off-by-one error in name cmprs
Looks like a long standing off-by-one comparison issue with the
invocation of strncmp.  The constant string was only 3 or 6 characters
long, but the comparison length was 4 or 7.

We have dropped this code entirely since it was not working at all.
2016-02-02 12:34:39 +00:00
Rainer Gerhards
16db662d9f imuxsock: add support for rulesets
ruleset parameter is added at listener level

implements https://github.com/rsyslog/rsyslog/issues/765
2016-02-02 08:52:31 +01:00
Rainer Gerhards
c7b455524b add "senders.reportNew" global parameter 2016-02-01 17:27:11 +01:00
Rainer Gerhards
844ca49cf5 add sender tracking/stats for imtcp
as well as other inputs that utilize the tcps_sess.c subsystem
2016-02-01 15:50:04 +01:00
Rainer Gerhards
af1a845a96 add "senders.keeptrack" global parameters
permits to turn on/off (default) sender tracking and stats
2016-02-01 15:49:17 +01:00
Rainer Gerhards
c0736fe344 emit warning if sender has not been seen for a period of time
controllable via
   global(senders.reportGoneAway="on" senders.timeoutAfter="10")

see also https://github.com/rsyslog/rsyslog/issues/751
2016-02-01 15:07:32 +01:00
Rainer Gerhards
861059467b implement sender-specific statistics
see also https://github.com/rsyslog/rsyslog/issues/751

Note: this is only the impstats part of the feature request,
and only done for imptcp.
2016-02-01 12:42:51 +01:00
Rainer Gerhards
17bc9cebf9 fix compiler warning 2016-02-01 08:46:59 +01:00
Rainer Gerhards
a1f19889d7 add missing ASL 2.0 license header
author permission given in PR:
   https://github.com/rsyslog/rsyslog/pull/614
2016-02-01 08:31:26 +01:00
Rainer Gerhards
d32e477c68 maintain ChangeLog 2016-02-01 08:21:40 +01:00
Rainer Gerhards
3112842e74 Merge branch 'master-merge-imptcp' into master-candidate
Conflicts:
	tests/Makefile.am
2016-02-01 08:20:54 +01:00
Rainer Gerhards
a12f659731 Merge branch 'master' of https://github.com/janmejay/rsyslog into master-merge-imptcp 2016-02-01 08:02:59 +01:00
Janmejay Singh
5595d0a9e6 reduce rate (per msg) of tcpflood progress reporting 2016-01-31 02:03:48 +05:30
Janmejay Singh
c504776d87 about imptcp_nonProcessingPoller.sh verbosity around imptcp effected message truncation: the problem was not tcpflood, but a incorrectly named test, which pointed investigation in the wrong direction 2016-01-31 02:03:43 +05:30
Rainer Gerhards
2231cbd3f2 maintain ChangeLog 2016-01-30 11:43:49 +01:00
Rainer Gerhards
140838e5d9 Merge branch 'fix-statan-findings' of https://github.com/rgerhards/rsyslog into master-candidate 2016-01-29 19:35:27 +01:00
Rainer Gerhards
f8b466623c fix some unitialized variable warnings
these were cosmetical and had no real effect
2016-01-29 18:54:11 +01:00
Rainer Gerhards
79ad34b2ed "fix" clang static analyzer false positives 2016-01-29 18:38:31 +01:00
Rainer Gerhards
93416d26e6 fix problems found by clang static analyser
These were very theoretic, and enven the potential memory
leak would not have any effect. Thus it was not tried to solve
initially. Doing it now primarily so that static analyzer is
happy.
2016-01-29 18:08:43 +01:00
Rainer Gerhards
fcdbdb1c12 fix some clang static analyzer violations 2016-01-29 16:47:13 +01:00
Rainer Gerhards
98463ed482 Merge branch 'master-integrate-dynstats' into master-candidate
Conflicts:
	.travis.yml
2016-01-29 15:45:11 +01:00
Janmejay Singh
eeb181d33d fixed a theoritically impossible bug in ciscoios-parser that static-analyzer complains about 2016-01-29 19:17:29 +05:30
Janmejay Singh
54e6ac14fc rwlock attr does not try to setkind when environment does not have that function + fixed 2 minor problems identified by static-checking 2016-01-29 19:00:09 +05:30
Janmejay Singh
b5f65e5eb3 removed dependency on sys/queue.h, which does not exist on solaris 2016-01-29 00:45:35 +05:30
Janmejay Singh
b18aef99d0 switched to runtime/hashtable.h (because solaris does not have hsearch_r and other re-entrant friends) 2016-01-29 00:18:16 +05:30
Janmejay Singh
8fa036a914 fixed an incorrect error message 2016-01-28 20:18:20 +05:30
Janmejay Singh
cc7450b389 silence false static-analysis alert 2016-01-28 20:00:11 +05:30
Janmejay Singh
45dd002f2a fixed warnings identified by static-error-checking 2016-01-28 19:55:30 +05:30
Rainer Gerhards
d449f33ef4 maintain ChangeLog 2016-01-28 15:23:15 +01:00
Rainer Gerhards
b0523a99f6 omelasticsearch: code cleanup
most importantly, fix compiler warnings
2016-01-28 15:03:36 +01:00
Rainer Gerhards
41e2001855 re-enable some compiler warnings that should be dealt with
I also think that these were already dealt with, as the testbench
did not bring up any warnings lately.
2016-01-28 14:50:18 +01:00
Rainer Gerhards
84377d48cf Merge branch 'trivialfixes' of https://github.com/davidelang/rsyslog into travis-add-elasticsearch 2016-01-28 14:48:51 +01:00
Rainer Gerhards
e48fd4dd70 travis: also build omelasticsearch during CI run 2016-01-28 14:36:15 +01:00
Rainer Gerhards
fd7e0a1d4d travis: enable grok under regular test as well
as we now do this under trusty, there should be no issue
with that.
2016-01-28 13:00:32 +01:00
Rainer Gerhards
3de2da15ce update doc on patch contribution workflow 2016-01-28 12:59:26 +01:00