15021 Commits

Author SHA1 Message Date
Rainer Gerhards
39a773b986
Merge pull request #4839 from rgerhards/ci-buildbot-remove-docker
CI: move docker worker to github action
2022-04-01 09:06:43 +02:00
Rainer Gerhards
f20324f447
CI: move docker worker to github action
This makes things a bit more reliable and save us much-needed time
as we want to minimize our maintenance of the docker farm.
2022-03-31 15:24:34 +02:00
Rainer Gerhards
7fde0553e5
Merge pull request #4806 from rgerhards/script-compare-tests
testbench: add tests for rscript comparison operations
2022-03-31 12:57:05 +02:00
Rainer Gerhards
af02203dee
maintain ChangeLog 2022-03-31 12:38:22 +02:00
Rainer Gerhards
f6e5fd653f
Merge pull request #4833 from zy1306/order/doHUP/processImInternal
rsyslogd: adjust the order of doHUP() and processImInternal()
2022-03-31 12:34:09 +02:00
Rainer Gerhards
71b81626ef
testbench: add tests for rscript comparison operations 2022-03-31 10:16:27 +02:00
Rainer Gerhards
46c821bd2a
maintain ChangeLog 2022-03-31 09:32:02 +02:00
Rainer Gerhards
2e86607be9
Merge pull request #4832 from Cropi/omfilehardened-compilation
Add missing include to fix compilation error, resolves #4827
2022-03-30 17:01:25 +02:00
Rainer Gerhards
8a94aec1ae
Merge pull request #4830 from miztake/prototype
Fix message typo when pthread_create fails in KSI-LS12 support library
2022-03-30 15:53:55 +02:00
Rainer Gerhards
e1af01276c
Merge pull request #4831 from Cropi/parser-list
Move the parser directive to the main config
2022-03-30 15:42:49 +02:00
Rainer Gerhards
b0a92f34f0
Merge pull request #4835 from rgerhards/tb-fix-github-solaris
testbench: change git access protocol to cover github change
2022-03-30 11:17:13 +02:00
Rainer Gerhards
2387c248f3
testbench: change git access protocol to cover github change
github disabled anon access via git protocol, so we need to adjust
this to https

no functional change
2022-03-28 10:11:42 +02:00
Yun Zhou
857f77906f rsyslogd: adjust the order of doHUP() and processImInternal()
After call doHUP(), probably there is a internal log in the list. However, it
will not be wrote out immediately, because the mainloop will be blocked at
pselect in wait_timeout() until a long timeout or next message occur.
More deadly, the log may be lost if the deamon exits unexpectedly.

We might as well put processImInternal() after doHUP(), so that the message
will be flushed out immediately.

Fixes: 723f6fdfa6(rsyslogd: Fix race between signals and main loop timeout)
Signed-off-by: Yun Zhou <yun.zhou@windriver.com>
2022-03-24 16:50:43 +08:00
alakatos
aaad6623be Add missing include to fix compilation error, resolves #4827 2022-03-23 13:16:02 +01:00
alakatos
452f55efa0 Move the parser directive to the main config 2022-03-23 10:07:53 +01:00
MIZUTA Takeshi
988c3c2a67 Fix message typo when pthread_create fails in KSI-LS12 support library 2022-03-22 16:59:24 +09:00
Rainer Gerhards
53fb41a1eb
maintain ChangeLog 2022-03-16 12:51:36 +01:00
Rainer Gerhards
b0435d5e89
Merge pull request #4791 from Cropi/dynamic-config-queue
Make the main message queue part of the config
2022-03-16 12:48:22 +01:00
Rainer Gerhards
408fa5e468
Merge pull request #4815 from miztake/prototype
Don't refer to errno when the pthread library fails
2022-03-16 12:42:26 +01:00
Rainer Gerhards
b4de264582
Merge pull request #4811 from sarroutbi/max_error_file_size
Add option to limit error file to configured size
2022-03-07 12:41:31 +01:00
Rainer Gerhards
cb73734c78
maintain ChangeLog 2022-03-07 11:43:44 +01:00
Rainer Gerhards
d669f3bb34
Merge pull request #4812 from Cropi/maxline-fix
glblGetMaxLine() fix when config not yet exists, fixes #4810
2022-03-07 11:39:56 +01:00
Sergio Arroutbi
f64ef442d5 Add option to limit error file to configured size
action.errorfile.maxsize has been added to enable
option to limit the amount of bytes dumped to
configured errorfile

