14971 Commits

Author SHA1 Message Date
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
66a269224c
Merge pull request #4780 from rgerhards/ci-es7-params
testbench: adjust ElasticSearch startup parameters
2022-01-17 17:19:00 +01:00
87e3a90d29
testbench: adjust ElasticSearch startup parameters
Newer versions seem to require some new defaults. Maybe this also
helps with some hard-to-explain flakiness in ES test runs.
2022-01-17 15:51:10 +01:00
Rainer Gerhards
320c673d9a
maintain ChangeLog 2022-01-17 15:44:45 +01:00
Rainer Gerhards
b5ecbef73c
Merge pull request #4775 from hsaliak/master
ikmsg: fix EPIPE error check in the /dev/kmsg reader loop
2022-01-17 15:40:50 +01:00
Rainer Gerhards
5e72247cfc
Merge pull request #4779 from rgerhards/ci-no-f33
CI: remove fedora 33 based testing
2022-01-17 15:03:10 +01:00
Rainer Gerhards
90882d52aa
maintain ChangeLog 2022-01-17 12:40:26 +01:00
Rainer Gerhards
58e3715113
Merge pull request #4777 from TheGOro/master
Terminate all tcpsrv threads properly
2022-01-17 12:38:08 +01:00
Rainer Gerhards
f7bfb9b83a
CI: remove fedora 33 based testing
We have some hang conditions solely with Fedora 33, which we do not
see with other Fedora versions. As we already have f 34 inside CI, we
decide to not necessarily analyze this further but rather remove this
environment from CI.

If time permits, we still try to find the root cause, but so far we
are very sure it's not directly in rsyslog.
2022-01-17 10:44:29 +01:00
Gabor Orosz
178a36c9b4 Terminate all tcpsrv threads properly
Graceful shutdown of Rsyslog could lead to segmentation faults when
multiple imtcp inputs are being used. That is because the rest of the
tcpsrv threads are left behind running, while their underlying objects
are being disposed by the main thread as part of the module
de-initialization.

Signed-off-by: Gabor Orosz <goro@goro.io>
2022-01-16 22:56:26 +01:00
Rainer Gerhards
ec242a21fd
Merge pull request #4764 from Cropi/timezone-to-rsconf
Timezone to rsconf
2022-01-16 18:49:21 +01:00
alakatos
3edbe334e7 Move timezone specific variables to rsconf 2022-01-14 15:46:40 +01:00
Kailash Sethuraman
feb6420148 Fixes #4395 by correctly checking for EPIPE.
kmsg is a unique device, which can recover from EPIPE errors.
The original code checked for this, but checked the return value for the libc
read call, which always returns -1 and sets the appropriate errno.

This meant that when an EPIPE error actually happened, the fd was infinitely retried. The 'for loop' was broken out of, but the readikmsg() function is repeatedly called.

Note: there is an additional bug here. The readikmsg function needs better error checking on the fd. I suspect that this was rarely an issue because /dev/kmsg goes truly invalid when the system is actually shutting down.

The fix here is to check the return value as well as the errno.
2022-01-13 13:52:46 -05:00
Rainer Gerhards
dbcef8a0d2
Merge pull request #4760 from Cropi/dynamic-config2-rebased
Move rsyslog global variables to rsconf_t structure
2022-01-13 16:14:26 +01:00
alakatos
321fc76f0f Move rsyslog global parameters to rsconf_t struct 2022-01-13 12:43:21 +01:00
Rainer Gerhards
bd7f48d58c
Merge pull request #4773 from rgerhards/remove-unused-var
cleanup: remove unused variable
2022-01-12 17:47:06 +01:00
Rainer Gerhards
7d2e532d34
cleanup: remove unused variable
Especially as this caused confusion when doing other work inside the code.

see also https://github.com/rsyslog/rsyslog/pull/4760#discussion_r783118550
2022-01-12 15:22:08 +01:00
Rainer Gerhards
1f78612922
Merge pull request #4769 from rgerhards/ci-journal2
CI: cleanup journal test environment
2022-01-10 12:26:05 +01:00
Rainer Gerhards
c116d2bcef
maintain ChangeLog 2022-01-07 13:09:51 +01:00
Rainer Gerhards
6b893a47a0
Merge pull request #4763 from secretnonempty/master
Fix an use-after-free bug in omlibdbi.c
2022-01-07 12:50:45 +01:00
Rainer Gerhards
3dde61a062
CI: cleanup journal test environment
remove unnecessary components - gives slightly better runtime
2022-01-07 10:31:40 +01:00
Rainer Gerhards
0d9c4ad75f
Merge pull request #4768 from rgerhards/ci-systemd
CI: remove unnecessary dependency
2022-01-07 08:24:34 +01:00
Rainer Gerhards
d384cb61b5
CI: remove unnecessary dependency
Especially as this dependency currently causes the check run to fail.
No point in trying to fix it, as it is not needed. So removing is the
most robust option.
2022-01-06 18:46:58 +01:00
Rainer Gerhards
b8d2c321f9
maintain ChangeLog 2022-01-06 18:44:47 +01:00
Rainer Gerhards
af5ab761fa
Merge pull request #4767 from alorbach/pr-issue-4766
omhttp: Fix memory leak in lokirest batchmode
2022-01-06 16:22:28 +01:00
r0b0t
4a072d6c93 Update omlibdbi.c
Fix a use-after-free bug in omlibdbi.c
2022-01-05 22:02:06 -08:00
d0b88c748c omhttp: Fix memory leak in lokirest batchmode
A JSON object was created (valueObj) but not used and also not
released causing a memory leak. This was properly caused by the
initial copy&paste from serializeBatchKafkaRest.

