12671 Commits

Author SHA1 Message Date
Rainer Gerhards
ffaa5bbbaa
Merge pull request #2825 from jgerhards/errmsg-mmdblookup
mmdblookup: use new errmsg interface
2018-07-09 08:43:22 +02:00
Jan Gerhards
99e93b81ec mmdblookup: use new errmsg interface
see also https://github.com/rsyslog/rsyslog/issues/1684
2018-07-08 10:41:31 +02:00
Rainer Gerhards
64b6a4ce86
maintain ChangeLog 2018-07-08 09:04:44 +02:00
Rainer Gerhards
5e9cf4a9ae
Merge pull request #2619 from rgerhards/i2615
replace select() by poll()
2018-07-08 09:03:13 +02:00
Rainer Gerhards
493279b790 imudp: replace select() by poll()
select was used when epoll was not available. This could cause issues
if during startup fds > 1024 were generated. This is extremely unlikely
and we have never seen any such report in practice. Nevertheless, it is
better to have this fixed.

as a side-activity improve hostname-getaddrinfo-fail.sh test - it looked
even when OK - clarifying things.

closes https://github.com/rsyslog/rsyslog/issues/2615
2018-07-07 12:38:38 +02:00
Rainer Gerhards
9f53a42575
nsd_ptcp: improve error message 2018-07-07 12:38:27 +02:00
Rainer Gerhards
b0e98f14a8
Merge pull request #2823 from infrastation/master
fix a typo in the rsyslog.conf man page
2018-07-07 12:35:24 +02:00
Denis Ovsienko
1761769074 spell HTML in uppercase in the man pages 2018-07-06 18:20:32 +01:00
Rainer Gerhards
4020e9e7a4
impstats: emit warning if log.syslog="off" and ruleset name given
With this config, "ruleset" is silently ignored, what probably is
not obvious to a user.

closes https://github.com/rsyslog/rsyslog/issues/2821
2018-07-06 18:29:51 +02:00
Rich Megginson
8cf87f64f6 fix pod_name field match in filename rule - everything up to _ 2018-07-06 09:37:06 -06:00
Denis Ovsienko
919e2d0ad4 fix a typo in the rsyslog.conf man page 2018-07-06 16:10:21 +01:00
Rainer Gerhards
a9e5c101be Travis: cleanup .travis.yml 2018-07-06 08:42:10 +02:00
Rainer Gerhards
8f54845f1d
maintain ChangeLog 2018-07-06 08:33:04 +02:00
Rainer Gerhards
c0f13ea504
Merge pull request #2806 from PascalWithopf/nettester
testbench: refactor tests using nettester
2018-07-06 08:29:30 +02:00
Rainer Gerhards
abce4630d5
testbench: refactor tests which used "nettester" tool
Some old tests are carried out via the nettester tool. This was
our initial shot at a testbench a couple of years ago. While it
worked back then, the testbench framework has been much enhanced.
These old tests are nowadays very hard to handle, as they miss
debug support etc. So it is time to refactor them to new style.

As a side-activity, the testbench plumbing has been enhanced to
support some operations commonly needed by these tests. Contrary
to pre-existing plumbing, these new operations are now crafted
using bash functions, which we consider superior to the current
method. So this is also the start of converting the older-style
functionality into bash functions. We just did this now because
it was required and we entangled it into the test refactoring
because it was really needed. Else we had to write old-style
operations and convert them in another commit, which would
have been a waste of time.

Special thanks to Pascal Withopf for the initial step of taking
old tests and putting config as well as test data together into
the refactored tests, on which Rainer Gerhards than could build
to create the new tests and update testbench plumbing.
2018-07-05 15:59:59 +02:00
Rainer Gerhards
561b37ab58
maintain ChangeLog 2018-07-05 12:11:47 +02:00
Rainer Gerhards
42d51e1fa8
Merge pull request #2819 from jjourdin/master
Remove ?authMechanism=PLAIN to let the mongo library chooses the defa…
2018-07-05 12:06:44 +02:00
Rainer Gerhards
10c8bb363d
Merge pull request #2820 from rgerhards/backticks-enhance
config: enhance backticks "echo" capability
2018-07-05 12:06:34 +02:00
Rainer Gerhards
abe04344bf
config: enhance backticks "echo" capability
This is now more along the lines of what bash does. We now support
multiple environment variable expansions as well as constant text
between them.

example:
env SOMEPATH is set to "/var/log/custompath"
config is: param=`echo $SOMEPATH/myfile`
param than is expaned to "/var/log/custompath/myfile"

among others, this is also needed inside the testbench to properly
support "make distcheck".

Note: testbench tests follows via separate commit. There will be
no special test, as the testbench itself requires the functionality
at several places, so the coverage will be very good even without
a dedicated test.
2018-07-05 09:49:21 +02:00
Jérémie Jourdin
daf2d26026 Remove ?authMechanism=PLAIN to let the mongo library chooses the default mechanism. One can force a specific authentication mechanism by adding ?authMechanism=XXX into the uristr argument of the module 2018-07-04 14:19:45 +02:00
Rainer Gerhards
b30367b146
maintain ChangeLog 2018-07-03 13:09:05 +02:00
Rainer Gerhards
2c6a82e3a8
Merge pull request #2810 from alorbach/impstats-update
impstats: Updated python based statslog analyzer sample scripts.
2018-07-03 13:07:57 +02:00
Rainer Gerhards
4f6cd8bdf9
maintain ChangeLog
entry may be improved later on

