1157 Commits

Author SHA1 Message Date
PascalWithopf
01feb44bf1 imtcp: add parameter maxFrameSize 2017-04-20 12:58:57 +02:00
Rainer Gerhards
94bba07b7f Merge pull request #1522 from PascalWithopf/octetCountedError
imptcp: fix Segmentation Fault when octet count is too high
2017-04-19 15:44:11 +02:00
PascalWithopf
0381a0de64 imptcp: fix Segmentation Fault when octet count is to high 2017-04-19 13:06:30 +02:00
PascalWithopf
835e645b73 testbench: add tests for mmnormalize 2017-04-18 09:47:58 +02:00
Rainer Gerhards
9f95005ebf Merge pull request #1511 from PascalWithopf/solaris
workaround for solaris testbench
2017-04-13 16:20:55 +02:00
PascalWithopf
1628ef2a37 testbench: workaround for solaris 2017-04-13 14:07:38 +02:00
Rainer Gerhards
d82f54a28c CI: add way to gather all check logs if CI times out "make check"
This can happen under buildbot, and with it we can use the new script
in a follow-on buildbot step. Doesn't work with travis as it
terminates the complete CI run on timeout (no single-step timeout).
2017-04-12 10:37:20 +02:00
Rainer Gerhards
af60b7f9e1 testbench: reduce start-/stop-timeout
The current value (5 minutes) seemed excessevily wrong and should
probably indicate an error in any case. The new value of 2 minutes
should be fairly safe as well.
2017-04-11 15:12:02 +02:00
Rainer Gerhards
8d67c03d45 solaris: fix coding issues 2017-04-11 10:18:42 +02:00
Rainer Gerhards
896c6bde69 Merge pull request #1497 from jgerhards/i1480
imptcp: add new error message functionality and tests
2017-04-05 16:58:23 +02:00
Jan Gerhards
14ff653076 imptcp: add recognition for custom delimiter for truncating error messages 2017-04-05 09:00:24 +02:00
Jan Gerhards
6253435e0a modified imptcp-oversize-display test for clarity
due to an earlier test cycl a test message contained two headers. to avoid confusion, the latter header has beenreplacerd with the letter 'k'.
2017-04-04 15:11:29 +02:00
Jan Gerhards
a636227457 add test for long tcflood without frame delimiter 2017-04-04 13:10:02 +02:00
Jan Gerhards
4eee59f517 fix bug causing tcpflood to have incompatible options 2017-04-04 12:26:50 +02:00
Jan Gerhards
16d2e0da84 imptcp: add functionality to show message and remaining length when truncating messages
closes https://github.com/rsyslog/rsyslog/issues/1480
2017-04-04 11:21:47 +02:00
Rainer Gerhards
7d19c19838 Merge pull request #1414 from jgerhards/newTest
add new test
2017-04-04 11:06:09 +02:00
Rainer Gerhards
203cf82be8 testbench: add support for solaris 2017-04-03 14:14:56 +02:00
Rainer Gerhards
981e7121d8 re-enable building on Solaris 2017-04-03 12:09:09 +02:00
Rainer Gerhards
f3bcab2ef1 Merge pull request #1477 from jvymazal/master
reverted str2num() bSuccess return to be consistent with past behavior
2017-04-03 09:03:22 +02:00
Rainer Gerhards
344715d402 Merge pull request #1458 from BastianStender/network_namespaces
omfwd: add support for network namespaces
2017-04-02 10:43:04 +02:00
Rainer Gerhards
803734c47c Merge pull request #1429 from nbrownus/imptcp-mode
Add ability to set owner/group/access perms for imptcp uds
2017-04-02 10:38:48 +02:00
Thomas Deutschmann
853de91b24
testbench: tcpflood failed to build if RELP support was disabled (2/2)
The previous commit 73e3b7ab for issue #1426 was incomplete and missed
the librelp.h header include.

Gentoo-Bug: https://bugs.gentoo.org/614424
2017-04-01 19:26:08 +02:00
Rainer Gerhards
8ee87e818b Merge pull request #1380 from PascalWithopf/i-625
mmnormalize: add possibility to get rule from string
2017-03-31 14:01:02 +02:00
Pascal Withopf
0de9a5bcd7 mmnormalize: add possibility to get rule from array 2017-03-31 09:30:09 +02:00
Jan Gerhards
2be33580de imptcp: add test for message truncation and fix errormessage 2017-03-29 10:44:14 +02:00
PascalWithopf
e94e8beede omfile: add error if both file and dynafile are set
also adds a test.
closes https://github.com/rsyslog/rsyslog/issues/1346
2017-03-28 14:26:28 +02:00
Nate Brown
ea5f3b8e72 Add ability to set owner/group/access perms for imptcp uds 2017-03-24 16:59:55 -07:00
Jiri Vymazal
8ffd0671da testbench: consistent num2ipv4() behavior 2017-03-22 16:23:53 +01:00
Bastian Stender
df17a40c7f omfwd: add support for network namespaces
Network namespaces are part of the linux kernel since v2.6.24. This
enables forwarding output into a configurable network namespace. E.g.,