fixes #4733

Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
2022-03-03 14:13:25 +01:00
MIZUTA Takeshi
0b830970c2 Don't refer to errno when the pthread library fails
When the pthread library fails, errno is referenced even though errno is not set.
Fix to refer to the return code of the pthread library instead of errno.
2022-03-03 10:34:54 +09:00
alakatos
5caa989ce2 glblGetMaxLine() fix when config not yet exists, fixes #4810 2022-03-01 14:36:16 +01:00
alakatos
452b62b4a4 Make the main message queue part of the config 2022-03-01 09:56:39 +01:00
Rainer Gerhards
8c4380bdc6
maintain ChangeLog 2022-02-18 17:17:15 +01:00
Rainer Gerhards
96b0197a4a
Merge pull request #4805 from rgerhards/regression-2202
regression fix: script string comparison did not work correctly
2022-02-18 17:16:21 +01:00
Rainer Gerhards
b07b45bc17
regression fix: script string comparison did not work correctly
In rscript, comparison operations on strings did not work correctly
and returned false results. This is cause by a regression in commit
5cec5dd634e0. While it fixed number comparisons, it introduced new
problems in string comparisons, which were not present before. Note
that most items in rsyslog are strings, so this can actually cause
some problems.
2022-02-18 15:08:26 +01:00
Rainer Gerhards
eb4011ab3d
prepare for new scheduled stable release schedule 2022-02-17 10:56:03 +01:00
Rainer Gerhards
304a6059e9 Merge branch 'v8-stable' 2022-02-17 10:55:04 +01:00
Michael Biebl
6569133c75
Typo fixes (#4801)
* typo fix: ambigious -> ambiguous

* typo fix: aquire -> acquire

* typo fix: assgined -> assigned

* typo fix: cancelation -> cancellation

* typo fix: childs -> children

* typo fix: configuraton -> configuration

* typo fix: delemiter -> delimiter

* typo fix: forwardig -> forwarding

* typo fix: initializiation -> initialization

* typo fix: intializing -> initializing

* typo fix: lengh -> length

* typo fix: mesage -> message

* typo fix: occured -> occurred

* typo fix: occurence -> occurrence

* typo fix: paramter -> parameter

* typo fix: remaing -> remaining

* typo fix: resetted -> reset

* typo fix: suppored -> supported

* typo fix: Sytem -> System

* typo fix: uncommited -> uncommitted

* typo fix: depricated -> deprecated

* typo fix: stoping -> stopping

* type fix: allow to -> allow one to
2022-02-17 10:54:12 +01:00
Rainer Gerhards
de068aa22c
prepare for 8.2022.0 release v8.2202.0 2022-02-14 17:41:29 +01:00
Rainer Gerhards
8ee3194b4c
maintain ChangeLog 2022-02-14 17:35:55 +01:00
Rainer Gerhards
92f2fbabdc
Merge pull request #4798 from mmatsuya/inotify-rm-watch-inode-change
imfile: Remove inotify watch descriptor on inode change detected
2022-02-14 17:31:24 +01:00
Rainer Gerhards
d6d8e4aa53
Merge pull request #4800 from Cropi/dynamic-config-iActionNbr
Make action counter part of the config
2022-02-14 17:18:44 +01:00
alakatos
6f7347342a Make action counter part of the config 2022-02-11 11:48:01 +01:00
Masahiro Matsuya
46c79edc53 imfile: Remove inotify watch descriptor on inode change detected 2022-02-09 16:36:24 +09:00
Rainer Gerhards
f4a7733a96
Merge pull request #4762 from inahga/inahga-ompgsql-conninfo
ompgsql: allow connection params via connection string
2022-02-08 12:27:25 +01:00
Rainer Gerhards
94b467b3ee
Merge pull request #4690 from rgerhards/es7-test
testbench: restore original order of ES test execution
2022-02-04 17:54:33 +01:00
Rainer Gerhards
1a403f987b
testbench: restore original order of ES test execution
The order of execution was changed to a less optimal (more startups,
thus slower) order to work-around a testbench issue. This has been
fixed and so we can restore the original order.
2022-02-04 16:18:22 +01:00
Rainer Gerhards
df166eaa1d
Merge pull request #4793 from rgerhards/i4770-tests
testbench: test cases for rscript comparisons
2022-02-04 15:56:00 +01:00
Rainer Gerhards
439b7ec0c0
Merge pull request #4786 from alorbach/pr-issue-4784
testbench: adapt contentcheck for tlscommands tests
2022-02-04 15:55:43 +01:00
Rainer Gerhards
7836d298b5
testbench: test cases for rscript comparisons
This covers failure cases from practice which were not yet covered.

see also: https://github.com/rsyslog/rsyslog/issues/4770
2022-02-04 14:57:17 +01:00
Rainer Gerhards
36d70a00fd
maintain ChangeLog 2022-02-04 14:56:57 +01:00
Rainer Gerhards
688c425523
Merge pull request #4789 from rgerhards/i4770alt
rscript: literal numbers were not compared correctly
2022-02-04 14:55:39 +01:00
Rainer Gerhards
34c40fbba3
maintain ChangeLog 2022-02-04 09:23:56 +01:00
Rainer Gerhards
d28a59739b
Merge pull request #4795 from alorbach/pr-issue-4794
omelasticsearch: Fix indexSuccess impstats counter in bulkmode
2022-02-04 09:22:17 +01:00
504cc9fba3 omelasticsearch: Fix indexSuccess impstats counter in bulkmode
When bulkmode is enabled, and a batch was processed without any
failures (errors is false), the code that increments the indexSuccess
impstats counter was never reached. As fix, we obtain the numitems
first and add them to the indexSuccess impstats counter if
errors is false.

This fix may solve some of the random elasticsearch testbench failures.

closes: https://github.com/rsyslog/rsyslog/issues/4794
2022-02-03 15:57:56 +01:00
Rainer Gerhards
5cec5dd634
rscript: literal numbers were not compared correctly
This problem occurred when numbers were used in rsyslog.conf in
the set statement, e.g.

set $nbr = 1234;

In this case, during comparisons, the number was actually interpreted
as a string with digits. Thus numerical comparisons lead to unexpected
results. Even more so, as in other places of the code they were
treated as native numbers.

This is now fixed. We cannot outrule that this causes, in border cases,
change of behavior to existing configs. But it is unlikely and the
previous behaviour was a clear bug and very unintuitive. This in our
opinion it is justified to risk a breaking change for an expected
very minor subset of installations, if any such exists at all.

The fix was combined with code refactoring. We did this, because
the fix itself would have been quite hard to read, and the need
for refactoring became obvious.

closes https://github.com/rsyslog/rsyslog/issues/4770
2022-02-02 19:04:45 +01:00