- Also added a valgrind test for lokirest batchmode
  Uncomment "--keep-debuginfo" in testcaseif stack traces
  are incomplete

closes: https://github.com/rsyslog/rsyslog/issues/4766
2022-01-05 22:03:00 +01:00
Rainer Gerhards
d682192b14
Merge pull request #4754 from Cropi/dynamic-config1
Clarify the meaning of loadConf and RunConf
2021-12-21 10:24:39 +01:00
Rainer Gerhards
96ad69b26d
prepare for new scheduled stable release cycle 2021-12-18 16:17:07 +01:00
Rainer Gerhards
5a4130e4f2
prepare vor 8.2112.0 scheduled stable release v8.2112.0 2021-12-16 08:33:49 +01:00
alakatos
66bcd91196 Clarify meaning of loadConf and RunConf 2021-12-15 10:26:52 +01:00
Rainer Gerhards
16967a9a01
maintain ChangeLog 2021-12-15 09:55:23 +01:00
Rainer Gerhards
68d5a4cbca
Merge pull request #4753 from ytlm/update_readme
readme: remove duplicate dependent installation
2021-12-15 09:43:54 +01:00
Rainer Gerhards
d7dc2f1f75
Merge pull request #4745 from Cropi/outchannel-leak
Deallocate outchannel resources in rsconf destructor
2021-12-14 18:07:35 +01:00
Rainer Gerhards
4fea318bcd
Merge pull request #4743 from Cropi/ratelimit-fix
Avoid use of loadConf in favor of runConf in ratelimiting during runtime
2021-12-14 13:25:12 +01:00
Rainer Gerhards
76d37ed43a
Merge pull request #4751 from rgerhards/ci-valgrind
testbench: do not use valgrind --keep-debuginfo=yes by default
2021-12-14 12:41:26 +01:00
ytlm
987d3fc481 readme: remove duplicate dependent installation 2021-12-14 14:37:04 +08:00
Rainer Gerhards
ba9c77c3f7
testbench: do not use valgrind --keep-debuginfo=yes by default
This option is not known by older valgrind versions. As such, it causes
false positives on older platforms. As the option is not necessary
(only helpful for some border cases), we remove it and add a comment
so that it may be enabled when necessary.
2021-12-13 10:01:25 +01:00
alakatos
ab99d68009 Use runConf instead of loadConf in ratelimiting during runtime 2021-12-08 19:36:48 +01:00
alakatos
4fc5ed645a Deallocate outchannel resources in rsconf destructor 2021-11-30 18:15:33 +01:00
Rainer Gerhards
2accad0f45
Merge pull request #4738 from alorbach/pr-issue-4646
imtcp: fix memory leak in afterRun Code
2021-11-30 14:26:25 +01:00
Rainer Gerhards
01996c3aee
Merge pull request #4739 from alorbach/pr-valgrind-stacktrace-fix
testbench: Add --keep-debuginfo=yes to default valgrind parameters.
2021-11-24 12:36:45 +01:00
8fce4ad965 testbench: Add --keep-debuginfo=yes to default valgrind parameters.
This maintains a full stack trace, otherwise can be incomplete in some
cases!
2021-11-24 09:27:20 +01:00
1ac3312e5a imtcp: fix memory leak in afterRun Code
- tcpsrv_etry_t was left in memory, is now freed
- Fix copy&paste error for pszLstnPortFileName init
- Free cnf_params if createInstance init fails

closes: https://github.com/rsyslog/rsyslog/issues/4646
2021-11-24 09:25:28 +01:00
Rainer Gerhards
8c2933ba41
maintain ChangeLog 2021-11-22 09:11:02 +01:00
Rainer Gerhards
03aa23a038
Merge pull request #4728 from VultureProject/faup_upstream
NEW CONTRIB::FFAUP:: URL parser module function using libfaup
2021-11-22 09:03:44 +01:00
frikilax
aeaf1160ed NEW CONTRIB::FFAUP:: URL parser module function using libfaup 2021-11-19 09:26:34 +01:00
Rainer Gerhards
89371a4cbb
Merge pull request #4736 from rgerhards/tb-modernize
testbench: modernize some tests
2021-11-18 09:45:28 +01:00