action(type="omfwd" networknamespace="my_ns" target="192.168.1.23"
port="10514")

Signed-off-by: Bastian Stender <bst@pengutronix.de>
2017-03-20 14:30:57 +01:00
Rainer Gerhards
8e83d6c280 testbench: improve error reporting in dynstats-related tests 2017-03-20 10:32:02 +01:00
Rainer Gerhards
fe9e51efac travis: make qpid-proton work again
Package libqpid-proton3-dev is no longer available for precise.
As such, we cannot install it and so we disable both the installation
and related tests when running on precise.
2017-03-20 10:31:04 +01:00
Rainer Gerhards
1228a62f28 Merge pull request #1460 from rgerhards/reissue-1441
core/file handling: add new error messages
2017-03-16 10:24:33 +01:00
Rainer Gerhards
cacf865621 core/file handling: add new error messages
Those messages previously went only to the debug log, as due to
design limitations inside the error message subsystem they could
not be emitted at the related code locations. This has changed now,
and so we can improve error reporting.
2017-03-15 17:44:03 +01:00
192ab107f2 imfile: Fixed an issue monitoring wrong files when using multiple imfile inputs
The bug was introduced by the changes for the multilevel wildcard feature
which has been added recently. We have to handle FileCreate events different
if the directory watch is configured or added dynamically.

closes https://github.com/rsyslog/rsyslog/issues/1452
2017-03-08 14:35:19 +01:00
Rainer Gerhards
cd51ae3647 core: enable internal messages at any time
previous code could deadlock if internal messages were issued
inside queue processing code, which effectively limited
error-reporting capabilities. This change makes it possible
to call error messages from any part of the code at any time.
This comes at the price of slightly delayed message output.
2017-03-07 09:27:49 +01:00
Rainer Gerhards
1866afaaf1 Merge pull request #1446 from rgerhards/i-232
testbench/tcpflood: auto-apply silent option during CI runs
2017-03-07 08:44:19 +01:00
Rainer Gerhards
8f5c32c3f4 add new global parameter "umask"
This is equivalent to "$umask" and permits to convert that construct
to new-style config format.

closes https://github.com/rsyslog/rsyslog/issues/1382
2017-03-06 11:35:11 +01:00
Rainer Gerhards
7b98214066 testbench/tcpflood: auto-apply silent option during CI runs
closes https://github.com/rsyslog/rsyslog/issues/232
2017-03-06 10:19:40 +01:00
Rainer Gerhards
a6245790ef Merge pull request #1373 from PascalWithopf/i-1372
pmrfc3164: add tests
2017-03-06 09:04:36 +01:00
Rainer Gerhards
e654c27af4 testbench: do not spam testbench log with output from ps command
ps is used when waiting on startup and spams the test log if
rsyslog takes longer to start up (or fails to do so). This
makes the log hard to read.
2017-03-02 08:20:35 +01:00
Pascal Withopf
e0efb27d15 pmrfc3164: add test for force.TagEndingByColon default Tag 2017-02-28 16:12:10 +01:00
Pascal Withopf
d08f44f7a2 pmrfc3164: add tests 2017-02-28 14:25:27 +01:00
Rainer Gerhards
73e3b7ab2f testbench: tcpflood failed to build if RELP support was disabled
closes https://github.com/rsyslog/rsyslog/issues/1426
2017-02-23 13:19:08 +01:00
Rainer Gerhards
ae20a4d1e9 Revert "Sanitizer longmsg fix2" 2017-02-20 10:21:15 +01:00
Rainer Gerhards
328ddfbae9 Merge pull request #1425 from rgerhards/sanitizer-longmsg-fix2
Sanitizer longmsg fix2
2017-02-20 10:19:36 +01:00
Rainer Gerhards
fa5b2515b7 Merge pull request #1387 from rgerhards/relp-msg-loss-experimental
Relp msg loss experimental
2017-02-17 15:06:53 +01:00
Rainer Gerhards
602181d6f2 testbench: add test for oversize RELP msg w/ control chars 2017-02-16 18:54:09 +01:00
Jan Gerhards
bd2b676c9e add new test to check if es_str2num (in libestr) handles empty strings
correctly. Not yet in use, but will be useful in later on.
2017-02-13 12:29:29 +01:00
Jan Gerhards
a0ff0075d1 testbench: add testcase empty string for num2ipv4 function
see https://github.com/rsyslog/rsyslog/issues/1412
2017-02-13 10:44:34 +01:00
Rainer Gerhards
3d0656e752 Merge pull request #1410 from jgerhards/i1322
add num2ipv4 function and test
2017-02-13 08:36:21 +01:00