see also https://github.com/rsyslog/rsyslog/pull/2812#issuecomment-402040594
2018-07-03 09:31:38 +02:00
Rainer Gerhards
7259e9b6ff
Merge pull request #2812 from richm/mmkubernetes-fix-rules
default rules use container_name_and_id; include rulebase files in dist
2018-07-03 09:29:26 +02:00
c8da318ded impstats: Updated python based statslog analyzer sample scripts.
Changed files from ANSi to UTF8
2018-07-03 09:05:30 +02:00
Rainer Gerhards
99a339eb3e
Merge pull request #2811 from rgerhards/lgtm2
Lgtm2
2018-07-02 20:48:03 +02:00
Rich Megginson
32e3332cd3 default rules use container_name_and_id; include rulebase files in dist 2018-07-02 08:00:11 -06:00
Rainer Gerhards
44138974fa
maintain ChangeLog 2018-07-02 14:36:59 +02:00
Rainer Gerhards
085d225135
Merge pull request #2809 from rgerhards/stdlog-testing
build system: do not disable testbench tests via --disable-liblogging…
2018-07-02 14:33:20 +02:00
Rainer Gerhards
69cc25ddd7
cleanup: another FIXME that wasn't removed in time... 2018-07-02 13:36:07 +02:00
Rainer Gerhards
95468d009b
silence some static analyzer warnings (hopefully)
especially in the debug case there is simply no other chance
than to ignore the error...
2018-07-02 13:35:26 +02:00
Rainer Gerhards
d84a19d214
cleanup: remove FIXME comment
can be removed because the error code is OK. It's pretty generic
but that's how it is - it conveys the right thing back to
rsyslog core.
2018-07-02 13:25:46 +02:00
Rainer Gerhards
2656afd4f5
build system: do not disable testbench tests via --disable-liblogging-stdlog 2018-07-02 11:13:05 +02:00
Rainer Gerhards
b40e29fd62
maintain ChangeLog 2018-07-02 09:36:13 +02:00
Rainer Gerhards
1948b41d40
Merge pull request #2808 from rgerhards/i1323
more explicit error msg with message modification mod on queue
2018-07-02 09:34:22 +02:00
Rainer Gerhards
ec34253535
more explicit error msg with message modification mod on queue
Message modification modules do not work if used with a non-direct queue.
We now make this more explicit in the config parsing error message.

closes https://github.com/rsyslog/rsyslog/issues/1323
2018-06-29 12:43:27 +02:00
Rainer Gerhards
954017ea00
Merge pull request #2807 from rgerhards/travis-no-merge
travis: remove "merge master" test
2018-06-28 14:30:23 +02:00
Rainer Gerhards
7ddc0fccc7
travis: do no longer start elasticsearch service
all elastisearch tests now handle their own instance, so the
OS service is no longer needed.

This improves Travis runtime.

see also https://github.com/rsyslog/rsyslog/issues/2800
2018-06-28 10:47:44 +02:00
Rainer Gerhards
96128fdd3e
travis: remove "merge master" test
We originally merged master into the PR. At that time, github did not
(reliably?) provide a merged code basis. This is now the case, so the
test is kind of unnecessary. It only did some good if master was updated
after PR submission but before Travis started the test. This is pretty
unlikely, so we remove that test - which also is a relief in regard
to Travis runtime.

see also https://github.com/rsyslog/rsyslog/issues/2800
2018-06-28 10:45:42 +02:00
Rainer Gerhards
84bb0221ea
maintain ChangeLog 2018-06-28 09:50:58 +02:00
Rainer Gerhards
d2fc482332
Merge pull request #2803 from rgerhards/i2744
add global directive "abortOnUncleanConfig"
2018-06-28 09:49:38 +02:00
Rainer Gerhards
bb5577594b
Merge pull request #2805 from richm/issue-2804
check for null fp before fclose
2018-06-28 09:13:44 +02:00
Rainer Gerhards
ebf1d4ae63
maintain ChangeLog 2018-06-28 09:12:31 +02:00
Rainer Gerhards
489356593a
Merge pull request #2010 from jvymazal/librelp_CI
added setting priority string to Relp TLS testsuite
2018-06-28 09:01:21 +02:00
Rainer Gerhards
c7b6ddb9cd
Merge pull request #2795 from micoq/master
omrabbitmq: one pthread mutex per connection
2018-06-28 08:54:12 +02:00
Rainer Gerhards
0caa7433f2
Merge pull request #2791 from PascalWithopf/i-2789
ommail: enable.body parameter default set correctly
2018-06-28 08:51:36 +02:00
Rainer Gerhards
6d1a81e5ce
Merge pull request #2802 from rgerhards/no-memcheck
cleanup: remove no longer needed --enable-memcheck
2018-06-28 08:49:40 +02:00
Rich Megginson
40ead589f9 check for null fp before fclose 2018-06-27 13:40:10 -06:00
Rainer Gerhards
8f8ed81e5e
add global directive "abortOnUncleanConfig"
This provides a new-style alternative to $AbortOnUncleanConfig.
Note that a testbench test was changed to the new syntax. Adding
an additional test did not look useful, as the testbench still
sufficiently tests old and new method.

closes https://github.com/rsyslog/rsyslog/issues/2744
2018-06-27 11:17:48 +02:00
Rainer Gerhards
3a25ed68ae
cleanup: remove no longer needed --enable-memcheck
veeeeery old testing capability, no longer functional but
causes build to fail if enabled. Replaced by ASAN/valgrind.

Issue detected while testing some other CI settings.
2018-06-27 10:29:48 +02:00