1332 Commits

Author SHA1 Message Date
Rainer Gerhards
f4540ec6d6 build: remove compiler warnings from testbench tool syslog_caller 2017-10-18 12:45:03 +02:00
Rainer Gerhards
75ed9c0955 omfile: hande file open error via SUSPEND mode
For a while, this lead to suspension as the data error was
not detected by the rule engine. This has changed with fixes
in 8.30.0. I asked users what they prefer (and expect) and
everyone meant it should still be handled via suspension. See
github tracker below for more details.

closes https://github.com/rsyslog/rsyslog/issues/1832
2017-10-18 11:34:07 +02:00
Rainer Gerhards
4b564e760a testbench: add test for nested ruleset termination
see also https://github.com/rsyslog/rsyslog/issues/1122
2017-10-18 11:08:42 +02:00
Rainer Gerhards
2fd3fcca1e travis: remove temporary package override
this was needed while libfastjson 0.99.7 was not released
We just uncomment it so that the override can be easily re-enabled
the next time a similar need arises (what routinely happens)

closes https://github.com/rsyslog/rsyslog/issues/1848
2017-10-18 08:20:22 +02:00
Rainer Gerhards
07ea27a2e6 travis: enable build of gssapi components 2017-10-18 08:07:39 +02:00
Rainer Gerhards
c0b80d8756 testbench: harden tests against hanging previous instances
cleaning at exit does not always work because it sometimes is
not reached, especially in cases that go really wrong
2017-10-17 10:27:48 +02:00
Rainer Gerhards
3ebe1dcaa7 solaris CI: fix invalid build of librelp dependency
looks like a left-over from previous testing :-(
2017-10-17 10:27:48 +02:00
Rainer Gerhards
45d6de2821 testbench: enable relp tests on solaris 2017-10-17 10:27:42 +02:00
Rainer Gerhards
01fa86307b Merge pull request #1846 from rgerhards/fix
cleanup: remove accidently added files from testbench
2017-10-16 11:43:36 +02:00
Rainer Gerhards
ad040017e8 Merge pull request #1807 from rgerhards/case-sensitive
handle (JSON) variables in case-insensitive way
2017-10-16 11:09:56 +02:00
Rainer Gerhards
8a0938d8cd cleanup: remove accidently added files from testbench 2017-10-16 10:06:27 +02:00
Rainer Gerhards
78da65a19a Merge pull request #1814 from mrworkman/rscript-format-time
WIP: Add RainerScript format_time() funcion to format UNIX timestamps.
2017-10-16 10:05:09 +02:00
Rainer Gerhards
6af7996d8b testbench: add (commented-out) troubleshooting support for solaris 2017-10-15 10:59:21 +02:00
Rainer Gerhards
3c84972299 travis: add capability to temporarily use v8-devel package
required due to new-version requirement for next release.
Else we could not run the CI tests.
2017-10-13 18:51:37 +02:00
Rainer Gerhards
6fe8153be9 handle (JSON) variables in case-insensitive way
The variable system inside rsyslog is JSON based (for easy consumption
of JSON input, the prime source of structured data). In JSON, keys
("variable names") are case-sensitive. This causes constant problems
inside rsyslog configurations. A major nit is that case-insensitivity
option inside templates (even if turned on) does not work with JSON
keys because they of inner workings*1.

It is much more natural to treat keys in a case-INsensitive way (e.g.
"$!Key" and "$!key" are the same). We do not expect any real problems
out of this, as key names only differing in case is highly unlikely.
However, as it is possible we provide a way to enable case-sensitivity
via the global(variables.casesensitve="on") global config object.

Note that the default is to do case-insensitive matches. The reason
is that this is the right thing to do in almost all cases, and we do
not envision any problems at all in existing deployments.

*1 Note: case-insensitivity in rsyslog is achieved by converting all
names to lower case. So that the higher speed of strcmp() can be used.
The template option does actually that, convert the template keys to
lower case. Unfortunately, this does not work with JSON, as JSON keys
are NOT converted to lower case.

closes https://github.com/rsyslog/rsyslog/issues/1805
2017-10-13 09:39:56 +02:00
Rainer Gerhards
a80edc0492 testbench: do not spam test log 2017-10-12 16:14:22 +02:00
Rainer Gerhards
0017262e2c testbench: add test for DATAFAIL handling in action object 2017-10-12 13:26:10 +02:00
Rainer Gerhards
c30a882b59 testbench: remove inconsistent omfile test
see also https://github.com/rsyslog/rsyslog/issues/1832
2017-10-12 13:26:10 +02:00
Stephen Workman
0ff332ab87 Remove NULL checks. 2017-10-11 17:19:34 -04:00
Stephen Workman
993f2ca187 Remove use of strftime(), for portability reasons. 2017-10-08 17:50:33 -04:00
Stephen Workman
7b5b6c2295 Use gmtime, and var2Number. 2017-10-05 21:31:26 -04:00
Stephen Workman
8d82d59343 Move formatting code to datetime.c, and update test. 2017-10-05 09:57:19 -04:00
Stephen Workman
2fdb567032 Set executable bit. 2017-10-05 06:25:43 -04:00
Stephen Workman
e6edbbc598 Wip. 2017-10-04 22:08:49 -04:00
Stephen Workman
8391e0fdf1 Initial testing of format_time(). 2017-10-04 13:04:44 -04:00
Rainer Gerhards
98dc68df43 Merge pull request #1785 from PascalWithopf/tls_errorMsg
TLS errmsg more specific when file can not be read
2017-10-04 08:35:33 +02:00
Rainer Gerhards
3d1007ab70 Merge pull request #1803 from rgerhards/i-120
omrelp: fix segfault when rebindinterval parameter is used
2017-10-04 08:30:04 +02:00
Rainer Gerhards
50d10a6113 testbench: add test for omrelp rebind interval paramter 2017-09-29 11:37:38 +02:00
Thomas Deutschmann
023707617c
testbench: Run mmnormalize tests only when mmnormalize module was actually enabled
This commit fixes a regression caused by commit 835e645b73babf1290b691ef2ef137da206f6eff
and will restore the removed if nesting necessary to run mmnormalize tests
only when mmnormalize module was actually enabled.

Bug: https://bugs.gentoo.org/631246
2017-09-24 19:20:08 +02:00
PascalWithopf
d9ba47f52a tls: test for errmsg when certificate is not found
This test is for checking that an error message is put out when
a certificate is missing.
2017-09-21 14:52:18 +02:00
Rainer Gerhards
c5af2f440e Merge pull request #1746 from mrworkman/fix-debugless-build
Fix broken 'debugless' build.
2017-09-12 18:03:45 +02:00
mrworkman
bb60c206f0 Fix broken 'debugless' build. 2017-09-12 08:01:39 -04:00
Rainer Gerhards
fffbcc2ddc Merge pull request #1758 from rgerhards/pr-1633
implement fileoffset metadata
2017-09-12 08:54:09 +02:00
Rainer Gerhards
960bb25902 testbench: download kafka in quiet mode
... otherwise the testbench log is spammed by wget status display.
2017-09-11 12:53:10 +02:00
Rainer Gerhards
17c5df885e travis: do line length check only in some subtests 2017-09-11 12:53:10 +02:00
ab8e59657c testbench: Updated kafka server version from 0.9.0.1 to 0.10.2.1 2017-09-11 10:57:46 +02:00
e5d48d89c0 testbench: Added support to dump kafka / zookeeper server logs on test failure 2017-09-11 10:17:12 +02:00
Rainer Gerhards
0858209381 imfile: adjust offset metadata to give begin offset of file 2017-09-07 17:08:21 +02:00
Rainer Gerhards
090f105e9d testbench: improve queue test diagnostics
this is a bit more verbose, but helps greatly when diagnosing
queue file related issues

closes https://github.com/rsyslog/rsyslog/issues/170 (kind of...)
2017-09-07 09:26:56 +02:00
Derek DiFilippo
2ca18ce169 Issue #1629: remove duplicate content-check (copy/paste error) 2017-09-06 18:16:22 +02:00
Derek DiFilippo
3e7eb75f94 Issue #1629: add basic test for new imfile/fileoffset metadata functionality 2017-09-06 18:16:22 +02:00
Rainer Gerhards
c5a67641f2 Merge pull request #1724 from PascalWithopf/priorityString_test
imtcp: fix usage of priorityString
2017-09-05 18:11:41 +02:00
PascalWithopf
56e3132320 imtcp bugfix: priorityString was not set
The variable priorityString was not used when rsyslog acted as the
server and the defaults were always set. Now the priorityString
is used when specified.

fixes https://github.com/rsyslog/rsyslog/issues/1722
2017-09-05 11:19:29 +02:00
Rainer Gerhards
c22e2d18d4 Merge pull request #1726 from PascalWithopf/i-1718
imptcp/imtcp: include module name in error msg
2017-09-05 10:17:16 +02:00
Jan Gerhards
f9ba3dbe52 mmanon: add support for ipv6
see also https://github.com/rsyslog/rsyslog/issues/1723
closes https://github.com/rsyslog/rsyslog/issues/1614
2017-09-02 11:53:57 +02:00
Jan Gerhards
21d64f3e8a mmanon: rewrite ipv4-anonymization
for more information, see https://github.com/rsyslog/rsyslog/issues/1723

closes https://github.com/rsyslog/rsyslog/issues/1717
closes https://github.com/rsyslog/rsyslog/issues/1720
2017-08-24 10:48:34 +02:00
Rainer Gerhards
1e07622112 Merge pull request #1712 from jgerhards/trim
Rainerscript: add ltrim and rtrim functions
2017-08-21 14:34:47 +02:00
PascalWithopf
842df12678 imptcp: include name of action in error msg
closes https://github.com/rsyslog/rsyslog/issues/1718
2017-08-17 12:08:36 +02:00
Jan Gerhards
994561f8bf testbench: add test for ltrim and rtrim functions 2017-08-14 14:31:15 +02:00
Rainer Gerhards
cbd00f8e2d Merge pull request #1707 from PascalWithopf/i-1093
omfwd, imtcp: add possibility to use priority string
2017-08-08 16:48:02 +02:00