| 1 |
-------------------------------------------------------------------------------------- |
| 2 |
Scheduled Release 8.2604.0 (aka 2026.04) 2026-04-21 |
| 3 |
|
| 4 |
IMPORTANT FOR MAINTAINERS |
| 5 |
- this version very strongly depends on YAML - we highly recommend to |
| 6 |
ADD LIBYAML TO PACKAGE BUILD. If libyaml is not available, rsyslog builds |
| 7 |
but is missing many important features. The ability to build without |
| 8 |
libyaml is mainly introduced as a capability for outdated systems. |
| 9 |
- the doc build process changed again in hope to make it more stable. |
| 10 |
it was verified to work against Debian and other distros as good |
| 11 |
as we could, still there may be some unexpected isuses. |
| 12 |
|
| 13 |
- 2026-04-17: overall hardening of components |
| 14 |
- 2026-04-20: queue: address potential segfault on startup |
| 15 |
original report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1031360 |
| 16 |
This was only partly addressed in previous hardening |
| 17 |
- 2026-04-17: imhttp: refactor to support additional auth methods |
| 18 |
Feature-wise API key authentication was added. We may need other |
| 19 |
authentication methods in the future, as such the module has been |
| 20 |
generally refactored. This is also prep work for a future potential |
| 21 |
mode where imhttp may accept request from Elastic Agent, with imhttp |
| 22 |
acting as a mock ElasticSearch instance. This can be useful for projects |
| 23 |
which want to do message enrichment and "drop noise" decisions before |
| 24 |
this hits the backend. |
| 25 |
- 2026-04-15: omazuredce: add gzip request compression support |
| 26 |
Thanks to Jan Kängsepp for implementing the new module. |
| 27 |
- 2026-04-15: omelasticsearch fix: port detection for IPv6 server addresses |
| 28 |
The computeBaseUrl() function used strchr(host, ':') to detect whether |
| 29 |
a port was already embedded in the server string. Since IPv6 addresses |
| 30 |
contain colons, this always matched, causing serverport to never be |
| 31 |
appended. Fix by looking for ':' only after the closing ']' when the |
| 32 |
host is in bracket notation. |
| 33 |
Thanks to Attila Lakatos for the patch. |
| 34 |
- 2026-04-14: omrelp: use stable data in librelp callbacks |
| 35 |
The omrelp workaround now keeps callback logging on shared instance |
| 36 |
data instead of worker-lifetime state. A regression test covers a |
| 37 |
partial-session shutdown path, and the helper script was added to |
| 38 |
reproduce the failure on older Python interpreters. |
| 39 |
Closes https://github.com/rsyslog/rsyslog/issues/6547 |
| 40 |
- 2026-04-14: Alpine compile check CI and musl resolver support |
| 41 |
Alpine builds now run in the compile matrix, and omfwd can use the |
| 42 |
portable resolver path when musl does not provide the glibc-style |
| 43 |
res_n* APIs. The configure probe was tightened so the fallback links |
| 44 |
cleanly. |
| 45 |
- 2026-04-13: runtime: move watched ratelimnt reloads into main loop |
| 46 |
Watched policy reloads now run from the main loop via the new |
| 47 |
rswatch helper. mmjsontransform gained policyWatch and |
| 48 |
policyWatchDebounce, and the feature ships with docs plus YAML and |
| 49 |
debounce regression coverage. |
| 50 |
- 2026-04-13: mmutf8fix: also fix invalid UTF-8 in RFC 5424 structured data |
| 51 |
Structured-data values are now sanitized as well, so invalid UTF-8 |
| 52 |
no longer leaks through to downstream consumers. Thanks to |
| 53 |
ca.mathieu for the patch. |
| 54 |
- 2026-04-13: ratelimit: keep TCP batch processing on drops |
| 55 |
TCP inputs now continue batching after ratelimit drops or helper |
| 56 |
errors instead of treating them as fatal submit failures. |
| 57 |
- 2026-04-13: imuxsock: bound per-pid ratelimiter cache |
| 58 |
Per-PID ratelimiter state is now pruned and capped so local-socket |
| 59 |
rate limiting cannot grow unbounded over time. |
| 60 |
- 2026-04-13: omfwd: add num.connects statistic for TCP connection tracking |
| 61 |
The omfwd action now exports a num.connects counter for |
| 62 |
connection-oriented forwarding, and the module documentation |
| 63 |
describes the new statistic. Thanks to sagsango for the patch. |
| 64 |
- 2026-04-12: omhttp: harden payload length handling |
| 65 |
Oversized omhttp payloads are now rejected explicitly instead of |
| 66 |
relying on narrowing conversions inside the send and compression |
| 67 |
helpers. |
| 68 |
- 2026-04-12: imtcp: harden limit validation and worker shutdown |
| 69 |
Invalid frame, session, and listener limits are rejected during |
| 70 |
config loading, and failed worker startups are skipped during |
| 71 |
shutdown. |
| 72 |
- 2026-04-08: ratelimit: watch YAML policy files with debounce |
| 73 |
policyWatch and policyWatchDebounce now reload YAML-backed ratelimit |
| 74 |
policies automatically when inotify is available, while unsupported |
| 75 |
builds keep the HUP-only behavior. |
| 76 |
Closes https://github.com/rsyslog/rsyslog/issues/6599 |
| 77 |
- 2026-04-04: testbench: rewrite dirty shutdown recovery test |
| 78 |
The old daqueue dirty-shutdown test depended on a narrow timing window |
| 79 |
and treated an empty spool directory as the only valid recovery |
| 80 |
outcome. That no longer matches current queue corruption handling, so |
| 81 |
CI could fail even when rsyslog behaved correctly. |
| 82 |
The test now accepts both successful replay and safe quarantine. |
| 83 |
- 2026-04-04: imfile/ci: enable imfile tests in ARM CI and fix arm64 fallout |
| 84 |
Enabling imfile coverage on ARM exposed two arm64 follow-up problems. The |
| 85 |
impstats crash in imfile-statistics was caused by a generic stringbuf off-by-one |
| 86 |
when a finalized cstr lands exactly on the allocation boundary, and the |
| 87 |
rename-while-stopped test could shut rsyslog down before startup processing had |
| 88 |
made the renamed-file backlog observable. |
| 89 |
- 2026-04-04: imjournal: fix for an exoctic bug that could lead to looping |
| 90 |
Under some extreme conditions, imjournal could run in a 100% CPU load loop. |
| 91 |
This has now been fixed. We assume very low practical relevance and never |
| 92 |
had any bug reports even remoteloy showing into that direction. |
| 93 |
- 2026-04-02: testbench: add some (new) unit tests and plumbing |
| 94 |
There is an initial set, which can be expanded. The idea is to get a small |
| 95 |
deterministic set of high-profile component unit tests which can aid local |
| 96 |
agentic coding verification without the full testbench. Full testbench run |
| 97 |
is very expensive, so catching issues early is useful. |
| 98 |
- 2026-04-02: portability: remove bash "source" bash-ism accross the project |
| 99 |
- 2026-03-31: build: require --enable-openssl if imdtls or omdtls is used |
| 100 |
The DTLS modules (imdtls and omdtls) depend on the OpenSSL network |
| 101 |
stream driver. Previously, the build would succeed in a broken |
| 102 |
state (missing lmnsd_ossl.la) if OpenSSL support was not also |
| 103 |
explicitly enabled. |
| 104 |
closes: https://github.com/rsyslog/rsyslog/issues/5339 |
| 105 |
- 2026-03-30: mmjsontransform: add YAML policy preprocessing |
| 106 |
mmjsontransform can now load a YAML policy file to rename or drop JSON |
| 107 |
keys before flatten/unflatten processing. Policy files are documented |
| 108 |
and reloaded on HUP when they change. |
| 109 |
- 2026-03-30: distribution tarballs no longer ship .gitignore files |
| 110 |
Source tarballs should not impose repository ignore rules on downstream |
| 111 |
packaging trees. This was a problem e.g. in Debian packaging. |
| 112 |
closes: https://github.com/rsyslog/rsyslog/issues/6575 |
| 113 |
- 2026-03-30: omhttps: optimize connection handling |
| 114 |
This improves curl object handling and increases performance. |
| 115 |
Thanks to github user shinigami35 for the patch. |
| 116 |
- 2026-03-26: feat: add YAML as an alternative configuration format |
| 117 |
rsyslog now accepts .yaml / .yml files as a full alternative to |
| 118 |
RainerScript configuration. Whenever a .yaml or .yml file is |
| 119 |
referenced (e.g. via $IncludeConfig or as the main config), it is |
| 120 |
routed through the new yamlconf loader instead of the bison/flex |
| 121 |
parser. RainerScript and YAML configurations may coexist. |
| 122 |
- 2026-03-25: gtls: check CRL expiration, reject connections with expired CRL |
| 123 |
GnuTLS silently ignores expired CRLs -- it loads them into credentials |
| 124 |
without checking the validity period. This means rsyslog kept accepting |
| 125 |
TLS connections even when the configured CRL file had expired, unlike |
| 126 |
the OpenSSL driver which rejects them via X509_V_ERR_CRL_HAS_EXPIRED |
| 127 |
in the verify callback. This has now been fixed. |
| 128 |
Thanks to Attila Lakatos for the patch. |
| 129 |
- 2026-03-18: omazuredce: add Azure Monitor output module |
| 130 |
This adds a documented Azure Monitor output path so rsyslog can |
| 131 |
ship events to Azure-hosted observability workflows. It also makes |
| 132 |
the module easier to review and iterate on as a project feature. |
| 133 |
Thanks to Jan Kängsepp for implementing the new module. |
| 134 |
- 2026-03-16: rpm: packaging overhaul, CI job, and review fixes |
| 135 |
- Add package_build_rpm CI job (Rocky Linux 8, mock, EPEL 8) |
| 136 |
- Add devtools/run-rpm-build.sh for CI RPM builds via mock |
| 137 |
- Add packaging/rpm/ with build-rpms.sh, config.sh, mock configs |
| 138 |
- Add packaging/rpm/rpmbuild/ (SPECS, SOURCES) for rsyslog and deps |
| 139 |
- Main spec: rsyslog-v8-stable.spec (EL8/EL9, RHEL 7 dropped) |
| 140 |
- qpid-proton tarballs as Source5/Source6 with SHA256 checksums |
| 141 |
- libfastjson4 Source0: GitHub refs/tags/v%{version} URL |
| 142 |
- build-rpms.sh: atomic downloads, GPG --batch --pinentry-mode loopback |
| 143 |
- Fix duplicate changelog NVR 8.2008.0-2 -> 8.2008.0-3 (Sep 29 2020) |
| 144 |
- .gitignore: root-anchored /build-result/ |
| 145 |
- doc/BUILDS_README.md: document why pip is needed for RPM Sphinx build |
| 146 |
closes: https://github.com/rsyslog/rsyslog/issues/6584 |
| 147 |
- 2026-03-16: github: assign maintainers to CODEOWNERS coverage |
| 148 |
Ensure GitHub code owner review applies consistently to repository |
| 149 |
metadata, CI, build tooling, and the default source tree. |
| 150 |
Security-sensitive paths now require review from the listed |
| 151 |
maintainers when branch protection enforces code owner approval. |
| 152 |
- 2026-03-16: tls: add native post-quantum guidance and tests |
| 153 |
Native post-quantum TLS support should be usable and testable on newer |
| 154 |
distro baselines without adding provider-mode compatibility work for |
| 155 |
older platforms. |
| 156 |
Rsyslog now has native-PQ smoke tests, clearer TLS diagnostics, updated |
| 157 |
CI baselines and helper images, and a new post-quantum tutorial for |
| 158 |
supported distros. |
| 159 |
- 2026-03-16: ci: upgrade RPM CI from Rocky Linux 8 / EPEL-8 to Rocky Linux 9 / EPEL-9 |
| 160 |
Align CI with current Rocky Linux and EPEL versions for ongoing |
| 161 |
support and security. |
| 162 |
Impact: |
| 163 |
RPM build job and mock defaults now target EL9; artifact names change. |
| 164 |
Before: Rocky Linux 8 container, epel-8 repo, powertools, epel-8-x86_64. |
| 165 |
After: Rocky Linux 9 container, epel-9 repo, crb, epel-9-x86_64. |
| 166 |
- 2026-03-16: doc: Fix Mermaid diagrams and unify build output to build/ |
| 167 |
Mermaid diagrams fail on GitHub Pages PR previews and when opening |
| 168 |
built HTML via file://. ES module imports use wrong paths and CORS |
| 169 |
blocks file://. Two build paths (build/ vs build/html/) caused |
| 170 |
confusion and inconsistent fix application. |
| 171 |
Impact: |
| 172 |
Doc build output path unified; Mermaid diagrams render in offline, |
| 173 |
online, and RPM builds. |
| 174 |
- 2026-03-16: CI: added deterministic project policy checks |
| 175 |
The idea is to identify bad patches that do not follow project best |
| 176 |
practices. Among others, the hope is that this can identify "AI Slop" as it |
| 177 |
often violates policies. |
| 178 |
Note that we intentionally use deterministic (non-AI) checks. A similiar |
| 179 |
check via AI is also added to the repo, but it is no artifact. |
| 180 |
All of these checks are experimental. |
| 181 |
- 2026-02-27: ratelimit: wire ratelimit.name into remaining modules |
| 182 |
Why: Commit 3ee31a8d0 added shared named ratelimit support |
| 183 |
(ratelimit.name + ratelimitNewFromConfig) but only wired it |
| 184 |
into imtcp, imptcp, and imudp. Seven modules with existing |
| 185 |
ratelimit.interval/ratelimit.burst support were left without |
| 186 |
the ability to reference shared ratelimit() objects. |
| 187 |
Impact: Adds ratelimit.name parameter to omfwd, |
| 188 |
omelasticsearch, omhttp, imhttp, imjournal, imklog, and |
| 189 |
imuxsock. Existing configurations remain unchanged. |
| 190 |
Before: These seven modules could only use inline |
| 191 |
ratelimit.interval/ratelimit.burst parameters. |
| 192 |
After: All modules can now reference shared ratelimit() |
| 193 |
configuration objects via ratelimit.name. |
| 194 |
Technical Overview: |
| 195 |
For each module, the same pattern from the imudp reference |
| 196 |
implementation is applied: |
| 197 |
- Add uchar *pszRatelimitName to config struct |
| 198 |
- Add ratelimit.name to cnfparamdescr |
| 199 |
- Change interval/burst defaults to -1 (sentinel) |
| 200 |
- Parse ratelimit.name in config handler |
| 201 |
- Add mutual-exclusivity check (name vs interval/burst) |
| 202 |
- Branch ratelimiter creation on pszRatelimitName: |
| 203 |
if set, call ratelimitNewFromConfig(); else legacy path |
| 204 |
- Free pszRatelimitName in destructor |
| 205 |
imuxsock is the most complex: it supports both per-socket |
| 206 |
ratelimit.name and syssock.ratelimit.name, with the |
| 207 |
per-source hashtable ratelimiter path also updated. |
| 208 |
imklog uses legacy parameter names (ratelimitinterval, |
| 209 |
ratelimitburst) but the new parameter uses the dotted |
| 210 |
form (ratelimit.name) for consistency. |
| 211 |
Each module receives a parameter doc page, module doc |
| 212 |
update, and a config-validation test. |
| 213 |
- 2026-02-27: omusrmsg: add ratelimit support |
| 214 |
Add ratelimit.interval, ratelimit.burst, and ratelimit.name parameters |
| 215 |
to omusrmsg. This prevents scenarios where emergency message floods |
| 216 |
can overwhelm user terminals. |
| 217 |
closes: https://github.com/rsyslog/rsyslog/issues/4547 |
| 218 |
- 2026-02-27: imrelp: add ratelimit support (interval, burst, name) |
| 219 |
Wire ratelimit.interval, ratelimit.burst, and ratelimit.name into imrelp, |
| 220 |
following the established pattern from imtcp/imptcp/imudp. When |
| 221 |
ratelimit.name is set, the listener uses a shared named rate limiter |
| 222 |
(with per-source support). Local interval/burst and named rate limiters |
| 223 |
are mutually exclusive. |
| 224 |
- 2026-02-26: omkafka: add poll thread; fix races and deprecated usleep |
| 225 |
When statistics.interval.ms is enabled, librdkafka queues stats |
| 226 |
callbacks until rd_kafka_poll() is called. Idle actions can go |
| 227 |
long periods without polling, causing queue buildup and memory |
| 228 |
growth. Additionally, the stop flag for the new thread lacked |
| 229 |
synchronization, and a poller startup failure could leave bIsOpen |
| 230 |
in an inconsistent state. |
| 231 |
Stats callbacks are now drained continuously even when no new |
| 232 |
messages arrive. Thread shutdown is race-free. Action startup |
| 233 |
succeeds even when the optional poll thread cannot start. |
| 234 |
Deprecated usleep() is replaced by rsyslog's srSleep() wrapper. |
| 235 |
- 2026-02-26: omotel: add native protobuf encoding (http/protobuf) |
| 236 |
The omotel module only supported JSON encoding for OTLP/HTTP |
| 237 |
exports. Native protobuf encoding produces smaller payloads with |
| 238 |
lower serialization overhead, which is the preferred transport for |
| 239 |
high-volume OpenTelemetry deployments. |
| 240 |
Users can now set protocol="http/protobuf" to use binary |
| 241 |
protobuf encoding. The default remains "http/json". A pre-existing |
| 242 |
bug in JSON timestamp encoding (timeUnixNano/observedTimeUnixNano |
| 243 |
emitted as integers instead of strings) is also fixed. |
| 244 |
- 2026-02-25: CI: improve doc correctness checks (deterministic) |
| 245 |
- 2026-02-25: doc: fixed doc link issues |
| 246 |
Some hyperlinks were invalidly generated and resulted in 404 errors |
| 247 |
- 2026-02-24: rsyslogd: send systemd watchdog keepalive pings |
| 248 |
Some deployments rely on systemd watchdog restarts when the daemon |
| 249 |
becomes unresponsive. rsyslogd announced readiness but never sent |
| 250 |
watchdog heartbeats. |
| 251 |
When WatchdogSec is configured, rsyslogd now sends periodic |
| 252 |
WATCHDOG=1 notifications while running. |
| 253 |
- 2026-02-23: queue: further harden diskqueue recovery and shutdown race handling |
| 254 |
This combines two related hardening steps for disk queue reliability: |
| 255 |
- robust corruption detection/recovery handling in disk queue state/file validation |
| 256 |
- worker startup cancellation-race closure that could lead to shutdown wait loops |
| 257 |
Impact: |
| 258 |
- disk queue scan now rejects out-of-range segment sequence numbers early and |
| 259 |
reports corruption deterministically. |
| 260 |
- worker startup no longer exposes a cancellation window before cleanup |
| 261 |
registration. |
| 262 |
- test/CI diagnostics preserve timeout backtraces (gdb) in ARM jobs and print |
| 263 |
them to stdout for post-mortem debugging. |
| 264 |
- test script cleanup removes redundant operations and uses a macOS-friendlier |
| 265 |
segment enumeration path. |
| 266 |
- 2026-02-23: runtime: close worker-start cancellation race |
| 267 |
Worker shutdown cancellation can race with worker startup. In wtpWorker(), |
| 268 |
state was published as WRKTHRD_RUNNING before the cancellation cleanup |
| 269 |
handler was registered. If pthread_cancel() hit in that window, cleanup could |
| 270 |
be skipped and the worker remained visible as RUNNING. |
| 271 |
Impact: |
| 272 |
Prevents shutdown hangs where wtiCancelThrd() loops waiting for a worker that |
| 273 |
was canceled before its cleanup path could transition state to WAIT_JOIN. |
| 274 |
- 2026-02-22: ci: enable core dumps in ASAN builds |
| 275 |
AddressSanitizer by default sets disable_coredump=1, which prevents |
| 276 |
core file generation even when abort() is called. This commit adds |
| 277 |
disable_coredump=0 to ASAN_OPTIONS in both macOS and ARM64 workflows |
| 278 |
to ensure core dumps are generated on crashes. |
| 279 |
This allows diag.sh to find and analyze core files for better |
| 280 |
debugging of test failures in ASAN-enabled CI jobs. |
| 281 |
- 2026-02-18: build: fix linking issue with libyaml |
| 282 |
When building rsyslogd with libyaml support, the library was not being |
| 283 |
explicitly linked. This implementation adds $(LIBYAML_LIBS) to |
| 284 |
rsyslogd_LDADD to resolve undefined references during linking, |
| 285 |
particularly in static or cross-compilation scenarios. |
| 286 |
Thanks to Rudi Heitbaum for bringing up this isuse and suggesting the fix. |
| 287 |
Fixes https://github.com/rsyslog/rsyslog/issues/6563 |
| 288 |
- 2026-02-18: doc: add support for optionally using Google Analytics |
| 289 |
-------------------------------------------------------------------------------------- |
| 290 |
Scheduled Release 8.2602.0 (aka 2026.02) 2026-02-17 |
| 291 |
- NEW DEPENDENCES: names vary by distribution |
| 292 |
- libyaml-dev |
| 293 |
- libprotobuf-c-dev (module dependency) |
| 294 |
- libsnappy-dev (module dependency) |
| 295 |
- protobuf-c-compiler (build dependency) |
| 296 |
- DEFAULT CHANGE: internal ratelimiter now by default set to |
| 297 |
500 messages/5s vs previous default of 100 messages/60s. This |
| 298 |
is to prevent spamming the log to much in extreme cases. For some |
| 299 |
users, this may be too low and need to be adjusted. We excect this |
| 300 |
to be an exotic case, thus the change of default. |
| 301 |
- NEW DOC generation now via autotools integrated Makefile.am. This may |
| 302 |
require changes to the doc build system (not in all cases, but it needs |
| 303 |
to be checked). |
| 304 |
|
| 305 |
- overall improved documentation via a large set of topic updates. |
| 306 |
|
| 307 |
- 2026-02-12: runtime: iterate ptcp addresses and validate bind device |
| 308 |
Some connect failures were caused by stopping after the first resolved |
| 309 |
address and by repeating unsupported SO_BINDTODEVICE handling per address. |
| 310 |
This made retries less robust and error reporting less clear. |
| 311 |
Ptcp connect now tries all resolved addresses and fails fast with a |
| 312 |
specific unsupported-value error when a bind device is configured on |
| 313 |
platforms without SO_BINDTODEVICE. |
| 314 |
closes https://github.com/rsyslog/rsyslog/pull/5305 |
| 315 |
- 2026-02-08: CI: added test for VictoriaLogs via omhttp |
| 316 |
This also verifies that current rsyslog can actually push to |
| 317 |
VictoriaLogs via their native interface. The new test also sets |
| 318 |
stage for upcoming enhancements and ensure omhttp changes will not |
| 319 |
break the VictoriaLogs functionality. |
| 320 |
- 2026-02-08: curl modules: pass long literal to CURLOPT_POST |
| 321 |
Why: |
| 322 |
Debian builds against newer curl headers fail with -Werror because |
| 323 |
CURLOPT_POST requires a long argument and int literals trigger |
| 324 |
attribute warnings. |
| 325 |
Impact: |
| 326 |
Fixes compile failures in omhttp, omelasticsearch, and omclickhouse |
| 327 |
with strict warning settings. |
| 328 |
closes https://github.com/rsyslog/rsyslog/issues/6516 |
| 329 |
- 2026-02-07: omhttp: reuse reply buffer with cap and safer sizing |
| 330 |
This improves performance by avoiding frequent alloc/free of the |
| 331 |
response buffer and bounding memory use. It also advances overall |
| 332 |
maintainability by using size-safe types and curl's large size API. |
| 333 |
Impact: adds 'replymaxbytes' (default 1 MiB). Large replies may be |
| 334 |
truncated and the transfer aborted, which can change retry behavior. |
| 335 |
- 2026-02-07: build: normalize object prototypes and remove decl noise |
| 336 |
Keep strict warning builds useful without relying on broad |
| 337 |
diagnostic suppressions. |
| 338 |
- 2026-02-04: ratelimit: add named policies; wire into imtcp/imptcp |
| 339 |
Centralize and reuse rate-limit definitions so admins can apply |
| 340 |
consistent policies across listeners. This is part of an |
| 341 |
ongoing series to improve rate limiting and its manageability. |
| 342 |
Before: inputs set per-listener interval/burst ad hoc. |
| 343 |
After: inputs can reference a named ratelimit() policy shared across |
| 344 |
listeners; per-listener values remain as fallback. |
| 345 |
Impact: New ratelimit() object and RateLimit.Name param for imtcp/imptcp. |
| 346 |
If a policy file is configured but libyaml is unavailable, config fails. |
| 347 |
Technical details: |
| 348 |
- Add top-level ratelimit() Rainerscript object. Parsed in rsconf and |
| 349 |
stored in a central registry (hashtable + rwlock) on rsconf. |
| 350 |
- New runtime API: ratelimitAddConfig(), ratelimitNewFromConfig(), plus |
| 351 |
cfgs init/destruct on rsconf lifecycle. |
| 352 |
- imtcp/imptcp accept RateLimit.Name; when set, tcpsrv/imptcp build the |
| 353 |
ratelimiter from the named policy; otherwise legacy interval/burst is |
| 354 |
used. Thread-safety retained via ratelimitSetThreadSafe(). |
| 355 |
- tcpsrv gains ownership helpers for listener params and frees them on |
| 356 |
errors; imtcp explicitly transfers ownership and nulls the pointer. |
| 357 |
- Optional libyaml: detected at configure; runtime parser loads simple |
| 358 |
key/value policy files (interval, burst, severity). |
| 359 |
- Docs: new ratelimit object page; imtcp/imptcp parameter references and |
| 360 |
module docs updated; design-decisions note added for libyaml. |
| 361 |
- Tests: add ratelimit_name.sh (guarded for imtcp+imptcp) to validate |
| 362 |
named policy application and observable throttling. |
| 363 |
Refs: https://github.com/rsyslog/rsyslog/issues/6201 |
| 364 |
Refs: https://github.com/rsyslog/rsyslog/issues/6201 |
| 365 |
- 2026-02-04: runtime: lower internal message rate defaults |
| 366 |
Reduce default internal log spam during error loops while keeping |
| 367 |
visibility for operators. |
| 368 |
Impact: Default internal message rate limiting is tighter. |
| 369 |
Before/After: 500 messages/5s -> 100 messages/60s by default. |
| 370 |
- 2026-02-03: runtime: fix potentially wrong lookup in DNS cache |
| 371 |
Link-local IPv6 sources can share an address but differ by scope, |
| 372 |
which can collide in the DNS cache and mix hostnames, this could |
| 373 |
cause misrouting for IPv6 link-local senders. |
| 374 |
Root cause: DNS cache treated link-local IPv6 addresses as identical. |
| 375 |
closes https://github.com/rsyslog/rsyslog/issues/5645 |
| 376 |
- 2026-02-03: nsd_ossl: fix potential memory leak on failed handshakes |
| 377 |
Avoid keeping failed TLS handshakes alive when probes hit TLS listeners, |
| 378 |
which can contribute to memory growth. |
| 379 |
closes https://github.com/rsyslog/rsyslog/issues/4017. |
| 380 |
- 2026-02-03: Fix lookup table reload race condition (Device or resource busy) |
| 381 |
Previously, the `lookupTableReloader` thread held the `reloader_mut` mutex |
| 382 |
for the entire duration of the reload operation (`lookupDoReload`). Since |
| 383 |
reloading a lookup table involves file I/O and parsing, it can take a |
| 384 |
significant amount of time. If a SIGHUP (or other reload trigger) occurred |
| 385 |
while a reload was in progress, the main thread (executing `lookupReload`) |
| 386 |
would fail to acquire the mutex via `pthread_mutex_trylock`, resulting in |
| 387 |
the error "Device or resource busy" and the reload request being dropped. |
| 388 |
This commit modifies `lookupTableReloader` to release the mutex before |
| 389 |
calling `lookupDoReload` and re-acquire it afterwards. This allows |
| 390 |
`lookupReload` to successfully acquire the mutex, queue a new reload request |
| 391 |
(by setting `do_reload = 1`), and update the stub value if necessary. |
| 392 |
To ensure thread safety, `lookupDoReload` now accepts the `stub_val` as an |
| 393 |
argument (instead of accessing the shared `stub_value_for_reload_failure` |
| 394 |
member directly) and takes ownership of it (freeing it upon completion). |
| 395 |
`lookupTableReloader` extracts the stub value to a local variable while |
| 396 |
holding the lock before passing it to `lookupDoReload`. |
| 397 |
The `ATTR_NONNULL` attribute on `lookupDoReload` was updated to `ATTR_NONNULL(1)` |
| 398 |
to allow the `stub_val` argument to be NULL, fixing a build failure with |
| 399 |
`-Werror`. |
| 400 |
closes https://github.com/rsyslog/rsyslog/issues/5628 |
| 401 |
- 2026-02-03: doc: document pcre_match function |
| 402 |
- 2026-01-31: impstats: add VictoriaMetrics push via Remote Write |
| 403 |
Adds first-class integration with VictoriaMetrics to simplify ops |
| 404 |
dashboards and move toward project-supported telemetry without |
| 405 |
sidecar collectors. |
| 406 |
New optional feature (oin by default). No behavior change unless configured |
| 407 |
via push.* parameters. Also relevant doc and CI enhancements added. |
| 408 |
- 2026-01-31: imtcp: add MultiLine and regex framing support |
| 409 |
Non-technical: improves operator ergonomics and closes a feature gap |
| 410 |
with imptcp. Enables regex-based start-of-frame detection and optional |
| 411 |
multi-line message handling on TCP inputs. |
| 412 |
Impact: New config params; defaults keep existing behavior unchanged. |
| 413 |
Before: imtcp framed messages via octet-counting or LF delimiter only. |
| 414 |
After: imtcp can treat lines not starting a new frame as continuations |
| 415 |
(MultiLine) and can split frames on a regex start pattern. |
| 416 |
Adds imtcp params: MultiLine (bool) and framing.delimiter.regex (string). |
| 417 |
closes https://github.com/rsyslog/rsyslog/issues/5637 |
| 418 |
- 2026-01-30: omfile: avoid rare close/open race |
| 419 |
... and prevent lock-order inversion when internal logging runs |
| 420 |
during open failures. |
| 421 |
Closes https://github.com/rsyslog/rsyslog/issues/3404 |
| 422 |
- 2026-01-29: omfile: pass size-limit file to rotate cmd |
| 423 |
Some rotation scripts need the target file name to act without |
| 424 |
external logrotate and to retain existing args. |
| 425 |
To support this, new action param rotation.sizeLimitCommandPassFileName |
| 426 |
has been added. |
| 427 |
closes https://github.com/rsyslog/rsyslog/issues/6435 |
| 428 |
- 2026-01-29: configure: fix xxhash library check missing error action |
| 429 |
When --enable-fmhash-xxhash is specified but libxxhash is not |
| 430 |
found, configure should fail with a clear error message instead |
| 431 |
of silently continuing and reporting success. This has now been fixed |
| 432 |
and a proper error message is emitted. |
| 433 |
closes https://github.com/rsyslog/rsyslog/issues/2816 |
| 434 |
- 2026-01-27: imfile: add inode generation check for file rotation detection |
| 435 |
This commit adds a check for inode generation number in the imfile module. |
| 436 |
This addresses an issue where file rotation is not detected when a new file |
| 437 |
reuses the same inode number as the old one (which can happen on some |
| 438 |
filesystems or scenarios). |
| 439 |
The check is implemented by using `FS_IOC_GETVERSION` ioctl on Linux. |
| 440 |
It is guarded by `HAVE_FS_IOC_GETVERSION` and `HAVE_LINUX_FS_H`. |
| 441 |
To minimize performance impact, the check is only performed if `st_ctime` |
| 442 |
has changed while the inode number remains the same. |
| 443 |
This also updates the state file format to include `inode_gen` to detect |
| 444 |
inode reuse across rsyslog restarts. |
| 445 |
- 2026-01-25: Add support healthchecktimedelay into omhttp |
| 446 |
This PR add the possibility to set up a time to delay the check |
| 447 |
of an "API health URL" to avoid multi request to an API. |
| 448 |
In some case, when you use the omhttp module to send massive |
| 449 |
volume of data to an API, the check of the API status does not |
| 450 |
need to be done at each post request. This parameter allow to |
| 451 |
set up a delay between two check of the API health URL. |
| 452 |
Thanks to github user shinigami35 for the patch. |
| 453 |
- 2026-01-24: AI: added improved AI agent skills |
| 454 |
Added skills, so that AI agents will hopefully follow instructions and |
| 455 |
rsyslog workflow better. Adapted AGENTS.md to support them. First results |
| 456 |
look very promising, so merged to main branch. |
| 457 |
- 2026-01-24: testbench: refactor Makefile.am; factor test lists, fix dist |
| 458 |
Reduce Makefile clutter and make the test harness easier to reason |
| 459 |
about for humans and machines. This also aims to lower CI flakes by |
| 460 |
making the dist artifact complete and predictable. |
| 461 |
Impact: build/test harness only; no runtime change. New |
| 462 |
TEST_RUN_TYPE=MOCK-OK opt-in fast path in diag.sh. |
| 463 |
Before: many scattered conditional TESTS entries; some scripts were |
| 464 |
only in EXTRA_DIST when corresponding features were enabled, leading |
| 465 |
to missing files in "make dist*" tarballs. Duplicates existed. |
| 466 |
After: conditional test lists are grouped into variables (e.g., |
| 467 |
TESTS_ELASTICSEARCH_MINIMAL) and appended to TESTS under the same |
| 468 |
conditionals; all lists are always added to EXTRA_DIST. Duplicate |
| 469 |
entries removed. diag.sh recognizes TEST_RUN_TYPE=MOCK-OK for mock |
| 470 |
distchecks and exits success without executing. |
| 471 |
- 2026-01-24: imfile: add inotify fallback rescans on watch limits |
| 472 |
Graceful degradation when watch limits are reached avoids a hard stop |
| 473 |
and keeps logs flowing in constrained environments. |
| 474 |
Inotify watch setup now marks limit hits and schedules retry scans. |
| 475 |
Fallback scans re-walk the tree and rearm missing watches, then |
| 476 |
disable fallback once all watches are active. |
| 477 |
The fallback interval is configurable and bounded to avoid overflow. |
| 478 |
Docs add the new parameter and clarify watch-limit behavior. |
| 479 |
- 2026-01-20: impstats/dynstats: add opt-in state persistence |
| 480 |
Operators want dynstats to survive restarts for consistent metrics and |
| 481 |
smoother observability in containers and rolling deploys. |
| 482 |
Before: dynstats buckets were ephemeral; restarts reset counters. |
| 483 |
After: optional on-disk persistence restores counters; worker thread is |
| 484 |
started on demand and torn down with the owning rsconf. |
| 485 |
Impact: New state files under WorkDirectory (or statefile.directory) |
| 486 |
when enabled; slight I/O overhead on configured thresholds. Defaults |
| 487 |
preserve previous behavior (persistence off). |
| 488 |
Thanks to github user n2yen for the initial prototype patch. |
| 489 |
- 2026-01-19: ossl: add experimental OCSP certificate revocation checking support |
| 490 |
This implements certificate revocation checking using OCSP (RFC 6960) |
| 491 |
for the OpenSSL network stream driver. The feature is disabled by |
| 492 |
default and can be enabled via the new StreamDriver.TlsRevocationCheck |
| 493 |
configuration parameter. |
| 494 |
This is a rebased and refactored version of the original implementation |
| 495 |
by Daniel Gollub from June 2020, updated to work with the current main |
| 496 |
branch and enhanced with proper plumbing, security hardening, tests, |
| 497 |
and documentation. |
| 498 |
Note: this is experimental, the OCSP request does NOT run asynchronously. |
| 499 |
As such, it can block rsyslog threads for some seconds, which may not be |
| 500 |
suitable for all applications. See documentation for full details. |
| 501 |
Upcoming work is expected to improve the state. |
| 502 |
Thanks to Daniel Gollub for the patch. |
| 503 |
- 2026-01-17: make mmutf8fix work also on tags |
| 504 |
Thanks to Jan Jeroným Zvánovec for the base patch, which we improved a bit. |
| 505 |
- 2026-01-16: queue: harden disk recovery after invalid .qi |
| 506 |
This probably fixes rare but reported disk queue startup errors, at |
| 507 |
least a subset of them (these cases were hard to reproduce). |
| 508 |
Hardens disk-queue recovery after an invalid .qi so read/write pointers |
| 509 |
realign and on-disk size is corrected. This prevents stuck queues and |
| 510 |
stabilizes the daqueue dirty shutdown test. |
| 511 |
Bug Fixes |
| 512 |
- On anomaly (rd==wr and offsets equal), seek the read-delete cursor to |
| 513 |
the writer, subtract deleted bytes from sizeOnDisk, and align the |
| 514 |
read-dequeue cursor; keep draining if seek fails. |
| 515 |
- Log errors when pointer resets or seeks fail. |
| 516 |
- Add strm.Sync() to keep stream state consistent after pointer updates. |
| 517 |
- Refactor invalid .qi recovery and startup seek errors into helpers. |
| 518 |
- When spool read files are missing on startup, align read to write and |
| 519 |
continue recovery. |
| 520 |
- 2026-01-16: core: fsync+atomic rename for pid file; abort on failure |
| 521 |
Empty pid files were reported by users, leading to supervision issues. |
| 522 |
This hardens startup so that the pid file is either durably written or |
| 523 |
rsyslog exits. This improves reliability for service managers and |
| 524 |
container setups where pid files are still required. |
| 525 |
Impact: Startup now aborts when the pid file cannot be durably written. |
| 526 |
Special thanks to github user @HappyDrink-okk for a prototype PR and |
| 527 |
bringing up the issue. |
| 528 |
NOTE: CHANGE OF BEHAVIOUR |
| 529 |
Other than before, failing to write the pid file will make rsyslog |
| 530 |
abort on startup. This is highly unlikely, and on VMs/bare metal |
| 531 |
pid files are usually no longer used. For containers the new |
| 532 |
mode is much more considerable. |
| 533 |
see also https://github.com/rsyslog/rsyslog/pull/5391 |
| 534 |
- 2026-01-16: ossl net driver: added support for wolfssl |
| 535 |
This disablles some of the ossl driver capabilities that are not conformant |
| 536 |
with how wolfssl operates (e.g. anon ciphers) but is a very solid basis |
| 537 |
for using wolfssl where there is e.g. a certification requirement. |
| 538 |
Note that the ossl driver can either be build for wolfssl, libressl, or |
| 539 |
openssl. This needs to be decided at build time. |
| 540 |
Thanks to Hayden Roche for the contribution. |
| 541 |
- 2026-01-15: observability: add ROSI Collector centralized log collection stack |
| 542 |
Add production-ready Docker Compose stack for centralized log collection |
| 543 |
and monitoring, migrated from rsyslog-do-infra/central-intern. |
| 544 |
ROSI (RSyslog Operations Stack Initiative) Collector provides: |
| 545 |
- rsyslog log receiver with omhttp output to Loki |
| 546 |
- Grafana Loki for log storage (30-day retention) |
| 547 |
- Grafana with 5 pre-built dashboards |
| 548 |
- Prometheus for metrics collection |
| 549 |
- Traefik reverse proxy with automatic Let's Encrypt TLS |
| 550 |
- TLS/mTLS syslog reception on port 6514 (RFC 5425) |
| 551 |
TLS support features: |
| 552 |
- Optional TLS profile activated via: docker compose --profile tls up -d |
| 553 |
- Environment variable configuration (ENABLE_TLS, TLS_CA_FILE, etc.) |
| 554 |
- Auth modes: anon, x509/certvalid, x509/name |
| 555 |
- generate-ca.sh: Create CA and server certificates |
| 556 |
- generate-client-cert.sh: Generate client certs with secure one-time |
| 557 |
download packages, migration handling, and syslog user ownership |
| 558 |
- Automatic UFW firewall configuration for port 6514 |
| 559 |
Management scripts installed to /usr/local/bin: |
| 560 |
- rosi-monitor: Stack health monitoring and debugging |
| 561 |
- rosi-generate-ca: Generate CA and server TLS certificates |
| 562 |
- rosi-generate-client-cert: Generate client TLS certificates |
| 563 |
- prometheus-target: Manage node exporter scrape targets |
| 564 |
Configuration persistence via XDG-compliant config files: |
| 565 |
- System: /etc/rsyslog/rosi-collector.conf |
| 566 |
- User: ~/.config/rsyslog/rosi-collector.conf |
| 567 |
closes: https://github.com/rsyslog/rsyslog/issues/6323 |
| 568 |
- 2026-01-13: rainerscript: add append_json() function |
| 569 |
Thanks to github user 20syldev for the patch. |
| 570 |
- 2026-01-12: imfile: ensure state files are deleted correctly on log rotation |
| 571 |
When log rotation occurs, imfile sometimes fails to delete the old state |
| 572 |
files. |
| 573 |
Thanks to Sagar Singh for the patch. |
| 574 |
- 2026-01-12: rainerscript: add is_in_subnet() built-in |
| 575 |
Improve usability by providing a simple way to check if an IP is inside |
| 576 |
a CIDR subnet directly in RainerScript. This reduces awkward workarounds |
| 577 |
and makes common filtering and routing tasks easier to express. |
| 578 |
- 2026-01-12: testbench: improved tests for mmjsontransform and mmjsonparse |
| 579 |
- 2026-01-07: runtime: fix race condition in worker thread cancellation |
| 580 |
Fixed a race condition in wtiCancelThrd() where thrdID could be accessed |
| 581 |
after the thread had already terminated and been joined by another caller, |
| 582 |
potentially resulting in pthread_cancel/pthread_kill operating on an |
| 583 |
invalid or reused thread ID. |
| 584 |
- 2026-01-07: omazureeventhubs: fix data races and suppressions |
| 585 |
There were thread synchronization issues in omazureeventhubs, which now |
| 586 |
have been solved. Also some new, verified, valgrind suppressions have |
| 587 |
been added for Proton lib (outside of rsyslog project). |
| 588 |
- 2026-01-07: runtime: fix inconsistent synchronization of iCurNumWrkThrd |
| 589 |
Fixed inconsistent access to iCurNumWrkThrd where the shutdown loop used |
| 590 |
a plain read while all other accesses used atomic operations. This could |
| 591 |
result in the loop reading a stale value and not properly detecting when |
| 592 |
all workers have terminated. |
| 593 |
Note: there were not reports from practice, patch trigerred by code review. |
| 594 |
This is from a series of patches on potential data races in action runtime. |
| 595 |
- 2026-01-07: runtime: runtime: fix TOCTOU race in worker thread creation |
| 596 |
Fixed a Time-Of-Check-Time-Of-Use race condition in wtpStartWrkr() where |
| 597 |
the wtpState check occurred before acquiring mutWtp. This allowed the |
| 598 |
state to change between the check and worker thread creation, potentially |
| 599 |
resulting in workers being created during shutdown. |
| 600 |
Note: there were not reports from practice, patch trigerred by code review. |
| 601 |
This is from a series of patches on potential data races in action runtime. |
| 602 |
- 2026-01-07: runtime: fix race in wtpSetState() |
| 603 |
Fixed a race condition where wtpSetState() used a plain store while readers |
| 604 |
(wtpChkStopWrkr) used atomic loads. This violated the C11 memory model and |
| 605 |
created undefined behavior, potentially causing shutdown delays and |
| 606 |
potential message loss. |
| 607 |
Note: there were not reports from practice, patch trigerred by code review. |
| 608 |
This is from a series of patches on potential data races in action runtime. |
| 609 |
- 2026-01-07: imfile: fix file handle leaks |
| 610 |
FIle handler leaks can occur if the deleted file still has a lingering symbolic |
| 611 |
link, even if the file has actually been deleted. |
| 612 |
Thanks to Nelson Yen for the patch. |
| 613 |
- 2026-01-06: runtime: fix race condition in worker thread startup |
| 614 |
Fixed a critical race condition in `wtpStartWrkr` where the same worker thread |
| 615 |
instance (`wti_t`) could be started twice if multiple threads called `wtpStartWrkr` |
| 616 |
concurrently. This occurred because the check for `WRKTHRD_STOPPED` and the |
| 617 |
subsequent transition to `WRKTHRD_INITIALIZING` were not atomic. |
| 618 |
The fix introduces a new `wtiCASState` function that uses atomic Compare-And-Swap |
| 619 |
to safely reserve a worker slot. This ensures that only one thread can successfully |
| 620 |
transition a worker from `STOPPED` to `INITIALIZING`, preventing duplicate reuse. |
| 621 |
This resolves crashes and memory corruption seen in threaded outputs (e.g., ommysql) |
| 622 |
where thread-local data was incorrectly shared between two active threads. |
| 623 |
Note that such conditions only occured under pressure. There were no bug |
| 624 |
reports from practice, we detected this via CI. |
| 625 |
- 2026-01-05: mysql: stabilize async ommysql workers via proper thread init |
| 626 |
ThreadSanitizer flagged potential races in the MySQL client library when |
| 627 |
multiple workers run concurrently. While the rsyslog module architecture |
| 628 |
already ensures per-worker isolation (each worker has its own connection |
| 629 |
handle and data structures), the client library itself can trigger |
| 630 |
TSAN reports or Valgrind aborts if thread initialization is not strictly |
| 631 |
managed. |
| 632 |
This patch improves stability by keeping mysql_thread_init/mysql_thread_end |
| 633 |
paired per worker using a `threadInitialized` flag. This ensures the |
| 634 |
client library stays correctly bound to rsyslog queue threads, avoiding |
| 635 |
the Valgrind aborts seen in mysql-asyn-vg and potential TSAN warnings |
| 636 |
without the need for heavy-handed mutex serialization or skipping tests. |
| 637 |
Further changes: |
| 638 |
- Use a per-worker reusable SQL buffer to reduce allocation overhead |
| 639 |
- Overflow-safe SQL buffer growth (SIZE_MAX guard) |
| 640 |
- tests/mysql-asyn.sh: Enabled for TSAN, as thread_init fixes the root cause |
| 641 |
- 2026-01-05: queue: re-implement queue size warnings |
| 642 |
This restores the warnings for invalid queue.highWaterMark and |
| 643 |
queue.lowWaterMark configurations which were reverted in a previous |
| 644 |
commit due to regressions. |
| 645 |
The logic has been improved to only emit warnings if the user |
| 646 |
explicitly configured an invalid value (i.e., not the default -1). |
| 647 |
Previously, default values (which are -1) were triggering the warnings |
| 648 |
incorrectly. |
| 649 |
See also https://github.com/rsyslog/rsyslog/issues/5615 |
| 650 |
See also https://github.com/rsyslog/rsyslog/issues/5586 |
| 651 |
See also https://github.com/rsyslog/rsyslog/issues/5676 |
| 652 |
closes https://github.com/rsyslog/rsyslog/issues/5677 |
| 653 |
- 2026-01-04: lookup_table: fix issue with int32 vs. int64 |
| 654 |
There were some issues with int32 overflow, which could lead to improper |
| 655 |
lookup table returns. This has now been fixed. |
| 656 |
Thanks to Janmejay Singh for the patch. |
| 657 |
- 2026-01-03: runtime/nsd_ossl.c: fix potential authmode authorization bypass |
| 658 |
In the `ossl` driver, `doRetry` unconditionally cleared the `rtryCall` state after |
| 659 |
calling `osslHandshakeCheck`, even if the handshake was still incomplete (e.g., |
| 660 |
returning `WANT_READ` and re-setting the retry flag). This caused subsequent receive |
| 661 |
operations to assume the handshake was finished, potentially bypassing the |
| 662 |
authorization check (`osslChkPeerAuth`). |
| 663 |
This change ensures `rtryCall` is reset *before* attempting the handshake, so that |
| 664 |
if `osslHandshakeCheck` sets it again, the state is preserved. This logic aligns |
| 665 |
with the intent of the retry mechanism and prevents the bypass. |
| 666 |
closes https://github.com/rsyslog/rsyslog/issues/6350 |
| 667 |
- 2026-01-02: tcpsrv: restore default stack size assignment |
| 668 |
Worker threads need to be assigned the "rsyslog default stack size". |
| 669 |
This is especially an issue with musl lib, which has a very small stack |
| 670 |
size. As such, rsyslog can segfault without specifying our expected |
| 671 |
Note that the segfault would most probably occur with imtcp when running |
| 672 |
e.g. under Alpine Linux. |
| 673 |
stack size. |
| 674 |
closes https://github.com/rsyslog/rsyslog/issues/6357 |
| 675 |
- 2026-01-02: omfwd: add DNS SRV discovery (targetSrv) |
| 676 |
Simplify large-scale configs by auto-discovering receivers via DNS SRV |
| 677 |
records. This reduces per-host configuration and helps enterprise and |
| 678 |
container setups where target pools change over time. |
| 679 |
Impact: new param `targetSrv`; config now errors on conflicts or empty |
| 680 |
SRV answers; feature depends on resolver support. |
| 681 |
closes https://github.com/rsyslog/rsyslog/issues/6314 |
| 682 |
- 2026-01-01: net driver ossl: fix ctx double-free and config string leaks |
| 683 |
This improves stability of the OpenSSL stream driver and prevents |
| 684 |
occasional aborts seen in the field with rulesets and per-host TLS |
| 685 |
configuration. It also reduces memory growth during reconfiguration. |
| 686 |
Impact: Fixes a crash (double-free) and plugs several leaks; no config |
| 687 |
or API changes. |
| 688 |
closes: https://github.com/rsyslog/rsyslog/issues/6358 |
| 689 |
- 2026-01-01: core, runtime, omfwd: plumb action name into modules and logs |
| 690 |
Non-technical: actions need to obtain their name for better reporting. |
| 691 |
This wires a safe way for OMs to learn their owning action and use its |
| 692 |
human-readable name in diagnostics. |
| 693 |
Impact: omfwd log messages now include the action name in some errors. |
| 694 |
Also, a generic internal API has been added to enable actions to obtain |
| 695 |
their assigned name. The omfwd change is primarily a template of how |
| 696 |
this can be done (but also useful in itself). |
| 697 |
With the help of AI Agents: ChatGPT Codex |
| 698 |
- 2025-12-31: imjournal: make PRIORITY parsing robust and quiet |
| 699 |
Some systems emit journal entries where PRIORITY is not exactly |
| 700 |
"PRIORITY=X". The previous parser treated multi-byte PRIORITY values |
| 701 |
as errors and logged for every message, creating the impression of |
| 702 |
trouble when internal rate limiting kicked in. This also lead users to |
| 703 |
the false impression that journal messages were lost. The change reduces |
| 704 |
noise and keeps rsyslog calm in noisy journald environments. |
| 705 |
Impact: Internal error spam is eliminated; unparsable values fall back |
| 706 |
to the configured default severity; numeric out-of-range is logged at |
| 707 |
INFO, not ERROR. |
| 708 |
Before/After: BEFORE required length==10 and errored on mismatch. |
| 709 |
AFTER parses the integer from a safe buffer, validates 0–7, otherwise |
| 710 |
uses the default severity without spamming logs. |
| 711 |
closes: https://github.com/rsyslog/rsyslog/issues/5613 |
| 712 |
- 2025-12-30: omelasticsearch fix: potential NULL dereference |
| 713 |
Under some exotic cases, omelasticsearch could dereference a NULL |
| 714 |
pointer during shutdown cleanup. This would lead to undefined behaviour |
| 715 |
and most likely an abort. This is fixed in this patch. |
| 716 |
With the Help of AI Agent: ChatGPT Codex |
| 717 |
closes https://github.com/rsyslog/rsyslog/issues/4016 |
| 718 |
- 2025-12-28: omfwd: fix RebindInterval suspension and improve UDP cleanup |
| 719 |
This fix ensures that forwarding actions do not experience a 30-second |
| 720 |
suspension when re-establishing connections as configured by |
| 721 |
RebindInterval. This improves maintainability and reliability. |
| 722 |
Impact: Eliminates unwanted action suspensions during rebinds. |
| 723 |
closes: https://github.com/rsyslog/rsyslog/issues/5722 |
| 724 |
- 2025-12-28: imjournal: removed unused pollfailed stats counter |
| 725 |
This was probably a left-over from some copy&paste when stats counters |
| 726 |
were initially added. |
| 727 |
- 2025-12-26: rainerscript: add split() function |
| 728 |
Users need to parse delimited strings (CSV, tags, paths) into arrays |
| 729 |
for iteration or JSON output without external processing. |
| 730 |
Thanks to github user 20syldev for the patch. |
| 731 |
- 2025-12-24: rainerscript: ensure parse_json consumes entire input string |
| 732 |
This fix ensures that parse_json() only succeeds if the entire input |
| 733 |
string is a valid JSON value. This prevents false positives when a |
| 734 |
non-JSON string happens to start with a valid JSON value, like a number. |
| 735 |
Documentation is updated to reflect this stricter validation. |
| 736 |
Impact: Corrects false-success in parse_json() for malformed input. |
| 737 |
Fixes: https://github.com/rsyslog/rsyslog/issues/4970 |
| 738 |
With the helpo of AI-Agent: Antigravity |
| 739 |
- 2025-12-23: imjournal: fix potential segfault (SIGBUS) |
| 740 |
This fixes a problem in imjournal that can result in SIGBUS or other |
| 741 |
problems. Note that I could not reproduce the issue myself, but it looks |
| 742 |
very plausible that this is indeed a useful fix. |
| 743 |
closes: https://github.com/rsyslog/rsyslog/issues/6359 |
| 744 |
- 2025-12-23: doc/AI: add RAG Knowledge Base extraction and build integration |
| 745 |
This commit adds a context-aware RAG dataset generator and integrates |
| 746 |
it into the build system to support advanced AI-driven documentation |
| 747 |
workflows. It ensures a consistent knowledge base for RAG pipelines. |
| 748 |
- 2025-12-21: doc: modernize and expand queue concept documentation |
| 749 |
This brings the queue concepts page in line with current RainerScript |
| 750 |
syntax and features. It improves maintainability and makes the docs |
| 751 |
more consumable for both humans and tooling. |
| 752 |
Impact: docs-only; no runtime or config behavior change. |
| 753 |
- 2025-12-21: netstream ossl driver: fix double close |
| 754 |
There was a double-close of the socket due to a code bug. This caused a race |
| 755 |
that, depending on timing, could lead to undefined behaviour or segfault. |
| 756 |
Thanks to Yuli Fiterman for the patch. |
| 757 |
- 2025-12-21: doc: update agent guidelines to require documentation for new parameters |
| 758 |
This change updates the root AGENTS.md, plugins/AGENTS.md, and |
| 759 |
MODULE_AUTHOR_CHECKLIST.md to explicitly require that new configuration |
| 760 |
parameters be documented in the doc/ subtree. This ensures that |
| 761 |
future AI agents (and humans) do not overlook documentation tasks |
| 762 |
when implementing new features. |
| 763 |
Impact: Improved documentation coverage and consistency for new |
| 764 |
features. |
| 765 |
AI-Agent: Antigravity |
| 766 |
- 2025-12-21: impstats: add log.file.overwrite parameter for atomic overwrites |
| 767 |
This change adds the capability to overwrite the statistics log file |
| 768 |
instead of appending to it. This is particularly useful for |
| 769 |
observability tools like Prometheus scraping sidecars or node exporter, |
| 770 |
which expect a consistent and complete set of metrics in a single file. |
| 771 |
The implementation ensures atomicity by writing the statistics to a |
| 772 |
temporary file and then renaming it to the final destination. This |
| 773 |
prevents reader processes from seeing partial or inconsistent data |
| 774 |
during the emission process. |
| 775 |
This commit includes: |
| 776 |
- The implementation in impstats.c. |
| 777 |
- New test cases in the testbench. |
| 778 |
- User-facing documentation for the new parameter. |
| 779 |
Impact: Users can now enable atomic overwrites using |
| 780 |
log.file.overwrite="on". Default behavior remains append. |
| 781 |
AI-Agent: Antigravity |
| 782 |
- 2025-12-21: Fix doc build CI security, spelling, and RST build errors |
| 783 |
Security & CI improvements: |
| 784 |
- Remove pull_request_target trigger (security vulnerability) |
| 785 |
- Simplify checkout to use default behavior (matches other workflows) |
| 786 |
- Reduce fetch-depth from 8 to 2 for change detection |
| 787 |
- Simplify conditional logic throughout workflow |
| 788 |
- Enable fork PR support: allow fork PRs to build docs and produce artifacts |
| 789 |
- Make Pages deployment conditional: only deploy for same-repo PRs |
| 790 |
- Update PR comments to handle fork vs same-repo PRs appropriately |
| 791 |
Documentation fixes: |
| 792 |
- Fix 3 instances of "it's" → "its" in reliable_logging.rst |
| 793 |
- Fix 22 RST build errors: replace :json: roles with inline code in |
| 794 |
6 mmdarwin parameter files |
| 795 |
The workflow now follows the same pattern as 19 other workflows in the |
| 796 |
repository, improves security posture, enables fork contributors to build |
| 797 |
documentation, and fixes all documentation build errors. |
| 798 |
- 2025-12-11: core: stop busy-loop when action disables itself |
| 799 |
In the field, an action that disables itself could leave workers in a |
| 800 |
tight retry/commit cycle, pegging a CPU core. This change makes the |
| 801 |
engine recognize and short-circuit disabled actions promptly, avoiding |
| 802 |
spin and wasted work. |
| 803 |
Before/After: disabled action could spin in retry/commit -> |
| 804 |
disabled action is marked and skipped with a clear return code. |
| 805 |
Impact: CPU spikes from disabled actions are eliminated. Messages for |
| 806 |
that action are no longer retried once disabled (unchanged intent). |
| 807 |
Fixes: https://github.com/rsyslog/rsyslog/issues/5423 |
| 808 |
- 2025-12-11: build: Add code coverage targets |
| 809 |
Add new feature to enable code coverage using gcc, lcov and genhtml |
| 810 |
Add Makeile targets to run coverage after or during checks |
| 811 |
Note: full coverage report requires that all tests run on various platforms |
| 812 |
and must be consolidated. This patch is primarily for focussed checks for |
| 813 |
specific modules. The rsyslog CI uses codecov application to gain overall |
| 814 |
insight. |
| 815 |
Thanks to Théo Bertin for the patch. |
| 816 |
- 2025-12-11: doc: added omelasticsearch TLS doc, which was missing |
| 817 |
- 2025-12-11: core: fix LogError(0, ...) anti-pattern and add guidelines |
| 818 |
This change improves the consistency and reliability of error logging by |
| 819 |
removing a common anti-pattern where errno was manually formatted. It |
| 820 |
also establishes clear coding guidelines to prevent this in the future, |
| 821 |
enhancing code maintainability. |
| 822 |
Impact: No user-visible behavior change; internal error logging consistency improved. |
| 823 |
Refactored LogError(0, ...) calls that used manual rs_strerror_r or |
| 824 |
strerror formatting to instead pass errno directly to LogError. |
| 825 |
This allows LogError to handle error string formatting consistently. |
| 826 |
Affected components include imrelp, omrelp, imdtls, |
| 827 |
omelasticsearch, and runtime/rsconf. |
| 828 |
Added doc/source/development/coding_practices/error_logging_with_errno.rst |
| 829 |
to document this pattern and updated the coding practices index. |
| 830 |
Fixed a format string error in runtime/rsconf.c discovered during |
| 831 |
refactoring. |
| 832 |
Updated runtime/errmsg.h with explicit Doxygen notes for AI agents |
| 833 |
to use LogError(errno, ...) correctly. |
| 834 |
- 2025-12-11: omdtls: fix incorrect usage of gai_strerror |
| 835 |
The gai_strerror function was being used to report errors from connect(), |
| 836 |
which sets errno. This resulted in misleading error messages. |
| 837 |
Replaced gai_strerror with rs_strerror_r to correctly report system errors. |
| 838 |
closes https://github.com/rsyslog/rsyslog/issues/5518 |
| 839 |
---------------------------------------------------------------------------------------- |
| 840 |
Scheduled Release 8.2512.0 (aka 2025.12) 2025-12-09 |
| 841 |
- overall improved documentation via a large set of topic updates. |
| 842 |
- 2025-12-05: omhiredis: add TLS support |
| 843 |
* Add support for TLS in omhiredis |
| 844 |
* fix(omhiredis): Make redis SSL support user-configurable |
| 845 |
* fix(omhiredis): Adding SSL variables into conditinal compilation |
| 846 |
* fix(omhiredis): Ensure both client_cert and client_key are specified together |
| 847 |
* fix(omhiredis): fix SSL initialization for thread safety |
| 848 |
* fix(configure.ac): Need hiredis_ssl>=1.0.0 |
| 849 |
Thanks to Jérémie Jourdin, Amine EL AKKANI, frikilax for the patch. |
| 850 |
- 2025-12-04: packaging/docker: add TLS support to collector image |
| 851 |
Add OpenSSL-based TLS support to the rsyslog collector Docker |
| 852 |
image, enabling secure log collection over encrypted connections |
| 853 |
while maintaining full backward compatibility. |
| 854 |
- 2025-12-04: mmsnareparse: make regex trailing search limit configurable |
| 855 |
Add ignoreTrailingPattern.searchWindow parameter to control the maximum number |
| 856 |
of characters searched at the end of messages. |
| 857 |
- 2025-12-04: nsd_gtls: fix repeated warnings on connection retry |
| 858 |
Move loggedWarnings to static storage to ensure missing cert/key/CA warnings are |
| 859 |
emitted only once per process, preventing log spam on broken connections. |
| 860 |
Thanks to Attila Lakatos for the patch. |
| 861 |
- 2025-12-02: omuxsock: add NetworkNamespace functionality |
| 862 |
This builds on "PR#6121 net: Add NetworkNamespace APIS" |
| 863 |
to add Network Namespace support for omuxsock. In |
| 864 |
addition, new functionality is added to support |
| 865 |
abstract socket names, as well as connected sockets. |
| 866 |
Changes are isolated to omuxsock to provide the new |
| 867 |
functionality: |
| 868 |
a. Abstract unix socket names (including network namespaces) |
| 869 |
b. Connected socket support (SOCK_STREAM, SOCK_SEQPACKET) |
| 870 |
c. Support for load, and action configuration |
| 871 |
d. Bug fix related to closing/reopening sockets |
| 872 |
This bug would cause the socket to be closed and |
| 873 |
reopened for every message sent. |
| 874 |
New tests are added as follows: |
| 875 |
a. uxsock_multiple.sh tests basic functionality with |
| 876 |
multiple output instances. |
| 877 |
b. uxsock_multiple_netns.sh is similar but using |
| 878 |
multiple namespaces. |
| 879 |
c. uxsock_simple_abstract.sh mirrors the existing |
| 880 |
uxsock_simple.sh but tests with abstract socket |
| 881 |
names. |
| 882 |
The uxsockrcvr test program was modified to support |
| 883 |
these new tests. |
| 884 |
Thanks to Billie Alsup for the patch. |
| 885 |
- 2025-11-28: imtcp: add support for NetworkNamespace |
| 886 |
This builds on |
| 887 |
https://github.com/rsyslog/rsyslog/pull/6121 |
| 888 |
to add Network Namespace support to imtcp module. This |
| 889 |
extends imtcp to support a wider range of Unix/Linux |
| 890 |
environments (or any environment supporting network |
| 891 |
namespaces). |
| 892 |
The imtcp module is enhanced to accept a NetworkNamespace |
| 893 |
parameter, both as a default at the module level, and |
| 894 |
on a per-instance basis. |
| 895 |
The tcpsrv module is enhanced to allow the NetworkNamespace |
| 896 |
to be applied to a listener's configuration parameters. |
| 897 |
Finally, the netstrm module is enhanced to switch namespaces |
| 898 |
before invoking the downstream (driver specific) LstnInit |
| 899 |
function. |
| 900 |
A new test imtcp-netns (and associated imtcp-netns-vg) is |
| 901 |
added to test this functionality. This must be run as root |
| 902 |
(technically it must be run by a user with CAP_SYS_ADMIN |
| 903 |
capabilities, as network namespace creating/change is |
| 904 |
required). |
| 905 |
A slight change to diag.sh is made to allow passing $RS_REDIR |
| 906 |
to valgrind (as $RS_REDIR is used in the imtcp-netns.sh |
| 907 |
test for some negative cases). |
| 908 |
Thanks to Billie Alsup for the patch. |
| 909 |
- 2025-11-25: mmanon: fixed data race issue in pseudonymization handling |
| 910 |
Thanks to Jan Gerhards for the patch. |
| 911 |
- 2025-11-24: mmsnareparse: add regex support for trailing data removal |
| 912 |
Add ignoreTrailingPattern.regex parameter to support POSIX extended regular |
| 913 |
expressions for dynamic trailing data removal. |
| 914 |
- 2025-11-21: mmsnareparse: add ignoreTrailingPattern parameter |
| 915 |
Add configurable mechanism to detect and remove trailing extra-data sections |
| 916 |
from messages before parsing. |
| 917 |
- 2025-11-17: mmsnareparse: add Sysmon event support |
| 918 |
Add support for Microsoft Sysinternals Sysmon events via an external JSON |
| 919 |
definition file. |
| 920 |
- 2025-11-12: omhttp: added explicit splunk HEC profile |
| 921 |
permits easier configuration with good defaults. |
| 922 |
Thanks to github user shinigami35 for the patch. |
| 923 |
- 2025-11-07: imkafka: Implement Kafka Metrics and new pstats format |
| 924 |
* Adapted omkafka pstats counters to the consumer imkafka modules. |
| 925 |
* Implemented both global (module-level) and local (topic+cg-level) metrics. |
| 926 |
* Added support for librdkafka metrics and JSON emissions. |
| 927 |
* Updated impstats to include new format="zabbix" compatible with Zabbix LLD. |
| 928 |
Thanks to MRedbourne for the patch. |
| 929 |
- 2025-11-03: content_count_check: use optional file argument if provided |
| 930 |
Thanks to Attila Lakatos for the patch. |
| 931 |
- 2025-10-30: omhttp: Implement optional per destination server stats |
| 932 |
Thanks to github user shinigami35 for the patch. |
| 933 |
- 2025-10-30: omhiredis: support UDS redis server address |
| 934 |
Thanks to github user Appla for the patch. |
| 935 |
- 2025-10-29: omelasticsearch: add apikey authentication |
| 936 |
Add support for APIKEY authentication, which is recommended by Elasticsearch. |
| 937 |
- 2025-10-28: net: Add IP address SAN support |
| 938 |
Thanks to Sebastien Deronne for the patch. |
| 939 |
- 2025-10-15: ossl bugfix: ensure peer cert is freed in osslChkPeerAuth |
| 940 |
Ensure osslChkPeerAuth starts with a null peer-certificate pointer and |
| 941 |
frees any retrieved X509 certificate so OpenSSL allocations from |
| 942 |
SSL_get_peer_certificate do not leak after TLS handshakes. |
| 943 |
Thanks to Attila Lakatos for the patch. |
| 944 |
- 2025-10-13: Add MbedTLS netstream driver. |
| 945 |
Thanks to Stephane Adenot for the patch and the great cooperation on this PR. |
| 946 |
- 2025-10-07: imptcp: fix null pointer dereference in error logging |
| 947 |
Prevents potential crashes when logging connection failures where peer |
| 948 |
name or IP information is unavailable. |
| 949 |
The compiler detected a potential null pointer dereference in the |
| 950 |
addSess() error cleanup path. When NULL_CHECK() macros fail and jump to |
| 951 |
finalize_it, the peerName and peerIP parameters could be NULL but were |
| 952 |
passed directly to propGetSzStr() in LogError(). |
| 953 |
Original error: ../../runtime/prop.h:66:18: error: potential null |
| 954 |
pointer dereference [-Werror=null-dereference] 66 | return |
| 955 |
(pThis->len < CONF_PROP_BUFSIZE) ? pThis->szVal.sz : pThis->szVal.psz; | |
| 956 |
Thanks to Attila Lakatos for the patch. |
| 957 |
- 2025-10-06: CI: fix imtcp-tls-gibberish being executed in non-TLS builds |
| 958 |
This tool requires rsyslog to build with TLS support. If not present, |
| 959 |
the test will always fail. This is solved by executing it only if gnutls |
| 960 |
is enabled. As this is a fequently tested environment, this does not |
| 961 |
reduce test coverage. It is easier to do then checking for both gnutls |
| 962 |
and openssl. |
| 963 |
Many thanks to Michael Biebl for bringing this to our attention. |
| 964 |
closes https://github.com/rsyslog/rsyslog/issues/6224 |
| 965 |
---------------------------------------------------------------------------------------- |
| 966 |
Scheduled Release 8.2510.0 (aka 2025.10) 2025-10-14 |
| 967 |
- overall improved documentation via a large set of topic updates. |
| 968 |
- overall improvments in build systems and CI testing |
| 969 |
- overall refectoring to make code better understandable (e.g. |
| 970 |
more doxygen Comments) |
| 971 |
- 2025-10-05: mmjsonparse: add find-json mode for embedded JSON |
| 972 |
Plain JSON embedded in text is common in production logs. This change |
| 973 |
lets users parse such logs without cookies, improving ease of use and |
| 974 |
lowering onboarding friction while keeping legacy behavior intact. |
| 975 |
Before/After: cookie-only JSON -> find-json parses first top-level {}. |
| 976 |
Impact: Default behavior unchanged. New mode and counters are opt-in. |
| 977 |
- 2025-10-03: mmjsontransform: add experimental JSON dotted-key (un)flatten |
| 978 |
Real-world need: unflatten dotted JSON into nested objects, and optionally |
| 979 |
flatten back for downstream tools. This introduces a general transformer |
| 980 |
with a dedicated output tree. Interface is intentionally unstable. |
| 981 |
Impact: New module behind --enable-mmjsontransform; no default behavior |
| 982 |
changes. New tests and docs added. Parameters and behavior may change. |
| 983 |
Add mmjsontransform, a message modification module that rewrites dotted |
| 984 |
JSON keys. By default it "unflattens" an input object to nested containers |
| 985 |
and stores the result in a configured output property. A mode parameter |
| 986 |
also supports "flatten" to collapse nested trees into dotted keys. The |
| 987 |
action refuses to overwrite an existing destination, validates that input |
| 988 |
is a JSON object, and reports conflicts with precise key paths. Per-action |
| 989 |
config is immutable; workers hold pointers only, so no extra locking. Docs |
| 990 |
(Sphinx + parameter refs) and doxygen coverage included, plus a regression |
| 991 |
test exercising nested arrays/objects. Build system and CI scripts gain |
| 992 |
--enable-mmjsontransform and a basic test hook. An experimental companion |
| 993 |
mmjsonrewrite module is wired similarly for dotted-key expansion. |
| 994 |
Before/After: Previously no built-in JSON un/flatten; now an action can |
| 995 |
unflatten (default) or flatten JSON into a separate message property. |
| 996 |
- 2025-10-01: mmsnareparse: comprehensive Windows Security Event Log parser |
| 997 |
Implement complete NXLog Snare-formatted Windows Security event parser |
| 998 |
with multi-format support (RFC5424/RFC3164), 100+ field patterns, and |
| 999 |
advanced features including GUID/IP/timestamp type detection, runtime |
| 1000 |
configuration, enhanced validation modes, and comprehensive test suite. |
| 1001 |
Features: |
| 1002 |
- Parse major Windows security event types (4624, 4625, 4634, etc.) |
| 1003 |
- Extract structured data into configurable JSON containers (!win default) |
| 1004 |
- Handle modern Windows telemetry (LAPS, TLS, WDAC, WUFB, Kerberos) |
| 1005 |
- Type-aware parsing with validation and fallback handling |
| 1006 |
- Runtime configuration support for custom field patterns |
| 1007 |
- Thread-safe design with no shared mutable state |
| 1008 |
- 9 comprehensive test scripts covering all functionality |
| 1009 |
Impact: Enables structured analysis of Windows Security events for |
| 1010 |
SIEM integration, threat detection, and compliance reporting while |
| 1011 |
preserving original payloads for forensic investigation. |
| 1012 |
- 2025-10-01: omkafka: restore producev fallback for older librdkafka |
| 1013 |
Reason: keep omkafka building across librdkafka versions, including |
| 1014 |
newer distro toolchains and legacy environments, to reduce friction |
| 1015 |
for users and CI/container images. |
| 1016 |
Before: builds failed or used unsupported code paths with some |
| 1017 |
librdkafka versions; header config could silently miscompile. |
| 1018 |
After: feature-detect produceva/headers, fall back to legacy produce, |
| 1019 |
and reject header config when not supported. |
| 1020 |
Impact: possible configuration-time error if kafka headers are set |
| 1021 |
but the installed librdkafka lacks header support. |
| 1022 |
This change introduces compile-time feature detection. When |
| 1023 |
produceva is available, we use the vector API; otherwise we fall back |
| 1024 |
to the classic produce path and adjust error handling accordingly. |
| 1025 |
Header support is compiled only when the library provides it; the |
| 1026 |
instance struct and cleanup are guarded to match. A missing |
| 1027 |
RD_KAFKA_VERSION is defined to avoid preprocessor failures. No queue |
| 1028 |
or OMODTX semantics are changed; HUP and stats remain unaffected. No |
| 1029 |
public API/ABI is exposed from omkafka, so impact is limited to build |
| 1030 |
and configuration behavior. |
| 1031 |
- 2025-09-29: omelasticserach: detect server version and adjust config |
| 1032 |
On startup, omelasticsearch now detects server version and platform |
| 1033 |
(ES/openSearch) and adjust config parameters accordingly. This is |
| 1034 |
also a change that we can use as a base for further auto-tuning. |
| 1035 |
- 2025-09-29: add source port to imtcp user-targeting messages |
| 1036 |
All error, warning etc messages that specify the remote peer via |
| 1037 |
hostname or IP now also give the source port to provide a unified |
| 1038 |
logging experience. |
| 1039 |
- 2025-09-28: ci: add openEuler 24.03 LTS container and CI job |
| 1040 |
Add an openEuler 24.03 LTS development container and wire it into CI to |
| 1041 |
validate builds on that platform. |
| 1042 |
Why: expand RPM-based coverage and catch distro-specific build issues |
| 1043 |
early. |
| 1044 |
Impact: CI-only. No runtime or API changes. |
| 1045 |
Before: no openEuler container or CI job; build breakage went unnoticed. |
| 1046 |
After: dedicated container and matrix entry compile and run unit tests |
| 1047 |
on openEuler. |
| 1048 |
Notes: module and test coverage may differ on openEuler; track gaps in |
| 1049 |
follow-up issues. |
| 1050 |
- 2025-09-25: omelasticsearch: omit _type by default; use typeless endpoint |
| 1051 |
Newer Elasticsearch versions reject typed APIs. This adapts the module |
| 1052 |
so shipping works out of the box with modern clusters and keeps the |
| 1053 |
codebase aligned with typeless ES conventions. |
| 1054 |
Impact: bulk metadata no longer includes _type unless explicitly set. |
| 1055 |
Old setups that relied on a default "events" type (ES < 8) may need |
| 1056 |
explicit configuration. |
| 1057 |
Technically, the default searchType is now NULL |
| 1058 |
(OMES_SEARCHTYPE_DEFAULT). setPostURL continues to route requests to |
| 1059 |
the typeless /_doc endpoint, but bulk metadata is generated without a |
| 1060 |
_type field when searchType is unset. The legacy default "events" for |
| 1061 |
ES < 8 is removed. Tests are updated to stop passing searchType, and |
| 1062 |
the searchType-empty test is dropped to reflect the new default. No |
| 1063 |
OMODTX or action-queue semantics change. |
| 1064 |
Closes: https://github.com/rsyslog/rsyslog/issues/5060 |
| 1065 |
- 2025-09-25: template: add jsonftree option for nested jsonf output |
| 1066 |
We want easy nested JSON to match common schemas (e.g., Elastic ECS) |
| 1067 |
without external processors. This introduces an opt-in mode so existing |
| 1068 |
jsonf users keep exact behavior while enabling structured output when |
| 1069 |
requested. |
| 1070 |
Impact: No change unless option.jsonftree is enabled. With jsonftree, |
| 1071 |
dotted outnames render as nested objects; empty containers are skipped. |
| 1072 |
On name collisions (object vs value), we fall back to flat rendering. |
| 1073 |
Before: jsonf always emitted flat name/value pairs, even for dotted |
| 1074 |
outnames. After: jsonf remains flat by default; enabling jsonftree makes |
| 1075 |
"host.hostname" and "host.ip" render as {"host":{"hostname":...,"ip":...}}. |
| 1076 |
Technically, we add option.jsonftree to templates. When set, we lazily |
| 1077 |
build a per-template JSON tree (tplJsonNode) from dotted segments and |
| 1078 |
render it in one pass, reusing existing jsonf formatting for leaves. |
| 1079 |
The tree state is tracked on the template and freed on template delete. |
| 1080 |
Config parsing enforces mutual exclusivity among sql, stdsql, json, |
| 1081 |
jsonf, and jsonftree. Constants record bJSONf to reuse serialized |
| 1082 |
fragments. Tests cover nested output and pure-json cases using |
| 1083 |
option.jsonftree. |
| 1084 |
- 2025-09-23: musrmsg bugfix: potential null pointer dereference causes segfault |
| 1085 |
If there is no user in the data base with user ID uid, getpwuid() returns a null |
| 1086 |
pointer value. Therefore, it is necessary to check the return value of the function |
| 1087 |
to prevent segfault caused by dereference of null pointer. |
| 1088 |
In addition: |
| 1089 |
[1] Free the memory allocated for the current session identifier sessions_list[j] |
| 1090 |
to prevent a memory leak. |
| 1091 |
[2] Use LogError instead of dbgprintf to display error reports to the user. |
| 1092 |
Many thanks to Qiumiao Zhang for the patch. |
| 1093 |
- 2025-09-22: mmleefparse: new message modification module for LEEF format |
| 1094 |
This parses the LEEF message (if it is) and creates a JSON subtree. |
| 1095 |
The current implementation is PoC and will be provided to gather |
| 1096 |
early review. |
| 1097 |
Changes, including breaking changes, may happen in future versions of |
| 1098 |
this module. |
| 1099 |
- 2025-09-21: tests/omelasticsearch: align suite with ES 7.14, reduce flakiness |
| 1100 |
Non-technical: test flakiness makes it hard to validate unrelated changes. |
| 1101 |
This aligns omelasticsearch tests with ES 7.14 defaults to get the |
| 1102 |
testbench back to a deterministic state and pave the way for further |
| 1103 |
modernization. |
| 1104 |
Impact: test behavior changes; one test skipped; CI coverage slightly reduced. |
| 1105 |
Before: tests mixed ES 6-era types and ad-hoc tarball picks; deprecation |
| 1106 |
checks intermittently failed and retries were brittle. After: tests use the |
| 1107 |
7.14.1 tarball via diag.sh default, typeless mappings, and `_doc` type in |
| 1108 |
omelasticsearch actions; known-flaky bulk-retry test is skipped for now. |
| 1109 |
- 2025-09-17: imtcp: warn on TLS handshakes received on plain listeners |
| 1110 |
Admins often report "gibberish" when a TLS-enabled sender connects to a |
| 1111 |
plain imtcp port. Making the mismatch explicit reduces operator confusion |
| 1112 |
and support churn, and points directly to remediation. |
| 1113 |
Impact: logs one explicit error per mismatched connection; no change to |
| 1114 |
parsing or transport on plain listeners. |
| 1115 |
Before/After: before, ClientHello bytes were ingested as binary with no |
| 1116 |
hint; after, imtcp detects a TLS ClientHello on ptcp and logs a clear |
| 1117 |
message with a troubleshooting URL. |
| 1118 |
Technically, we add a small per-session probe in tcps_sess_t and sample |
| 1119 |
the first 5 bytes of new sessions. If the record header matches a TLS |
| 1120 |
handshake (type 0x16, version 0x03.00–0x04, length 40–16384) and the |
| 1121 |
listener is plain TCP (streamDriver.mode=0), we emit a single error and |
| 1122 |
disable further probing for that session. The probe is called from |
| 1123 |
DataRcvd() and returns RS_RET_SERVER_NO_TLS when triggered; the session |
| 1124 |
is otherwise left untouched. |
| 1125 |
Runtime: introduce RS_RET_SERVER_NO_TLS (-2465) to tag the condition. |
| 1126 |
Docs: add imtcp troubleshooting section and a dedicated FAQ page. |
| 1127 |
Tests/tools: add test imtcp-tls-gibberish.sh and extend tcpflood with |
| 1128 |
-H to send only a ClientHello (OpenSSL and GnuTLS paths tolerate early |
| 1129 |
termination and non-blocking I/O for this mode). |
| 1130 |
- 2025-09-17: build: fix err on systems with pkg-config but not libgcrypt-config |
| 1131 |
Build did not succeed on some platforms due to invalid confgure check. |
| 1132 |
This has been resolved. |
| 1133 |
The AC_CHECK_PROG macro requires a value-if-found parameter |
| 1134 |
and an optional value-if-not-found parameter |
| 1135 |
Fix by adding the value-if-found parameter |
| 1136 |
Also handle the situation where there's no libgcrypt.pc |
| 1137 |
file for libgcrypt versions before 1.8.4 |
| 1138 |
Thanks to Zhang Wen for analysis and patch. |
| 1139 |
- 2025-09-16: core: add fromhost-port message property |
| 1140 |
Some deployments need to disambiguate multiple senders sharing an IP, |
| 1141 |
for example autossh or similar tunnel setups. Exposing the source port |
| 1142 |
improves observability and lets pipelines key on a stable tuple. |
| 1143 |
Impact: new property/JSON field; tcps_sess IF v4; out-of-tree modules |
| 1144 |
must rebuild. |
| 1145 |
Before: messages exposed fromhost and fromhost-ip only. |
| 1146 |
After: messages also expose fromhost-port and jsonmesg includes it. |
| 1147 |
Introduce PROP_FROMHOST_PORT and wire it through msg.{h,c}. For TCP, |
| 1148 |
capture the remote port on accept, store it in tcps_sess, and attach it |
| 1149 |
to the msg on submit. For other inputs, resolveDNS derives the port from |
| 1150 |
the sockaddr when available; local inputs return an empty string. Add a |
| 1151 |
getter, duplication and destructor handling, and name<->ID mapping. Add |
| 1152 |
the field to jsonmesg output. Update docs, lexer keywords, and the |
| 1153 |
external plugin interface doc (property is modifiable). Bump |
| 1154 |
tcps_sessCURR_IF_VERSION to 4 and add SetHostPort() to the interface. |
| 1155 |
Include a focused test (fromhost-port.sh) that verifies the property. |
| 1156 |
Non-technical rationale: allow identification by (fromhost-ip, |
| 1157 |
fromhost-port) where IP alone is shared across systems (e.g., autossh). |
| 1158 |
- 2025-09-15: tls: process TLS 1.3 KeyUpdate during send (ossl/gtls) |
| 1159 |
Handle post-handshake KeyUpdate by driving a minimal non-blocking read when the |
| 1160 |
TLS library requests READ during Send(). This prevents stalls when servers send |
| 1161 |
TLS 1.3 KeyUpdate and aligns behavior with RFC 8446 §4.6.3. |
| 1162 |
- nsd_ossl.c: SSL_ERROR_WANT_READ => small SSL_read(), then retry write |
| 1163 |
- nsd_gtls.c: E_AGAIN/E_INTERRUPTED with READ direction => small gnutls_record_recv(), then retry write |
| 1164 |
Backward-compatible and only active when the TLS stack signals a need to read. |
| 1165 |
Implemented with help for Cursor tool by Andre Lorbach. |
| 1166 |
closes: https://github.com/rsyslog/rsyslog/issues/5627 |
| 1167 |
- 2025-09-12: docker: fix collector, udp and tcp could not be enabled individually |
| 1168 |
If either one was disabled, so was the other one as well. |
| 1169 |
- 2025-09-11: ommongodb: add support for mongo-c-driver v2 |
| 1170 |
Update pkg-config check for v2 of mongo-c-driver |
| 1171 |
The name of the pkg-config file has changed from libmongoc-1.0.pc to |
| 1172 |
mongoc2.pc. First try the new version and keep the old version as |
| 1173 |
fallback. |
| 1174 |
In version 1.13.0, the headers were re-organized and the preferred way |
| 1175 |
of including the headers are <mongoc/mongo.h> and <bson/bson.h>. |
| 1176 |
Forwarding headers to keep backwards compatibility were introduced that |
| 1177 |
have been removed in v2. |
| 1178 |
To support building on CentOS 7 and Ubuntu 18, which ship versions older |
| 1179 |
than 1.13.0, keep using the old include names for v1 and use the new |
| 1180 |
include names for v2. |
| 1181 |
Once the minimum version of mongo-c-driver is bumped to >= 1.13.0, this |
| 1182 |
fallback can be dropped. |
| 1183 |
Thanks: Michael Biebl for the patch and his help on the issue in general. |
| 1184 |
- 2025-09-10: config script: add b64_decode function |
| 1185 |
This PR provides a new Rainerscript function: b64_decode. |
| 1186 |
This function is based on RFC4648. |
| 1187 |
Thanks to Kevin Guillemot for the patch. |
| 1188 |
- 2025-09-09: imdocker: Add image name to metadata fields |
| 1189 |
Exposes the image name and tag of the source container (what the Docker API simply |
| 1190 |
calls Image) as an additional metadata value alongside the existing ones. |
| 1191 |
Why? |
| 1192 |
While the ImageID is available today, a SHA hash is not a particularly user-friendly |
| 1193 |
way to identify what is actually generating the logs. |
| 1194 |
The image name provides a simple, easy-to-read identifier for the common scenario |
| 1195 |
where an unmodified application image is used. |
| 1196 |
Thanks to Will Robertson for the patch. |
| 1197 |
- 2025-09-09: ci: improve Codecov uploads; deflake kafka topics |
| 1198 |
Motivation: code coverage reports were incomplete. This lays a better |
| 1199 |
base for consistent reporting via GitHub Actions, with room for follow-ups. |
| 1200 |
It also removes a test flake source in Kafka jobs. |
| 1201 |
Impact: CI/tests only; no runtime behavior or ABI changes expected. |
| 1202 |
Before: Coverage uploads were inconsistent; Kafka tests could hang while |
| 1203 |
reading from /dev/urandom to generate topic names. |
| 1204 |
After: Coverage is collected with lcov and uploaded via a dedicated GH |
| 1205 |
Action; Kafka topics use fast $RANDOM-based hex, avoiding early-boot |
| 1206 |
entropy stalls. |
| 1207 |
- 2025-09-06: rainerscript: add toupper() function |
| 1208 |
Add a RainerScript function to convert strings to uppercase. The |
| 1209 |
implementation mirrors tolower() but operates per-byte using |
| 1210 |
toupper(). Tests demonstrate the new function, documentation and |
| 1211 |
ChangeLog entries added. |
| 1212 |
closes: https://github.com/rsyslog/rsyslog/issues/3666 |
| 1213 |
- 2025-09-06: devtools: Specify usage of clang-format-18 to pin v18 |
| 1214 |
Thanks to Will Robertson for the patch. |
| 1215 |
- 2025-09-05: CI: re-enabled CodeCov integration |
| 1216 |
There may still be some quirks, but basically it works again. |
| 1217 |
- 2025-09-05: doc: restore missing doc files in configure.ac |
| 1218 |
The docs build has been failing because doc/source/conf_helpers.py was |
| 1219 |
removed, but Sphinx imports it from conf.py. This reintroduces the |
| 1220 |
helper module so the documentation can be built again. |
| 1221 |
Regression introduced by: |
| 1222 |
https://github.com/rsyslog/rsyslog/commit/ba762b653331f3c97ba2da91cf6a0ab602e6243c |
| 1223 |
Impact: restores local and CI doc builds; no runtime behavior change. |
| 1224 |
Before: sphinx-build failed with ImportError for conf_helpers. |
| 1225 |
After: sphinx-build completes successfully. |
| 1226 |
- 2025-09-04: build: use pkg_config for libgcrypt |
| 1227 |
This fixes failing builds in newer platforms. |
| 1228 |
Old method had been depricated and finally is no longer available. We fall |
| 1229 |
back to old method if pkg_config for libgcrypt is not available on the build |
| 1230 |
system. |
| 1231 |
Thanks to github user schrotthaufen for the patch. |
| 1232 |
- 2025-09-03: omrelp: keep-alive support added |
| 1233 |
- 2025-09-03: build: some cross-platform enhancents, especially for |
| 1234 |
MacOS/Darwin |
| 1235 |
- 2025-09-03: tests: add -w port file option to tcpflood |
| 1236 |
Adds -w option to tcpflood to write its local port to a file. |
| 1237 |
This permits to craft tests which need the source port number from the |
| 1238 |
connecting client. |
| 1239 |
- 2025-09-03: imhttp: optional auth + Content-Length for metrics/health |
| 1240 |
Harden default endpoints for cloud-native use: make health/metrics |
| 1241 |
scrapes proxy-friendly and allow locking them down with Basic Auth. |
| 1242 |
This aligns imhttp with common Kubernetes/Prometheus patterns and |
| 1243 |
supports metrics-only deployments. |
| 1244 |
Impact: /metrics now exports full rsyslog stats with Content-Length; |
| 1245 |
health and metrics can be gated via htpasswd; unified 500 on failures. |
| 1246 |
Technical details: |
| 1247 |
- Add module params: healthCheckBasicAuthFile and metricsBasicAuthFile. |
| 1248 |
When set, attach a Basic Auth handler that reads an htpasswd file; |
| 1249 |
reuse the same handler for per-input endpoints by passing the file via |
| 1250 |
cbdata. |
| 1251 |
- Rework Prometheus handler to collect data through statsobj in |
| 1252 |
Prometheus format. Accumulate lines into a growable buffer with |
| 1253 |
overflow checks, append an imhttp_up gauge, then reply with an |
| 1254 |
explicit Content-Length and close the connection. |
| 1255 |
- Fix metrics buffer termination to use a single NUL byte; prevent a |
| 1256 |
leak when buffer growth fails; consolidate error paths so the buffer is |
| 1257 |
freed and a single HTTP 500 is emitted. |
| 1258 |
- Docs: describe new auth options, clarify default paths, document that |
| 1259 |
metrics responses carry Content-Length, and add examples (including |
| 1260 |
metrics-only setups). |
| 1261 |
Before/After: metrics previously exposed a minimal body without auth; |
| 1262 |
now they export full rsyslog stats with optional Basic Auth and a |
| 1263 |
Content-Length header. |
| 1264 |
- 2025-09-02: imrelp: fix potential segfault on termination |
| 1265 |
A segfault could occur during module termination within the rsyslog shutdown |
| 1266 |
process. That in turn could lead to e.g. damage state files or disk queue |
| 1267 |
files. |
| 1268 |
Thanks to Sourav Sharma for analyzing and fixing this issue. |
| 1269 |
- 2025-08-28: core/queue: some refactoring for better code clarity |
| 1270 |
The enhanced clarity not only helps with understanding but also is the bases |
| 1271 |
for better manual and automatted analysis, thus maintenance. |
| 1272 |
- 2025-08-28: CI: ensure static analyzer script only runs when actually needed |
| 1273 |
Also |
| 1274 |
- auto-abort on re-push |
| 1275 |
- some minor tweaks |
| 1276 |
- 2025-08-28: ci: add spellcheck workflow |
| 1277 |
Add a GitHub Actions job using codespell to check Sphinx docs in doc/source. |
| 1278 |
This helps catch spelling errors early and improves documentation quality. |
| 1279 |
With help from AI-Agent: ChatGPT |
| 1280 |
- 2025-08-28: CI: add github action security analysis |
| 1281 |
Thanks to Kevin Backhouse for the patch. |
| 1282 |
- 2025-08-28: doc: systematic typo fixes for documentation files, add checker |
| 1283 |
After we received single typo fixes, we carried out a systematic approach |
| 1284 |
for the rest of the documentation. It should now be typo-free. |
| 1285 |
As a safeguard, we added a new CI action for doc spellchecking. |
| 1286 |
- 2025-08-28: doc: fix typos |
| 1287 |
Thanks to Madhushree and Naisthecreator for the patch. |
| 1288 |
- 2025-08-28: doc: add rsyslog issue assistant build files |
| 1289 |
---------------------------------------------------------------------------------------- |
| 1290 |
Scheduled Release 8.2508.0 (aka 2025.08) 2025-08-26 |
| 1291 |
|
| 1292 |
IMPORTANT NOTE TO Package Builders / Distros: |
| 1293 |
|
| 1294 |
The documentation has been integrated back into the main repository, in the |
| 1295 |
doc/ subdirectory. As such, there is no second doc tarball available and |
| 1296 |
package build most probably needs adjustments. |
| 1297 |
|
| 1298 |
This release had the overall theme of improving code quality, including the |
| 1299 |
initial introduction of doxygen comments, improving the user experience by |
| 1300 |
documentation updates, and implementing the rsyslog responsible "AI First" |
| 1301 |
strategy. Note that while AI generated code is part of the release, all |
| 1302 |
contributions, AI or human, follow the same rigourus review and CI procedures |
| 1303 |
with the final acceptance is by a maintainer. |
| 1304 |
|
| 1305 |
AI slop is not accepted and this release addresses AI slop by better parametrizing |
| 1306 |
agents in regard to code generation and streamlining code so that AIs better |
| 1307 |
understand it. This is an ongoing effort. |
| 1308 |
|
| 1309 |
- 2025-08-25: tcpsrv: refactor IO loop; rearm-before-unlock; poll path |
| 1310 |
Improve maintainability and robustness of the TCP server by clarifying |
| 1311 |
locking/ownership, tightening invariants, and simplifying queueing. |
| 1312 |
Also fix a long-standing pragma macro typo across the tree. |
| 1313 |
Impact: Internal behavior only. EPOLL re-arm now occurs while holding |
| 1314 |
pSess->mut; starvation cap counts only successful reads. |
| 1315 |
Before/After: |
| 1316 |
Before: EPOLL re-arm happened after leaving the critical section; read |
| 1317 |
starvation cap counted loop iterations; closeSess() sometimes unlocked; |
| 1318 |
select_* helpers used on non-epoll path; enqueueWork() returned status. |
| 1319 |
After: EPOLLONESHOT is re-armed before unlocking; starvation cap counts |
| 1320 |
only RS_RET_OK reads; closeSess() never unlocks; poll_* helpers replace |
| 1321 |
select_*; enqueueWork() is void (best-effort). |
| 1322 |
Technical details: |
| 1323 |
- Replace notifyReArm() with rearmIoEvent() (EPOLL_CTL_MOD with |
| 1324 |
EPOLLONESHOT|EPOLLET; asserts efd/sock; logs on failure). |
| 1325 |
- doReceive(): explicit state machine; would-block path re-arms before |
| 1326 |
unlock; close path unlocks then calls closeSess(); starvation handoff |
| 1327 |
enqueues without re-arming. |
| 1328 |
- Initialize ioDirection for listener and session descriptors; add |
| 1329 |
assert(sock >= 0) and widespread ATTR_NONNULL annotations. |
| 1330 |
- startWrkrPool(): single finalize rollback (cancel/join partial |
| 1331 |
threads; destroy cond/mutex); stopWrkrPool(): destroy cond/mutex. |
| 1332 |
- enqueueWork(): FIFO append under lock and cond signal; returns void. |
| 1333 |
- Cleanup hardening on construct failure: free ppLstn, ppLstnPort, |
| 1334 |
ppioDescrPtr; free fromHostIP on SessAccept() error. |
| 1335 |
- Non-epoll: rename select_Add/Poll/IsReady -> poll_*; RunPoll() uses |
| 1336 |
poll_* and sets sane ioDirection defaults. |
| 1337 |
- Typo fix: standardize PRAGMA_IGNORE_Wswitch_enum in header and all |
| 1338 |
users (action.c, rainerscript.c, template.c, tcpsrv.c). |
| 1339 |
- 2025-08-25: omsendertrack: stop towards full completion of module. |
| 1340 |
Work towards full completion of the module’s interface as it exits PoC. |
| 1341 |
The new name senderid (formerly: template) matches intent (identify a |
| 1342 |
sender, not an output format) and avoids confusion. Also make state |
| 1343 |
persistence safer via atomic writes. |
| 1344 |
Merged a bit pre-completion in order to get a static analyzer fix |
| 1345 |
into the main code base. Some additional cleanup PR will follow. |
| 1346 |
State is much cleaner now than in PoC. |
| 1347 |
Impact: Configs must use senderid=; statefile is now required. Tests |
| 1348 |
and docs updated. |
| 1349 |
Before/After: action(... template="name") -> action(... senderid="name"). |
| 1350 |
Technical details: |
| 1351 |
- Replace the config parameter and instance field; drop legacy template |
| 1352 |
parsing in parseSelectorAct. The module now reads only senderid=. |
| 1353 |
- Enforce required statefile (descriptor + runtime) and cache a temp |
| 1354 |
path "<statefile>.tmp" to ensure rename() is atomic. Provide a |
| 1355 |
one-time fallback build if the cache is missing (e.g., reload flow). |
| 1356 |
- Add built-in template "StdOmSenderTrack-senderid" yielding |
| 1357 |
"%fromhost-ip%" and use it as the default senderid template. |
| 1358 |
- Improve memory ownership (free cached temp path/default template) and |
| 1359 |
keep existing locking/queue semantics unchanged. |
| 1360 |
- Update tests to use senderid= and prune PoC doc note accordingly. |
| 1361 |
see also: https://github.com/rsyslog/rsyslog/issues/5599 |
| 1362 |
- 2025-08-20: AI: add support files for github copilot |
| 1363 |
helps craft better patches via copilot |
| 1364 |
- 2025-08-18: imjournal: fix double sd_journal_close() during thread cancellation |
| 1365 |
When the main thread cancel imjournal thread, the thread exits without |
| 1366 |
setting sd_journal to NULL because sd_journal_close() contain cancel point. |
| 1367 |
This leads to a double free scenario where: |
| 1368 |
1. The thread cancel occurs during sd_journal_close() |
| 1369 |
2. The main thread then calls imjournal's afterrun function |
| 1370 |
3. sd_journal_close() is called again on the already-freed sd_journal |
| 1371 |
Thanks for the patch toxietangxin |
| 1372 |
- 2025-08-18: omhttp: migrate to OMODTX; prep for project-supported status |
| 1373 |
Why: Modernize omhttp so HTTP forwarding is viable and maintainable in |
| 1374 |
current deployments (incl. Docker). Align the module with core-supported |
| 1375 |
interfaces, reduce maintenance risk, and pave the way to promote it from |
| 1376 |
contrib to an officially supported module. |
| 1377 |
Technical overview (conceptual): |
| 1378 |
- Switch plugin API from legacy TXIF (doAction) to OMODTX |
| 1379 |
(commitTransaction). Update query entry points accordingly. |
| 1380 |
- Keep beginTransaction for batch init; fold the final flush from |
| 1381 |
endTransaction into commitTransaction per OMODTX. |
| 1382 |
- Preserve external behavior: batching thresholds (maxBatchSize and |
| 1383 |
maxBatchBytes), dynRestPath handling, statistics, and HUP behavior. |
| 1384 |
- In commitTransaction, process all records in one pass and submit |
| 1385 |
batches when thresholds are crossed; non-batch mode posts per record. |
| 1386 |
- Retry test adjusted to tolerate duplicates during migration |
| 1387 |
(omhttp-retry.sh), reflecting current OMODTX replay characteristics. |
| 1388 |
Addresses from #5957: |
| 1389 |
- Core modernization of omhttp to the project’s current module |
| 1390 |
interface, suitable for containerized use cases. |
| 1391 |
- First step toward “project-supported” status by aligning with the |
| 1392 |
supported core API and updating tests. |
| 1393 |
Planned follow-ups (separate commits): |
| 1394 |
- Fix dynRestPath after a batch flush (set new path right after |
| 1395 |
initializeBatch). |
| 1396 |
- Revisit commit/replay semantics to minimize duplicates under retry, or |
| 1397 |
document dup-tolerant behavior and test both modes. |
| 1398 |
- Verify and free batch.restPath and headerBuf; add focused tests (path |
| 1399 |
change mid-batch, maxBatchBytes edges, TLS/gzip, HUP reinit). |
| 1400 |
- Documentation and packaging steps required for “project-supported” |
| 1401 |
status (module docs, release notes, CI/packaging policy). |
| 1402 |
- Evaluate if a compatibility query hook is needed for older cores. |
| 1403 |
see also: https://github.com/rsyslog/rsyslog/issues/5957 |
| 1404 |
- 2025-08-15: rainerscript: enhanced backticks support ${VAR} |
| 1405 |
This implements brace-style env vars inside backticks with `echo` and |
| 1406 |
fixes termination of unbraced `$VAR`. Most importantly, variables can |
| 1407 |
now be adjacent to static text (e.g., `foo${ENV}bar`), which previously |
| 1408 |
did not work and caused confusion. This aligns behavior with common |
| 1409 |
bash expectations. |
| 1410 |
Why |
| 1411 |
- Users expect `${VAR}` and `$VAR!` to expand while keeping punctuation. |
| 1412 |
- Concatenations like `foo${ENV}bar` are common and should be valid. |
| 1413 |
What |
| 1414 |
- Add support for braced variables `${VAR}` with proper `}` handling. |
| 1415 |
- For unbraced `$VAR`, stop the name at the first non `[A-Za-z0-9_]` |
| 1416 |
char and emit that char (e.g., `!`, `.`) as literal output. |
| 1417 |
- Improve error handling for overlong env var names. |
| 1418 |
- Keep other shell features (e.g., `$(pwd)`) unsupported by design. |
| 1419 |
Docs |
| 1420 |
- Update `constant_strings.rst` to document `${VAR}`, the new |
| 1421 |
termination rules, and examples including `foo${ENV}bar` and `$VAR!`. |
| 1422 |
Tests |
| 1423 |
- Add `rscript_backticks_braces_envvar.sh` for `${VAR}` support. |
| 1424 |
- Add `rscript_backticks_static_text.sh` for `$VAR!` and adjacency. |
| 1425 |
- Convert `rscript_backticks_empty_envvar-vg.sh` to non-VG variant and |
| 1426 |
adjust `tests/Makefile.am`. |
| 1427 |
Compatibility |
| 1428 |
- Backward compatible. Changes affect only previously broken edge cases. |
| 1429 |
- 2025-08-13: improved developer documentation |
| 1430 |
- internal locking needs / action interface |
| 1431 |
- control flow for actions / queues |
| 1432 |
- removes any doubts that might have existed due to missing docs |
| 1433 |
- improves onboarding new developers |
| 1434 |
- 2025-08-01: core: migrate callback invocations to type-safe signatures |
| 1435 |
Replace opaque/variadic callback usage with explicit, type-safe function |
| 1436 |
signatures to reduce undefined behavior and clarify intent. |
| 1437 |
Adapter helpers bridge the existing APIs without raw variadic casts, enabling |
| 1438 |
the transition incrementally. Callback setup sites are standardized for |
| 1439 |
consistent readability. This tightens the contract on callbacks, eases future |
| 1440 |
refactoring, and makes their roles more self-documenting. |
| 1441 |
Inspired by https://github.com/rsyslog/rsyslog/pull/5882 |
| 1442 |
With AI support: Codex, Gemini |
| 1443 |
- 2025-08-01: Fix: Remove unsafe function pointer casting in cfsysline.c |
| 1444 |
- Replaced function pointer casting with direct handler calls for type safety |
| 1445 |
- Fixes crashes (BUS errors) on ARM64 macOS 14+ due to strict calling conventions |
| 1446 |
- Root cause identified by ThreadSanitizer |
| 1447 |
- Eliminates undefined behavior, improves code safety |
| 1448 |
On MacOS, this fixes a potential segfault condition. |
| 1449 |
- 2025-08-01: ossl: Add PrioritizeSAN option to OpenSSL network stream driver |
| 1450 |
Add OpenSSL equivalent of existing GnuTLS PrioritizeSAN functionality |
| 1451 |
implemented in commit 937e278fdf51c3e21ebd3acf05f9d1b8649ce2c5 |
| 1452 |
https://docs.openssl.org/1.1.1/man3/X509_check_host |
| 1453 |
> The X509_CHECK_FLAG_NEVER_CHECK_SUBJECT flag causes the function to |
| 1454 |
> never consider the subject DN even if the certificate contains no |
| 1455 |
> subject alternative names of the right type (DNS name or email address |
| 1456 |
> as appropriate); the default is to use the subject DN when no |
| 1457 |
> corresponding subject alternative names are present. |
| 1458 |
0x10100004L corresponds to OpenSSL 1.1.0-pre4 in which |
| 1459 |
X509_CHECK_FLAG_NEVER_CHECK_SUBJECT first appeared. |
| 1460 |
Thanks to Corey Siltala for the patch. |
| 1461 |
- 2025-08-01: core: fix race condition in imtcp when closing sessions |
| 1462 |
This commit fixes a race condition that could occur when two threads tried to close |
| 1463 |
the same TCP session simultaneously. This could lead to an "epoll_ctl failed: |
| 1464 |
Bad file descriptor" error message. |
| 1465 |
The fix introduces an atomic flag `being_closed` to the `tcps_sess_t` struct. |
| 1466 |
This flag is used to ensure that the session-closing logic is executed only once |
| 1467 |
per session. This commit also corrects the logic of the atomic check to prevent |
| 1468 |
the race condition correctly. |
| 1469 |
This was created with the help of Google Jules AI coding agent. |
| 1470 |
- 2025-07-31: pmrfc3164: add headerless message detection and handling |
| 1471 |
This patch adds a robust, optional mechanism for handling "headerless" input— |
| 1472 |
log messages that do not conform to traditional syslog formatting. |
| 1473 |
- **Headerless detection (opt-in)** |
| 1474 |
- Controlled by the new `detect.headerless` boolean (default: off) |
| 1475 |
- Detects messages with **no PRI** and **no valid timestamp** |
| 1476 |
- Excludes structured inputs (e.g. JSON starting with `{` or `[`) as |
| 1477 |
before |
| 1478 |
- Injects default `hostname` and `tag` values |
| 1479 |
- Flags message internally as `HEADERLESS_MSG` for further processing |
| 1480 |
- **Fallback processing options** |
| 1481 |
- `headerless.ruleset`: route headerless messages to a dedicated ruleset |
| 1482 |
- `headerless.errorfile`: optionally store raw input to a file |
| 1483 |
- `headerless.drop`: discard headerless messages early if desired |
| 1484 |
- **Thread-safe HUP signal handling** |
| 1485 |
- New `doHUPParser` entry point allows safe log rotation for error file |
| 1486 |
- Follows standard reopen-on-write pattern post-HUP |
| 1487 |
- **Testing & Maintenance** |
| 1488 |
- Adds two test cases: `pmrfc3164-headerless.sh` and `pmrfc3164-drop.sh` |
| 1489 |
- Extends documentation for all new parameters |
| 1490 |
- Cleans up code formatting, includes, and bumps copyright |
| 1491 |
Some environments produce mixed or malformed input streams. This patch enables |
| 1492 |
early, lightweight detection of non-syslog input, with customizable recovery |
| 1493 |
and routing strategies. It avoids unnecessary parsing work and gives operators |
| 1494 |
better tools to isolate or discard garbage input—without breaking legacy behavior. |
| 1495 |
- 2025-07-31: imjournal: fix vulnerability in state file creation |
| 1496 |
Initialize cs.fCreateMode to 0644 instead of -1 to prevent state files |
| 1497 |
from being created with all permission bits set when legacy configuration |
| 1498 |
is used. The setModCnf function is only called with modern configuration, |
| 1499 |
leaving cs.fCreateMode at -1 for legacy configs, which results in wrong |
| 1500 |
open() calls. |
| 1501 |
Thanks to Attila Lakatos for the patch. |
| 1502 |
- 2025-07-31: doc fix: remove doc for debug options that no longer exist |
| 1503 |
Some debug options were removed several years ago but unfortunately |
| 1504 |
not removed from the doc. This is now done. |
| 1505 |
closes: https://github.com/rsyslog/rsyslog/issues/4817 |
| 1506 |
- 2025-07-29: gtls fix: log missing certificate/key only once |
| 1507 |
When no TLS certificate or key is configured for forwarding actions, |
| 1508 |
repeated connection attempts produced the same warning messages over and |
| 1509 |
over. gtlsInitCred() and gtlsAddOurCert() now log these warnings only |
| 1510 |
during the initial setup |
| 1511 |
Thanks to Attila Lakatos for the patch. |
| 1512 |
- 2025-07-22: greatly restructured and improved documentation |
| 1513 |
It is in far better shape now, but there are still improvements |
| 1514 |
planned and needed. |
| 1515 |
- 2025-07-19: Correct connection timing computation |
| 1516 |
Handle microsecond rollover when measuring connection attempts. |
| 1517 |
Calculate seconds and microseconds directly, adjusting when the |
| 1518 |
microsecond field underflows. |
| 1519 |
Fixes https://github.com/rsyslog/rsyslog/issues/5831. |
| 1520 |
- 2025-07-17: omelasticsearch fix: Handle HTTP 401/403 auth errors |
| 1521 |
The omelasticsearch module previously failed to correctly handle HTTP |
| 1522 |
error status codes returned by the server. The logic checked for |
| 1523 |
libcurl transport errors but explicitly ignored |
| 1524 |
'CURLE_HTTP_RETURNED_ERROR', causing server-side errors to be |
| 1525 |
treated as successful submissions. |
| 1526 |
This led to silent failures in critical scenarios, especially |
| 1527 |
authentication (401 Unauthorized) and authorization (403 |
| 1528 |
Forbidden) errors. The plugin would not suspend or report an |
| 1529 |
error, and data could be lost without any clear error indication. |
| 1530 |
This commit resolves the issue by: |
| 1531 |
- Retrieving the HTTP status code after each request using |
| 1532 |
'curl_easy_getinfo'. |
| 1533 |
- Adding an explicit check for 401 and 403 status codes. |
| 1534 |
- Logging a specific "authentication failed" error and suspending |
| 1535 |
the plugin if these errors are detected. |
| 1536 |
This ensures that users receive immediate and clear feedback on |
| 1537 |
authentication problems, preventing silent data loss and aiding in |
| 1538 |
faster troubleshooting. |
| 1539 |
With AI support: Codex, Gemini |
| 1540 |
- 2025-07-16: style: normalize C source formatting via clang-format (PoC) |
| 1541 |
Changed to the new canonical formatting style using `clang-format` with |
| 1542 |
custom settings (notably 4-space indentation), as part of our shift toward |
| 1543 |
automated formatting normalization. No functional changes are included - |
| 1544 |
only whitespace and layout modifications as produced by `clang-format`. |
| 1545 |
This change is part of the formatting modernization strategy discussed in: |
| 1546 |
https://github.com/rsyslog/rsyslog/issues/5747 |
| 1547 |
Key context: |
| 1548 |
- Formatting is now treated as a disposable view, normalized via tooling. |
| 1549 |
- The `.clang-format` file defines the canonical style. |
| 1550 |
- A fixup script (`devtools/format-code.sh`) handles remaining edge cases. |
| 1551 |
- Formatting commits are added to `.git-blame-ignore-revs` to reduce noise. |
| 1552 |
- Developers remain free to format code however they prefer locally. |
| 1553 |
In support of this strategy also did: |
| 1554 |
- add .editorconfig for indent, whitespace, and file-type rules |
| 1555 |
- add project-local .vimrc to enforce Vim settings via exrc |
| 1556 |
- add .clang-format for C/C++ style presets and list formatting |
| 1557 |
- add devtools/format-code.sh to run clang-format and fixups |
| 1558 |
- adjust clang-format config for stable, idempotent output |
| 1559 |
- update AGENTS.md with new formatting strategy |
| 1560 |
- add .git-blame-ignore-revs entry for format change commit |
| 1561 |
- 2025-07-15: feat: introduce mmaitag PoC with Gemini AI provider (#5754) |
| 1562 |
This commit adds the initial implementation of the `mmaitag` module, |
| 1563 |
a pluggable AI-based message classification processor. |
| 1564 |
The module supports two providers: |
| 1565 |
- `gemini`: uses the Gemini API via libcurl and JSON-C |
| 1566 |
- `gemini_mock`: a deterministic in-memory mock used for testing |
| 1567 |
Each log message is classified individually and tagged with a label |
| 1568 |
stored in a configurable message variable (default: `$.aitag`). |
| 1569 |
Included: |
| 1570 |
- Provider abstraction layer (`ai_provider.h`) |
| 1571 |
- Gemini provider with API key support (inline or via file) |
| 1572 |
- Prompt customization and input property selection |
| 1573 |
- Two regression tests: basic and invalid-key scenarios |
| 1574 |
- Sphinx documentation under `doc/configuration/modules` |
| 1575 |
Note: mmaitag is in its infancy and primarily a PoC. Future work |
| 1576 |
will improve batching, performance, and add more providers. |
| 1577 |
Refs: |
| 1578 |
- https://github.com/rsyslog/rsyslog/issues/5747 (AI-first strategy) |
| 1579 |
With the help of AI Agents: Codex, Gemini |
| 1580 |
- 2025-07-15: doc: add FAQ with commonly misunderstood config sequences |
| 1581 |
"& stop" is right on top of the misunderstandings |
| 1582 |
- 2025-07-15: code fix: Prevent redefinition warnings for syslog macros |
| 1583 |
Undefine common syslog severity and facility macros before |
| 1584 |
redefining them in rsyslog.h. As rsyslog, we need consistent |
| 1585 |
definitions. This resolves "redefined" warnings when other |
| 1586 |
system headers are included. Improves build cleanliness. |
| 1587 |
- 2025-07-15: imhttp: add simple http health check functionality |
| 1588 |
This also includes a basic Prometheus scrape entry point, which |
| 1589 |
currently can only be used for health checking. |
| 1590 |
We plan futher enhancement in this direction. |
| 1591 |
Also some "fixes" in regard to rsyslog code style and portability |
| 1592 |
methods. |
| 1593 |
- 2025-07-15: impstats: add support for Prometheus metrics output format |
| 1594 |
This commit extends the impstats input module to support a new |
| 1595 |
"prometheus" format for exporting statistics. The output is |
| 1596 |
generated via statsobj.c, which already provides Prometheus- |
| 1597 |
compatible formatting. |
| 1598 |
To enable this, a new "format" config option value ("prometheus") |
| 1599 |
was added and recognized by impstats.c. When selected, impstats |
| 1600 |
invokes the appropriate statsobj function to generate output in |
| 1601 |
Prometheus exposition format. |
| 1602 |
The default behavior remains unchanged. Existing formats such as |
| 1603 |
"json" and "legacy" are not modified. |
| 1604 |
A new test has been added under tests/ to validate correct |
| 1605 |
Prometheus output generation. The test verifies that the format |
| 1606 |
header and at least one representative metric line conform to the |
| 1607 |
Prometheus text format specification. |
| 1608 |
This enhancement enables rsyslog to integrate more easily with |
| 1609 |
Prometheus-based monitoring stacks and paves the way for native |
| 1610 |
metrics scraping without external translation layers. |
| 1611 |
- 2025-07-15: fmpcre: new function module to do pcre-based regex matches |
| 1612 |
- 2025-07-15: build: adjust version tag used for daily stable build process |
| 1613 |
Change version tag from ".master" to ".daily" to better reflect its |
| 1614 |
use in the automated daily stable build process. This also aligns with |
| 1615 |
the ongoing effort to eliminate use of the "master" name throughout the |
| 1616 |
repository. |
| 1617 |
see also: https://github.com/rsyslog/rsyslog/issues/5786 |
| 1618 |
- 2025-07-15: imfile: add new module/input parameter deleteStateOnFileMove |
| 1619 |
When enabled, state files are deleted when the watched file is moved or |
| 1620 |
rotated away. This prevents accumulation of stale state files from |
| 1621 |
rotated logs. By default the state file is kept. Does not change |
| 1622 |
default behavior for existing inputs. The config option is available as |
| 1623 |
per-input and per-module parameter. |
| 1624 |
Thanks to Attila Lakatos for the patch. |
| 1625 |
- 2025-07-15: refactor: modernize macro definitions to support formatting and clarity |
| 1626 |
This commit performs a broad modernization of widely used rsyslog |
| 1627 |
macros to align with modern C practices and support automated |
| 1628 |
formatting tools like clang-format. The changes focus on improving |
| 1629 |
syntactic regularity, readability, and tooling compatibility — without |
| 1630 |
altering behavior. |
| 1631 |
Macros refactored in this commit now follow a consistent, |
| 1632 |
statement-like form with explicit trailing semicolons. Where |
| 1633 |
applicable, macro blocks that define module interfaces (`queryEtryPt`) |
| 1634 |
have been updated to use simple `if` statements instead of `else if` |
| 1635 |
chains. While this slightly increases evaluation time, the affected |
| 1636 |
functions are only called once per module during load time to register |
| 1637 |
supported interfaces — making the performance cost irrelevant in |
| 1638 |
practice. |
| 1639 |
These improvements serve multiple purposes: |
| 1640 |
- Enable reliable clang-format usage without mangling macro logic |
| 1641 |
- Simplify reasoning about macro-expanded code for human readers |
| 1642 |
- Reduce style drift and merge conflicts |
| 1643 |
- Facilitate development for contributors using assistive tools |
| 1644 |
- Support future formatting pipelines using: |
| 1645 |
1. `clang-format` |
| 1646 |
2. a post-fixup normalization script |
| 1647 |
This general modernization reduces macro misuse, improves DX, and |
| 1648 |
lays the foundation for a robust, automated style normalization |
| 1649 |
system. |
| 1650 |
See also: https://github.com/rsyslog/rsyslog/issues/5747 |
| 1651 |
- 2025-07-12: Document statsobj architecture and formats |
| 1652 |
Adds Doxygen headers to runtime/statsobj.c and runtime/statsobj.h. |
| 1653 |
The comments describe how statistics objects store counters and how |
| 1654 |
GetAllStatsLines emits data. Supported output formats such as |
| 1655 |
legacy, JSON, CEE, JSON_ES and Prometheus are listed. This clarifies |
| 1656 |
the stats subsystem for future maintainers. |
| 1657 |
AI-Agent: Codex, Gemini |
| 1658 |
- 2025-07-12: Improve TLS handshake error logging (#5762) |
| 1659 |
Log remote port on TLS handshake errors, this has been implemented |
| 1660 |
at the netstream driver layer and is now easy to support by all drivers. |
| 1661 |
- 2025-07-12: merge: import rsyslog-docker into packaging/docker/ |
| 1662 |
This commit integrates the full history of the |
| 1663 |
rsyslog/rsyslog-docker GitHub repository into the main rsyslog |
| 1664 |
monorepo under packaging/docker/. |
| 1665 |
The merge was performed on 2025-07-12 using 'git subtree add' to |
| 1666 |
preserve all commit history in a clean and non-interleaved form. |
| 1667 |
No changes were made to the imported content during this commit. |
| 1668 |
Rationale: |
| 1669 |
- Unify Docker artifacts with the core rsyslog development |
| 1670 |
- Reduce repository fragmentation |
| 1671 |
- Improve discoverability and cross-component development |
| 1672 |
- Simplify CI integration and contributor workflow |
| 1673 |
The original rsyslog-docker repository will be archived in |
| 1674 |
read-only mode. All future work on Docker images and related |
| 1675 |
tooling will continue under packaging/docker/ in this repository. |
| 1676 |
This merge is part of a broader effort to consolidate related |
| 1677 |
rsyslog projects into a complete, maintainable monorepo. |
| 1678 |
- 2025-07-11: scripting: add endswith operator to property filters and RainerScript |
| 1679 |
This Implements suffix comparison similar to startswith. Note that we |
| 1680 |
do intentionally not use libestr functions in order to speed up adaption. |
| 1681 |
It would otherwise probably take years for distros to upgrade libestr. |
| 1682 |
With some help of the Codex and Gemini AI Agents. |
| 1683 |
closes https://github.com/rsyslog/rsyslog/issues/1255 |
| 1684 |
- 2025-07-11: nsd_ptcp fix: misleading error messages (regression from ad1fd21) |
| 1685 |
We received reports of log messages incorrectly referring to "imptcp" even |
| 1686 |
though the imptcp module was not loaded on the system. This caused confusion |
| 1687 |
during troubleshooting. |
| 1688 |
One such message was: |
| 1689 |
rsyslogd: imptcp cannot set keepalive intvl - ignored: Bad file descriptor |
| 1690 |
This message originated from the nsd_ptcp module, but the LogError() calls |
| 1691 |
in EnableKeepAlive() still used "imptcp" as the source name. |
| 1692 |
This is a regression introduced in commit ad1fd21, which restructured |
| 1693 |
TCP input handling and moved responsibility for keepalive setup to nsd_ptcp, |
| 1694 |
but did not update the associated log messages. |
| 1695 |
This patch corrects the affected log strings to use "nsd_ptcp", accurately |
| 1696 |
reflecting the code path that emits them. |
| 1697 |
There is no functional change; the patch improves clarity of log output and |
| 1698 |
prevents misleading diagnostics. |
| 1699 |
The actual error shown could be related to a different issue, |
| 1700 |
see also https://github.com/rsyslog/rsyslog/pull/5749 |
| 1701 |
- 2025-07-11: omazureventhubs bugfix: unsafe sprintf use in module |
| 1702 |
we now use snprintf for url encoding; this was under very exotic conditions |
| 1703 |
- 2025-07-09: imtcp: prevent double-enqueue of descriptors via inQueue flag |
| 1704 |
This patch adds an inQueue flag with its own mutex to each |
| 1705 |
tcpsrv_io_descr_t structure. The flag prevents multiple worker threads |
| 1706 |
from processing the same descriptor at the same time. |
| 1707 |
The change was motivated by segmentation faults reported in production |
| 1708 |
systems after commit ad1fd21, which introduced a worker thread pool to |
| 1709 |
imtcp. We could not reproduce the faults ourselves, but code analysis |
| 1710 |
suggests several race conditions may exist. |
| 1711 |
In particular: |
| 1712 |
- epoll_wait may return the same descriptor multiple times. This is not |
| 1713 |
expected, as we use EPOLLONESHOT. However, if a thread does not clear |
| 1714 |
or re-arm the event quickly enough, or in edge cases involving race |
| 1715 |
conditions and rapid I/O activity, duplicate delivery may still occur. |
| 1716 |
- If a descriptor is enqueued more than once, multiple threads may |
| 1717 |
process and free it in parallel, causing use-after-free errors. |
| 1718 |
- closeSess releases the session mutex before destroying the session and |
| 1719 |
descriptor. A second thread might still be waiting to acquire the |
| 1720 |
mutex and access the now-freed memory. |
| 1721 |
- shutdown is unordered: stopWrkrPool waits for threads to join, but the |
| 1722 |
work queue may still contain descriptors that will be processed after |
| 1723 |
their memory has been freed. |
| 1724 |
- pending epoll events for a socket may still be processed after |
| 1725 |
epoll_ctl(..., DEL) was called, leading to access to invalid memory. |
| 1726 |
The patch: |
| 1727 |
- Adds an inQueue flag to each descriptor and a mutex to protect it. |
| 1728 |
- Prevents enqueueWork from queuing a descriptor already in queue. |
| 1729 |
- Clears the flag when dequeueing the descriptor. |
| 1730 |
- Initializes and destroys the new mutex at listener startup/cleanup. |
| 1731 |
While unverified, we believe this patch is a safe and helpful change. |
| 1732 |
It may fix the reported crashes and in general improves correctness. |
| 1733 |
The analysis and draft of this patch were created with help from a |
| 1734 |
Codex-based AI agent. Final review and edits were done by a human. |
| 1735 |
- 2025-07-09: imkmsg fix: Handle EAGAIN/EWOULDBLOCK check portably |
| 1736 |
On some systems, EAGAIN and EWOULDBLOCK are defined to the same |
| 1737 |
value, causing a `-Wlogical-op` warning for the redundant logical |
| 1738 |
'or' in the errno check. |
| 1739 |
While portable code must check for both cases, this warning is |
| 1740 |
unwanted. |
| 1741 |
This change uses a preprocessor directive to conditionally compile |
| 1742 |
the check for `errno == EWOULDBLOCK` only on platforms where its value |
| 1743 |
differs from EAGAIN. This silences the warning without affecting |
| 1744 |
portability. |
| 1745 |
- 2025-07-09: AI tools: Add directory for future AI/ML tooling (#5758) |
| 1746 |
Establish a new top-level directory, `ai/`, to serve as a consistent |
| 1747 |
location for future Artificial Intelligence and Machine Learning tools |
| 1748 |
that will work alongside rsyslog. |
| 1749 |
These tools are intended to run as separate processes, external to the |
| 1750 |
rsyslog daemon, to ensure the core remains stable and performant. |
| 1751 |
This commit contains only the empty directory and a README.md file |
| 1752 |
describing the vision and purpose. |
| 1753 |
- 2025-06-21: fix off-by-one buffer "overflow" when forking rsyslog |
| 1754 |
parent and child communicate over a very basic protocol during the fork process. |
| 1755 |
In theroy, there could be a buffer overrun during that period. In practice, this |
| 1756 |
is not possible due to the protocol. It would only be possible if the rsyslog |
| 1757 |
binary would be compromised itself on disk- or in-memory. Nevertheless, this |
| 1758 |
possibility should be closed, as slim as it may be. |
| 1759 |
Thanks to Maks Maltsev for the patch. |
| 1760 |
- 2025-06-19: added doc for omsendertrack |
| 1761 |
- 2025-06-18: net_ossl: Fix memleak in net_ossl_peerfingerprint |
| 1762 |
Fix memory leak where pstrFingerprintSha256 was not being freed |
| 1763 |
in the finalize_it section. This could cause memory accumulation |
| 1764 |
during TLS certificate fingerprint verification when the function |
| 1765 |
exits. |
| 1766 |
Thanks to Attila Lakatos for the patch. |
| 1767 |
- 2025-06-18: Support for AI Agents has been added |
| 1768 |
This is an ongoing effort which aligns with the projects "AI-first" approach. |
| 1769 |
The date this was added is just the date of "initial maturity". As AI field |
| 1770 |
is quickly evolving, we need to update this support in any case. |
| 1771 |
- 2025-06-15: doc: Documentation repository moved into main rsyslog repo |
| 1772 |
The rsyslog-doc repository content has been integrated into the |
| 1773 |
main rsyslog repository under the 'doc/' directory. This change |
| 1774 |
simplifies maintenance, improves discoverability, and resolves |
| 1775 |
issues with external tools locating documentation. It also |
| 1776 |
streamlines build pipelines and reduces external dependencies. |
| 1777 |
The commit history of rsyslog-doc has been preserved via a Git |
| 1778 |
subtree merge. |
| 1779 |
- 2025-06-12: build: Removed the redundant *_la_LDFLAGS |
| 1780 |
Whilst this did not cause issues when building the project, it produced |
| 1781 |
warnings. |
| 1782 |
Thanks to Attila Lakatos for the patch. |
| 1783 |
- 2025-06-12: ossl netstream driver: do not import engines if not available |
| 1784 |
Avoid including openssl/engine.h when OPENSSL_NO_ENGINE is set. Adjust dependent |
| 1785 |
modules and test accordingly. |
| 1786 |
Thanks to Attila Lakatos for the patch. |
| 1787 |
- 2025-06-12: tcpsrv bugfix: fix potential data race issue |
| 1788 |
When re-arming epoll descriptors, we used a non-thread safe way to do this. However, |
| 1789 |
it is hard to envison this could have caused any real issue because of the way the |
| 1790 |
logic accesses the data elements. But at least in theory on a system with very many |
| 1791 |
tcpsrv threads, many cores and very high load re-arm could probably done incorrectly |
| 1792 |
what could have lead to stalling of that connection. |
| 1793 |
This was detected during CI runs by LLVM thread analyzer. We never receive any report |
| 1794 |
of this from practice. |
| 1795 |
---------------------------------------------------------------------------------------- |
| 1796 |
Scheduled Release 8.2506.0 (aka 2025.06) 2025-06-10 |
| 1797 |
- 2025-06-10: core fix: hastable object did not init memory properly on extend |
| 1798 |
When a hash table was expanded, the newly allocated memory segment was not |
| 1799 |
cleared correctly. This was caused by providing an incorrect destination |
| 1800 |
address and byte-count to the memory-clearing function. |
| 1801 |
This could lead to instability or incorrect behavior when the hash table |
| 1802 |
grew. The new memory is now properly zero-initialized, ensuring stable |
| 1803 |
operation. |
| 1804 |
- 2025-06-10: queue fix: spammy queue size message do to incorrect commit |
| 1805 |
Reverted commit 525a6f1bbf that tried to provide better diagnostics for |
| 1806 |
queues being potentially misconfigured that was invalid and created queue warning |
| 1807 |
messages on startup. The functionality will be re-implemented properly later. |
| 1808 |
JThis is no loss of |
| 1809 |
functionality. |
| 1810 |
- 2025-06-10: CI: new python-based codestyle checker |
| 1811 |
Easier to maintain than the off-project C source. The checks |
| 1812 |
are pretty trivial. |
| 1813 |
closes https://github.com/rsyslog/rsyslog/issues/5631 |
| 1814 |
- 2025-06-09: omfwd regression fix: avoid false active target change log message |
| 1815 |
Commit ffaf6dc added proper variable sync, but dropped the check |
| 1816 |
if active count had actually changed. As such, the output was always |
| 1817 |
generated, which could pollute the log heavily. |
| 1818 |
- 2025-06-09: imuxsock: Add statistics counter for discarded messages |
| 1819 |
This patch introduces a counter to track the number of discarded messages. |
| 1820 |
Additionally, it fixes a bug where the submitted message count was incremented |
| 1821 |
even when the message was discarded due to exceeding the allowed message rate |
| 1822 |
within a given interval. |
| 1823 |
Thanks to Attila Lakatos for the patch. |
| 1824 |
- 2025-06-08: lookup tables: add new table type for regex-matches |
| 1825 |
While we do not like rexeg-matches for performance reasons, they are |
| 1826 |
well known and appreciated by users. With the new table type, we |
| 1827 |
add a lookup capability for partial matches, but at the price |
| 1828 |
of much higher ressource use. It still is useful, e.g. to classify |
| 1829 |
events as "noise" events in a simple manner. |
| 1830 |
- 2025-06-08: docs: restructure contributor docs for clarity and AI agent readiness |
| 1831 |
This updated all contributor-facing documentation: |
| 1832 |
- **README.md**: Modernized structure; clarified installation/build. |
| 1833 |
Removed obsolete local doc references, linked to rsyslog-doc. |
| 1834 |
- **CONTRIBUTING.md**: Refactored for clarity; added AI code guidance |
| 1835 |
(e.g., commit prefix `AI:`). Formalized draft PRs for experiments. |
| 1836 |
Removed outdated "testing new releases" advice. Added rationale |
| 1837 |
for `master` branch due to ecosystem dependencies. |
| 1838 |
- **AGENTS.md** (new): Introduces clear guidelines for AI agents |
| 1839 |
contributing to rsyslog. Includes commit formatting, PR branch |
| 1840 |
expectations, testing environment, and behavioral rules. |
| 1841 |
**Why now?** |
| 1842 |
Over two years, we've evaluated evolving AI dev agent capabilities. |
| 1843 |
We now consider them mature enough for rsyslog dev workflow—under |
| 1844 |
careful human review. This update provides the foundation to onboard |
| 1845 |
agents in a controlled, auditable, high-quality manner. |
| 1846 |
All changes prioritize traceability and developer clarity—both human |
| 1847 |
and AI. |
| 1848 |
closes: https://github.com/rsyslog/rsyslog/issues/5657 |
| 1849 |
- 2025-06-08: improved CI workflow |
| 1850 |
- 2025-06-08: omazureeventhubs bugfix: wrong content-type used |
| 1851 |
This was detected during a code review. No report from practice is known. There was |
| 1852 |
a type in the content type definition when encoding the message. This can potentially |
| 1853 |
lead to malfunction. |
| 1854 |
- 2025-06-06: omusrmsg: fixed a potentially unsafe string builder |
| 1855 |
While not expected to be problematic in practice, there still was some security |
| 1856 |
issue potential AND it prevented clean build in some environments. |
| 1857 |
- 2025-06-05: impstats: add prometheus format to set of supported output formats |
| 1858 |
This can be used eg. to use node_exporter file scraping capability |
| 1859 |
- 2025-06-04: omsendertrack: new module |
| 1860 |
The omsendertrack module is designed to track and report statistics for |
| 1861 |
message senders across all inputs in Rsyslog. It periodically outputs a |
| 1862 |
JSON file containing information about each sender. |
| 1863 |
Note: This commit provides minimalistic basic functionality as a PoC. |
| 1864 |
We will check it's usefulness in practice and expect follow-up PRs |
| 1865 |
to enhance functionality and include feedback from early testing. |
| 1866 |
However, this module is solid, just feature limited. |
| 1867 |
see also: https://github.com/rsyslog/rsyslog/issues/5599 |
| 1868 |
- 2025-05-29: omjournal: Fix priority value |
| 1869 |
Thanks to Bougrine Anis for the patch. |
| 1870 |
- 2025-05-14: tls subsystem: generate better error message on accept failure |
| 1871 |
Right now, the remote peer is not reported, even in cases where |
| 1872 |
this would be possible. This patch provides a method to emit a |
| 1873 |
second message with remote peer information in cases where it |
| 1874 |
is possible. This is the case when the remote peer connects via |
| 1875 |
plain tcp but TLS cannot be negotiated, especially because the |
| 1876 |
connection breaks immediately. Most probably this behaviour can |
| 1877 |
be created by load balancer and other tools healt checks. |
| 1878 |
This patch improves debugging network issues. So it is useful. |
| 1879 |
---------------------------------------------------------------------------------------- |
| 1880 |
Scheduled Release 8.2504.0 (aka 2025.04) 2025-04-29 |
| 1881 |
- 2025-04-25: ossl tls driver: better error reporting |
| 1882 |
Replace some generic error codes with more specific counterparts. |
| 1883 |
There is still some more work to do, but this covers important |
| 1884 |
spots. |
| 1885 |
- 2025-04-25: gnutls netstrm drvr fix: handle write retry correctly in recv call |
| 1886 |
When receiving, gnutls internally may need to write (e.g. for session key |
| 1887 |
changes), so we need to support that. This is a long-standing issue |
| 1888 |
that can have caused invalid error message and session closure. |
| 1889 |
The erorr message was: |
| 1890 |
GnuTLS receive error <nbr> has wrong read direction(wants write) - |
| 1891 |
this could be caused by a broken connection. GnuTLS reports: <text> |
| 1892 |
- 2025-04-25: tcpsrv bugfix: do not busy wait on io events |
| 1893 |
Depending on circumstances, tcpsrv worker threads did effectively |
| 1894 |
busy-wait on io events to handle. Not always, but often. This was |
| 1895 |
caused be improperly re-arming the inotify subsystem. |
| 1896 |
This effected overall system performance, but not general rsyslog |
| 1897 |
stability. The bug was introduced on March 1st 2025 into the |
| 1898 |
daily stable build. |
| 1899 |
closes: https://github.com/rsyslog/rsyslog/issues/5623 |
| 1900 |
- 2025-04-23: tcpsrv: add experimental stats |
| 1901 |
This is a stats for worker awaking via event notification. Could be useful |
| 1902 |
under some cirumstances. it's called "emptyReads". |
| 1903 |
It needs to be decided if this is a useful setting or not. |
| 1904 |
- 2025-04-16: tcpsrv bugfix: input name was not properly propagated |
| 1905 |
As a result, it did not show up in pstats. Alos, we now use the input name |
| 1906 |
in worker thread to easily identify where they belong to. As thread names |
| 1907 |
have very limited length, the thread naming now is |
| 1908 |
"w<worker-number>/<input-name>". |
| 1909 |
Note: this bug was introduced 2025-03-01 (daily stable build) |
| 1910 |
- 2025-03-06: rsyslog core fix: buffer overflow when the argument to replace() is empty |
| 1911 |
This fixes the following situation: |
| 1912 |
We have these expressions in rsyslogd.conf: |
| 1913 |
set $!rsyslog_FileFormat = exec_template("RSYSLOG_FileFormat") |
| 1914 |
set $!localheader = re_extract($!rsyslog_FileFormat, "[^ ]+.* +port[0-9]", 0, 0, ""); |
| 1915 |
set $!localpattern = re_extract($!rsyslog_FileFormat, " [^ ]+ +[^ ]+ +port[0-9]", 0, 0, ""); |
| 1916 |
set $!localheader = replace($!localheader, $!localpattern, " "); |
| 1917 |
We have a message like this arriving. |
| 1918 |
<30>Feb 24 22:08:21 hostname port03 'label' RXDATA: \n |
| 1919 |
It was observed that when 2 of these messages arrive in a row, rsyslogd |
| 1920 |
crashes. This is clearly due to memory corruption, as the crash comes |
| 1921 |
from within calloc. |
| 1922 |
Thanks to Lincoln Ramsay for the patch. |
| 1923 |
- 2025-03-05: several small to cosmetic leak fixes based on Coverity Scan |
| 1924 |
- 2025-03-04: perctile_stats: do not use uninitialized values on error |
| 1925 |
Thanks to Attila Lakatos for the patch. |
| 1926 |
- 2025-03-04: omfwd bufgix: potential segfault in UDP forwarding |
| 1927 |
A segfault could occur if the configured port could not be bound to the interface. |
| 1928 |
Thanks to Markel Azpeitia Loiti for the patch. |
| 1929 |
- 2025-03-01: imtcp: major multithreading and performance improvements |
| 1930 |
This commit significantly enhances imtcp by introducing a fully |
| 1931 |
functional worker thread pool, enabling true multi-threaded |
| 1932 |
processing for better scalability under high loads. This is |
| 1933 |
particularly beneficial when using TLS connections. |
| 1934 |
|
| 1935 |
Notable changes: |
| 1936 |
- Implemented a complete worker pool for imtcp. |
| 1937 |
- Introduced the `workerthreads` config parameter for tuning |
| 1938 |
concurrency. |
| 1939 |
- Improved epoll efficiency by enabling edge-triggered mode. |
| 1940 |
- Added starvation handling via `starvationProtection.maxReads`. |
| 1941 |
- Refactored session accept logic and optimized network object |
| 1942 |
handling. |
| 1943 |
- Removed an obsolete network driver layer for event notification. |
| 1944 |
- Fixed multiple issues related to message timing, EPOLLERR |
| 1945 |
handling, and tests. |
| 1946 |
- Improved performance in poll() mode by reducing redundant |
| 1947 |
allocations. |
| 1948 |
- Introduced new CI tests for imtcp without epoll. |
| 1949 |
- Allowed disabling imtcp tests via a new configure switch. |
| 1950 |
- Added new impstats counters for worker thread pool statistics. |
| 1951 |
|
| 1952 |
Details: |
| 1953 |
- The worker pool replaces an outdated experimental |
| 1954 |
implementation. |
| 1955 |
- If `workerthreads=1`, no worker pool is created to minimize |
| 1956 |
context switches. |
| 1957 |
- Moves worker pool variables inside `tcpsrv` instance to |
| 1958 |
prevent conflicts. |
| 1959 |
- Extracts session `accept()` logic into a dedicated function |
| 1960 |
for clarity. |
| 1961 |
- Fixes message ordering inconsistencies in multi-threaded |
| 1962 |
scenarios. |
| 1963 |
- Properly handles `EPOLLERR` notifications to improve error |
| 1964 |
resilience. |
| 1965 |
- Optimizes poll() mode by avoiding unnecessary reallocation |
| 1966 |
of file descriptors. |
| 1967 |
- Replaces the old network driver layer for event notification |
| 1968 |
with a streamlined solution. |
| 1969 |
- Now uses **conditional compilation** to select the best |
| 1970 |
method (epoll or poll) at build time. |
| 1971 |
- This significantly reduces code complexity, improves |
| 1972 |
maintainability, and boosts performance. |
| 1973 |
- The previous "thread pool" was a rough experiment that did |
| 1974 |
not perform significantly better than single-threaded mode. |
| 1975 |
- The **new implementation** allows multiple worker threads |
| 1976 |
on platforms with `epoll`. |
| 1977 |
- On non-epoll systems, an optimized **poll() based |
| 1978 |
single-threaded approach** is used, which is expected to |
| 1979 |
perform better than the old "thread pool." |
| 1980 |
- Adds `pthread_setname_np` only when available to improve |
| 1981 |
portability. |
| 1982 |
- Fixes test cases that assumed strict message timing, which |
| 1983 |
was unreliable. |
| 1984 |
- Reduces test parallelism for TSAN CI runs to prevent |
| 1985 |
resource exhaustion. |
| 1986 |
- Moves a test case to `imdiag` to ensure stable execution. |
| 1987 |
- Provides a new CI environment to verify `imtcp` behavior |
| 1988 |
without epoll. |
| 1989 |
- Introduces `--enable-imtcp-tests` configure switch for test |
| 1990 |
flexibility. |
| 1991 |
- Improves debug logging and adds better error handling for |
| 1992 |
worker pool startup. |
| 1993 |
|
| 1994 |
New configuration parameters: |
| 1995 |
- `workerthreads`: Defines the number of worker threads for |
| 1996 |
imtcp. If set to 1, no worker pool is created. |
| 1997 |
- `starvationProtection.maxReads`: Defines the maximum number |
| 1998 |
of consecutive reads a worker can perform before being |
| 1999 |
interrupted to allow other sessions to be processed. |
| 2000 |
|
| 2001 |
New impstats counters (emitted only when `workerthreads > 1`): |
| 2002 |
- `runs`: Number of times the worker thread has been invoked. |
| 2003 |
- `read`: Number of read calls performed by the worker. |
| 2004 |
For TLS, this includes read/write calls. |
| 2005 |
- `accept`: Number of `accept()` calls handled by the worker. |
| 2006 |
- `starvation_protect`: Number of times a socket was sent |
| 2007 |
back to the queue due to reaching the maximum number of |
| 2008 |
consecutive requests, ensuring fair scheduling of sessions. |
| 2009 |
|
| 2010 |
These changes significantly enhance rsyslog’s TCP handling |
| 2011 |
performance and stability, particularly in high-volume |
| 2012 |
environments. |
| 2013 |
|
| 2014 |
Closes #5529, #5532, #5578, #5580. |
| 2015 |
- 2025-03-01: "fixed" clang static analyzer false positives |
| 2016 |
- 2025-03-01: fixed clang static analyzer detected very unlikely but possible bugs |
| 2017 |
---------------------------------------------------------------------------------------- |
| 2018 |
Scheduled Release 8.2502.0 (aka 2025.02) 2025-02-18 |
| 2019 |
- 2025-02-16: gnutls bugfix: Avoid blocking sockets during TLS handshake |
| 2020 |
When forwarding logs to a TLS server, using a blocking socket |
| 2021 |
can lead to indefinite waiting during the gnutls_handshake() |
| 2022 |
call if the server does not respond as expected. |
| 2023 |
This commit modifies the behavior to use non-blocking sockets, |
| 2024 |
ensuring that the rsyslog client does not hang indefinitely |
| 2025 |
waiting for a response. |
| 2026 |
Thanks to Attila Lakatos for the patch. |
| 2027 |
- 2025-02-13: CI: add compile check with atomic operations disabled |
| 2028 |
The platforms that do not have support for atomic operations become |
| 2029 |
more and more exoctic. Even more so, only Solaris builders now test |
| 2030 |
that inside the rsyslog CI. To "harden" the CI system against a |
| 2031 |
potential (temporary) unavailability of Solaris, we now also do |
| 2032 |
a build where we intentionally disable atomics. This will trigger |
| 2033 |
build issues on all platforms. This method also permits us to detect |
| 2034 |
problems quicker, as the solaris builders are slow. |
| 2035 |
- 2025-02-13: omfwd bugfix: variable was not properly synced across threads |
| 2036 |
While this could lead to some inefficiency, it should not have caused |
| 2037 |
any real harm. But with data races it is never sure if more severe |
| 2038 |
issues occur. However, here only very strange use cases can be |
| 2039 |
envisioned where this might be the case. |
| 2040 |
In any case, the issue is now solved. |
| 2041 |
This also fixes some TSAN CI "flakes". |
| 2042 |
- 2025-02-12: testbench: prevent flake by better sync of snmp test tool startup |
| 2043 |
In order to prevent flakes on some environments, we have enhanced the SNMP trap |
| 2044 |
receiver testing tool so that it indicates successful startup via a pid file, which |
| 2045 |
now can be used to hold rsyslog start until the test tool is fully up and running. |
| 2046 |
- 2025-02-12: CI: add Testruns under Ubuntu 24.04 |
| 2047 |
Note: we temporarily disable omamqp1 testing while we search for |
| 2048 |
the missing dependency. |
| 2049 |
We also add a special setting that permits us to control if |
| 2050 |
known-(very)-flaky test shall be run. |
| 2051 |
closes https://github.com/rsyslog/rsyslog/issues/5546 |
| 2052 |
- 2025-02-11: testbench: Add new version of snmptrapreceiver.py for python 3.11+ |
| 2053 |
The system packages on Ubuntu 24 appear to be broken for python3-pysnmp4. |
| 2054 |
And when we update the package using |
| 2055 |
pip install pyasn1 pysnmp --break-system-packages --upgrade |
| 2056 |
We need adapt the code, so a new version snmptrapreceiverv2.py |
| 2057 |
has been added which will automatically been chosen if Python is >3.10 |
| 2058 |
closes: https://github.com/rsyslog/rsyslog/issues/5554 |
| 2059 |
- 2025-02-10: ossl netstream driver: allow ephemeral Diffie-Hellman key exchange |
| 2060 |
Use well known DH parameters that have built-in support in OpenSSL. |
| 2061 |
From the man page: If "auto" DH parameters are switched on then |
| 2062 |
the parameters will be selected to be consistent with the size of |
| 2063 |
the key associated with the server's certificate. If there is no |
| 2064 |
certificate (e.g. for PSK ciphersuites), then it it will be |
| 2065 |
consistent with the size of the negotiated symmetric cipher key. |
| 2066 |
Thanks to Attila Lakatos for the patch. |
| 2067 |
- 2025-01-28: testbench: reduce flakiness for omhttp-batch-retry-metadata.sh test |
| 2068 |
The test results were not deterministic. Sometimes it passed, sometimes |
| 2069 |
it failed. The omhttp-validate-response.py script tried to parse the |
| 2070 |
json input line by line, but sometimes the message and response fields |
| 2071 |
are on separate lines, thus it failed to parse. This is the case |
| 2072 |
for both files used to control the checking. |
| 2073 |
This patch updates the check program so that it reads in complete |
| 2074 |
lines when parsing fails, thus removing this condition for flakiness. |
| 2075 |
HOWEVER, after doing so the test still sometimes fails. This may |
| 2076 |
point into a problem with the contributed omhttp module. Unfortunately, |
| 2077 |
I do not have enough insight into that module (nor time) to try to |
| 2078 |
address the root cause. |
| 2079 |
closes https://github.com/rsyslog/rsyslog/issues/5439 |
| 2080 |
- 2025-01-27: testbench fix: OpenSSL 3.x depreceated warnings in tcpflood |
| 2081 |
- 2025-01-27: omfwd: align some parameters with imtcp names |
| 2082 |
Parameter names have historically evolved and are sometimes |
| 2083 |
inconsistent between modules (while still having the same |
| 2084 |
semantics and similiar name). |
| 2085 |
This commit creates three aliases in omfwd to keep stream |
| 2086 |
driver parameter names consistent with the names used in |
| 2087 |
imtcp. Note that we do not create an alias for |
| 2088 |
"streamdriverpermittedpeers" because the name differ more |
| 2089 |
considerably and we would also need to create an alias |
| 2090 |
in imtcp as well. We will do this only on request. |
| 2091 |
Note: aliases help, but are not a great solution. They may |
| 2092 |
cause confusion if both names are used together in a single |
| 2093 |
config. So care must be taken when using an alias. |
| 2094 |
- 2025-01-27: testbench: remove ElasticSearch 6.0 based tests |
| 2095 |
EleasticSearch 6 is heavily outdated. Testing against that |
| 2096 |
platform is no longer needed. |
| 2097 |
- 2025-01-27: omsnmp: replaced inet_aton with inet_pton for IPv4 address conversion |
| 2098 |
inet_pton is part of POSIX, whilst inet_aton is not. Moreover the |
| 2099 |
function is marked as forbidden according to rpmlint: |
| 2100 |
Forbidden function symbols found: inet_aton |
| 2101 |
Thanks to Attila Lakatos for the patch. |
| 2102 |
- 2025-01-27: tcpflood test tool: enable multi threaded connection open |
| 2103 |
Connections were originally opened sequentially. This commit adds the |
| 2104 |
capability to open them via multiple threads in parallel. |
| 2105 |
This is needed at least for cases where we need to test multiple |
| 2106 |
pending connection requests, which can be accepted with an |
| 2107 |
"accept() loop". |
| 2108 |
It can also be useful for speeding up parts of the testbench. |
| 2109 |
However, the additional concurrency makes it potentially harder |
| 2110 |
to debug if bugs are detected. So tests may use multiple threads |
| 2111 |
for connect during regular operations but should also offer the |
| 2112 |
option (by editing) to revert to a single thread for easier |
| 2113 |
debugging. |
| 2114 |
closes https://github.com/rsyslog/rsyslog/issues/5535 |
| 2115 |
- 2025-01-23: imtcp: add "socketBacklog" parameter to configure TCP backlog size |
| 2116 |
A new "socketBacklog" parameter has been added to the imtcp module, allowing |
| 2117 |
users to override the default TCP SYN backlog size. Previously, the backlog |
| 2118 |
was set to roughly 10% of the configured max sessions, which remains the |
| 2119 |
default if the parameter is not specified. This enhancement enables better |
| 2120 |
configuration for high-performance servers. The parameter name aligns with |
| 2121 |
the "socketBacklog" parameter in imptcp for consistency. |
| 2122 |
The "socketBacklog" parameter should be set based on the anticipated connection |
| 2123 |
rate and the server's ability to handle incoming connections. For high-performance |
| 2124 |
environments with heavy traffic, a larger value may be needed to avoid dropped |
| 2125 |
connections during bursts. If unsure, leave the parameter unset to use the default |
| 2126 |
(10% of max sessions), which is suitable for typical workloads. |
| 2127 |
- 2025-01-23: testbench: add new and adapt imtcp tests for large connection counts |
| 2128 |
Updated the imtcp test suite to set the "SocketBacklog" parameter to a higher |
| 2129 |
value to accommodate tests with a large number of concurrent connections. |
| 2130 |
This change addresses potential CI flakes caused by SYN queue overflows during |
| 2131 |
test runs and significantly reduces test runtime by avoiding delays during |
| 2132 |
session setup. |
| 2133 |
The adjusted SocketBacklog parameter ensures smoother handling of high |
| 2134 |
connection counts, improving test reliability and performance. |
| 2135 |
- 2025-01-23: imptcp: Increase default SYN backlog for imptcp server to 64 |
| 2136 |
Increased the default TCP SYN backlog for the imptcp server from 5 to 64 to |
| 2137 |
address potential connection instability and performance issues under high |
| 2138 |
connection load scenarios. The previous default of 5 was too low for many |
| 2139 |
workloads, particularly in scenarios involving a rapid influx of client |
| 2140 |
connections. This could lead to SYN queue overflow, delayed connection |
| 2141 |
establishment, and eventual RSTs or retransmissions during subsequent phases |
| 2142 |
of the connection lifecycle. |
| 2143 |
The new default of 64 provides better handling of typical workloads while |
| 2144 |
allowing further customization via the "SocketBacklog" configuration option. |
| 2145 |
Note: The "SocketBacklog" configuration option can be adjusted to handle |
| 2146 |
specific workloads such as high rates of concurrent connection openings, burst |
| 2147 |
traffic, or other resource-intensive scenarios. |
| 2148 |
- 2025-01-23: testbench: adapt imptcp tests for large connection counts |
| 2149 |
Updated the imptcp test suite to set the "SocketBacklog" parameter to a higher |
| 2150 |
value to accommodate tests with a large number of concurrent connections. |
| 2151 |
This change addresses potential CI flakes caused by SYN queue overflows during |
| 2152 |
test runs and significantly reduces test runtime by avoiding delays during |
| 2153 |
session setup. |
| 2154 |
The adjusted SocketBacklog parameter ensures smoother handling of high |
| 2155 |
connection counts, improving test reliability and performance. |
| 2156 |
- 2025-01-16: netstrm TLS driver: move TLS retry handling to main driver |
| 2157 |
This simplifies the driver interface. It is also kind of prep-work |
| 2158 |
for implementing real multi-threading support for imtcp (to be done |
| 2159 |
in a separate set of commits). |
| 2160 |
see also https://github.com/rsyslog/rsyslog/issues/5532 |
| 2161 |
- 2024-12-31: build: support for compile with -std=gnu23 gcc option |
| 2162 |
Note: The upcoming gnu23 C standard is overdoing it with type-safety. Inside |
| 2163 |
rsyslog, we historically have method tables for generic calls, which |
| 2164 |
keeps the code small and easy to understand. This would not decently be |
| 2165 |
possible with the new type-safety requirements. |
| 2166 |
So this commit works around these warning in a way that pretends to |
| 2167 |
provide more type safety. We have done this in the least intrusive |
| 2168 |
way to reduce the risk for regressions in code that works well in |
| 2169 |
since decades. Also note that the code already does parameter |
| 2170 |
validation. |
| 2171 |
There would have been more elaborate ways to make gnu23 compile happy, |
| 2172 |
e.g. by using a union of structs to provide the data element. Some folks |
| 2173 |
consider this type safe. In reality, it is not a bit better than |
| 2174 |
traditional C without types at all. Because the caller still needs to |
| 2175 |
ensure it picks the right struct from the union. As this approach |
| 2176 |
would also have larger regeression potential, we have not used it. |
| 2177 |
Right now, we have suppressed some of the new warnings, as working |
| 2178 |
around them would have required an even larger time budget and |
| 2179 |
potentially larger regression potential. In the long term we may |
| 2180 |
want to look into enabling them, as they would potentially be |
| 2181 |
beneficial for new code not involving method tables. |
| 2182 |
Some nits, however, were detected and have been fixed. |
| 2183 |
- 2024-12-04: omazureeventhubs bugfix: URL escaping |
| 2184 |
Some characters were not properly escaped, leading to malfunction on submission. |
| 2185 |
---------------------------------------------------------------------------------------- |
| 2186 |
Scheduled Release 8.2412.0 (aka 2024.12) 2024-12-03 |
| 2187 |
- 2024-12-02: rainerscript bugfix: do not try to call a function if it does not exist |
| 2188 |
This could previously cause a segfault when the function was called. |
| 2189 |
Thanks to Attila Lakatos for the patch. |
| 2190 |
- 2024-12-02: Fix legacy $ActionQueueDiscardMark parameter |
| 2191 |
If the $ActionQueueSize legacy parameter was configured |
| 2192 |
with a much value higher than the default, the queueDiscardMark |
| 2193 |
option was not automatically adjusted to represent 98% of |
| 2194 |
the actual queue size. This caused a misalignment issue, |
| 2195 |
which does not occur when using the RainerScript syntax. |
| 2196 |
Thanks to Attila Lakatos for the patch. |
| 2197 |
Note: We usually do NOT change legacy parameters, but in this case it makes |
| 2198 |
sense to adjust to recent developments. |
| 2199 |
- 2024-11-25: improvements in CI system |
| 2200 |
added some support for Ubuntu 24.04 - stil more work to do |
| 2201 |
- 2024-11-25: small nitfixes |
| 2202 |
mostly to address nits detected by newer compilers due to CI-system modernization |
| 2203 |
- 2024-11-19: core bugfix: potential stability issue with corrupt queue file resolved |
| 2204 |
Thanks to Flos Lonicerae for the patch. |
| 2205 |
- 2024-11-19: core bugfix: prevent segfault on use of $ControlCharacterEscapePrefix |
| 2206 |
When this obsolete legacy directive was used, rsyslog most probably segfaulted during |
| 2207 |
startup. This did not affect it's modern counterpart. |
| 2208 |
Thanks to Flos Lonicerae for the patch. |
| 2209 |
- 2024-11-14: core bugfix: rsyslog could segfault if immediately stopped during startup |
| 2210 |
systemd restart rsyslog in the early start of OS will let rsyslog segmentation |
| 2211 |
fault. This cmd will send sigTerm to rsylogd, and rsyslogd will handle the |
| 2212 |
signal in rsyslogdDoDie. If the rsyslogd havn't parse the conf, the runConf |
| 2213 |
will be NULL So check the pointer before reference it. |
| 2214 |
see also: https://github.com/rsyslog/rsyslog/issues/5453 |
| 2215 |
thanks to Wang Haitao for the patch. |
| 2216 |
- 2024-11-14: imhiredis cleanup: fix incorrect variable definitions and missing prototype |
| 2217 |
Thanks to Théo Bertin for the patch. |
| 2218 |
- 2024-11-14: config processing bugfix: typo and missing space when file can't be accessed |
| 2219 |
When using the backtick feature with cat and a file that does not exist, |
| 2220 |
an error message is placed where the file content would be. This error |
| 2221 |
message contained a typo in could as well as a missing space between |
| 2222 |
see and error, which have now been fixed. |
| 2223 |
Thanks to Tobias Kantusch for the patch. |
| 2224 |
- 2024-11-14: build fix: resolved issue when building on musl |
| 2225 |
Thanks to Quincy Fleming for the patch. |
| 2226 |
- 2024-11-14: testbench bugfix: typo caused invalid test file to be used |
| 2227 |
... which went unnoticed during regular make check runs, but lead to |
| 2228 |
"left-over files after distclean" after make distcheck. |
| 2229 |
This could also potentially be responsible for some flakes that were |
| 2230 |
not fully explainable. |
| 2231 |
- 2024-11-14: nsd_ptcp regression fix: remove debugging messages emited to stderr |
| 2232 |
fix regression introduced by 9ac56b286. This spits out a debug message |
| 2233 |
to stderr. That message is removed by this patch here. |
| 2234 |
closes https://github.com/rsyslog/rsyslog/issues/5485 |
| 2235 |
---------------------------------------------------------------------------------------- |
| 2236 |
Scheduled Release 8.2410.0 (aka 2024.10) 2024-10-22 |
| 2237 |
- network subsystem: improve connection failure error message |
| 2238 |
If we try to connect via TCP and the connections fails, we now |
| 2239 |
tell inside the error message how long the connection attempt |
| 2240 |
took. This is useful to find out if targets connect very |
| 2241 |
slowly. |
| 2242 |
- regression fix: build issue on Solaris 10 |
| 2243 |
Solaris 10 does not support SO_REUSEPORT, which we need for some |
| 2244 |
tests. It is used in minitcpsrvr.c, and will now not be used if |
| 2245 |
not available. |
| 2246 |
Note that tests requiring that option will also need to be disabled |
| 2247 |
for that platform. |
| 2248 |
commit which introduced regression: 1c0f9bb |
| 2249 |
- testbench: correctly apply socket options in minitcpsrvr |
| 2250 |
The option name in setsockopts is not a bitmask, so SO_REUSEADDR and |
| 2251 |
SO_REUSEPORT can't be ORed together. Instead apply the options via |
| 2252 |
separate calls. |
| 2253 |
Fixes: #5456 |
| 2254 |
Thanks: Chris Hofstaedtler <[email protected]> and Michael Biebl |
| 2255 |
---------------------------------------------------------------------------------------- |
| 2256 |
Scheduled Release 8.2408.0 (aka 2024.08) 2024-08-20 |
| 2257 |
- 2024-08-16: omfwd: implement native load balancing - phase 1 |
| 2258 |
This patch implements a simple round-robin load balancer |
| 2259 |
for omfwd. It provides equal distribution of load to a pool |
| 2260 |
of target servers. |
| 2261 |
The code currently has no different modes and no special tuning |
| 2262 |
for the load balancer. However, it works very well in the most |
| 2263 |
common use cases. Furthermore, it provides a solid base on which |
| 2264 |
more elaborate functionality can be build if there is need to. |
| 2265 |
The new functionality is fully backwards compatible with previous |
| 2266 |
configuration settings. |
| 2267 |
New action() config params: |
| 2268 |
* pool.resumeinterval |
| 2269 |
New/"changed" rstats counters |
| 2270 |
Each target receives its own set of pstats counters. Most |
| 2271 |
importantly this is the case for byte counts. That counter retains |
| 2272 |
the same naming, but there may now be multiple of these counters, |
| 2273 |
one for each target ip, port tuple. |
| 2274 |
New pstats message count to target |
| 2275 |
Among others, this can be used for checking that the load balancer |
| 2276 |
works as intended. The so-far byte count emitted does not provide |
| 2277 |
a clear indication of how many messages the targets had actually |
| 2278 |
processed. |
| 2279 |
For obvious reasons, this message count makes most sense in |
| 2280 |
advanced load balancing scenarios, but also provides additional |
| 2281 |
insight into round-robin. Non-matches indicate that targets |
| 2282 |
went offline, and we can now evaluate the impact this had |
| 2283 |
on processing. |
| 2284 |
- re-design rebind functionality |
| 2285 |
This now works at the transaction level. It causes a rebind of all |
| 2286 |
pool members. Previous code did not work 100% correct since for a |
| 2287 |
couple of years now (after output batching integration). |
| 2288 |
As cleanup, rebindInterval support has been removed from tcpClt, |
| 2289 |
because omfwd is the only user. This permits a cleaner code path. |
| 2290 |
We also noticed a bug with rebindInterval: it caused some mild |
| 2291 |
message duplication for quite some time. This went unnoticed. |
| 2292 |
To address that efficiently, rebindInterval in the future will |
| 2293 |
be considered once per batch. That means up to (maxBatchSize - 1) |
| 2294 |
messages may be transmitted more than the rebindinterval is. |
| 2295 |
That's the cleanest mode of operation and should not make any |
| 2296 |
difference for real deployments. |
| 2297 |
Some additional work done in this commit: |
| 2298 |
- netstream: harden component against upper-layer logic errors |
| 2299 |
- network subsystem: better handle API errors and provide more info |
| 2300 |
- omfwd: add new parameter "iobuffer.maxsize" |
| 2301 |
- add new global parameter debug.abortoninternalerror and use it |
| 2302 |
- This parameter permits to make test runs fail when an internal error |
| 2303 |
- is detected and gracefully handled by rsyslog. While it is great to |
| 2304 |
have it gracefully handled in practice, we should not accept this |
| 2305 |
during testing. The new parameter permits to abort in this case and |
| 2306 |
emits the related error message beforehand. It is turned on by |
| 2307 |
default in our regular tests. |
| 2308 |
- add dedicated error code for "hard" program errors |
| 2309 |
- omfwd: some cleanup + error message fix + new debug level messages |
| 2310 |
- imptcp: improve error messages |
| 2311 |
- add omfwd option to NOT do extended connection check |
| 2312 |
- also output wrkr id in some omfwd messages (primarily debugging aid) |
| 2313 |
- better debug info via LogMsg() interface |
| 2314 |
- improve messages regarding imptcp and omfwd suspension / thread IDs |
| 2315 |
- refactor and enchance minitcpsrvr for mimicing died servers |
| 2316 |
- new global (debugging) option, correction of an informational msg |
| 2317 |
- add global option allmessagestostderr |
| 2318 |
- add new tests |
| 2319 |
- 2024-08-16: omkafka enhance: write Kafka log with level ERROR or higher into errorfile |
| 2320 |
closes: https://github.com/rsyslog/rsyslog/issues/5425 |
| 2321 |
- 2024-08-16: net subsusytem bugfix: some config statemens were not accepted |
| 2322 |
The following parameters were not always excepted, even though they were documented |
| 2323 |
and the supporting code was also present. This has been corrected: |
| 2324 |
* streamdriver.cafile |
| 2325 |
* streamdriver.crlfile |
| 2326 |
* streamdriver.keyfile |
| 2327 |
* streamdriver.certfile |
| 2328 |
Thanks to Qiumiao Zhang for the fix. |
| 2329 |
- 2024-08-13: new "ossl" crypto provider |
| 2330 |
Thanks to Attila Lakatos for the patch. |
| 2331 |
- 2024-08-05: imtcp: improve connection error messages |
| 2332 |
They now contain remote peer information whereever possible. |
| 2333 |
---------------------------------------------------------------------------------------- |
| 2334 |
Scheduled Release 8.2406.0 (aka 2024.06) 2024-07-02 |
| 2335 |
- 2024-07-01: ompgsql bugfix: unexpected and unnecessary message loss |
| 2336 |
In case of PG not available lets retry instead of dropping messages |
| 2337 |
Thanks to Nickolai Novik for the patch. |
| 2338 |
- 2024-07-01: tls subsystem/ossl driver |
| 2339 |
Several small fixes/additions |
| 2340 |
* output all loaded ciphers and engines into debug log |
| 2341 |
* Add new global option "defaultopensslengine" to customize the default openssl |
| 2342 |
engine. If not defined, openssl will handle the default engine automatically. |
| 2343 |
Sample: global(defaultopensslengine="rdrand") |
| 2344 |
* Add simple openssl performance test (imtcp-tls-ossl-basic-stress.sh) with |
| 2345 |
defaultopensslengine set to rdrand (Intel). |
| 2346 |
* removed unneeded testcase files in runtime folder. |
| 2347 |
- 2024-04-18: [o|i]mprog/mmexternal bugfix: invalid command line parameter passing |
| 2348 |
Quoted command line parameters were incorrectly passed to the called program. This |
| 2349 |
resulted in unexpected behaviour. For example, in |
| 2350 |
bash -c "echo test" |
| 2351 |
bash got passed parameters '-c" and '"echo test"'. Note the double quotes in |
| 2352 |
'"echo test"'. These needed to be removed by Unix/Linux standards but were instead |
| 2353 |
passed to bash. That in turn resulted in invalid execution. With the fix, the |
| 2354 |
behaviour is now correct. Now, bash gets passed '-c' and 'echo test'. |
| 2355 |
This actually is a BREAKING CHANGE. However, it was outright wrong behaviour from |
| 2356 |
the beginning. We assume that people either never noticed it (because they did not |
| 2357 |
use quoted parameters) or used some workaroud, likely a "starter script", which |
| 2358 |
performed the right task. As such, we do expect that only a very limited set of |
| 2359 |
installations might be affected by the change. |
| 2360 |
Even more important, we would need to change the default behaviour in any case, |
| 2361 |
because the previous handling was obviosuly unacceptable. As such, there was no |
| 2362 |
way to keep rsyslog perform the previous action. |
| 2363 |
Thanks to Paul Fertser for the patch. |
| 2364 |
- 2024-04-12: bugfixes related to time_t on 32 bit platforms (y38k isue) |
| 2365 |
Thanks to Michael Biebl for the patch. |
| 2366 |
---------------------------------------------------------------------------------------- |
| 2367 |
Scheduled Release 8.2404.0 (aka 2024.04) 2024-04-02 |
| 2368 |
- 2024-04-02: omhttp patches and enhancement |
| 2369 |
New omhttp plugin configuration parameters added: |
| 2370 |
* restpathtimeout - configures a timeout value for an omhttp restpath, and retry again |
| 2371 |
* httpretrycodes (list) - configurable list of HTTP status codes that should be |
| 2372 |
retried by omhttp plugin. The default behavior is to retry any non 2xx status code. |
| 2373 |
* httpignorablecodes (list) that can specify HTTP status codes that should be ignored |
| 2374 |
(as failures). status codes specified as ignorable code will not be retried. |
| 2375 |
* proxyhost, proxyport - configures a proxy, for which omhttp can use to set up a |
| 2376 |
HTTP proxy tunnel connection. Also works by reading environment variable if |
| 2377 |
configured HTTP_PROXY. For more details see libcurl docs on CURLOPT_PROXY |
| 2378 |
thanks to @erenwh for the contribution! |
| 2379 |
* retry.addmetadata - when this option is enabled, omhttp will add the |
| 2380 |
response metadata to: $!omhttp!response. There are 3 response metadata added: |
| 2381 |
code, body, batch_index. |
| 2382 |
More statistics omhttp curl statistic counters: |
| 2383 |
* requests.count |
| 2384 |
* requests.status.0xx |
| 2385 |
* requests.status.1xx |
| 2386 |
* requests.status.2xx |
| 2387 |
* requests.status.3xx |
| 2388 |
* requests.status.4xx |
| 2389 |
* requests.status.5xx |
| 2390 |
* requests.bytes |
| 2391 |
* requests.time_ms |
| 2392 |
No longer discard 3xx, 4xx errors |
| 2393 |
see also https://github.com/rsyslog/rsyslog/issues/4636 |
| 2394 |
Thanks to github user n2yen for the patches. |
| 2395 |
- 2024-04-02: remove CAP_IPC_LOCK capability |
| 2396 |
Does not seem to be necessary. |
| 2397 |
Thanks to Michael Biebl for the patch. |
| 2398 |
- 2024-03-28: TLS bugfix: TLS drivers did not properly load under some conditions |
| 2399 |
This was a regeression from the DTLS implementation |
| 2400 |
- 2024-03-28: mmdblookup bugfix: do not suspend on incompatible IP lookup |
| 2401 |
Mmdblookup module used to suspend after erroring on an IPv6 IP lookup on IPv4-only |
| 2402 |
DBs. The suspension of the module is now replaced by a simple log message, |
| 2403 |
allowing it to keep working for future lookups. |
| 2404 |
Thanks to Théo Bertin (frikilax) for the patch. |
| 2405 |
- 2024-03-28: tarball fix: dist tarball was missing a textbench file |
| 2406 |
This made the testbench fail. |
| 2407 |
---------------------------------------------------------------------------------------- |
| 2408 |
Scheduled Release 8.2402.0 (aka 2024.02) 2024-02-27 |
| 2409 |
- 2024-02-26: add DTLS support |
| 2410 |
This version comes with the initial implementation of imdtls and omdtls. |
| 2411 |
These modules permit secure message exchange over UDP. |
| 2412 |
- 2024-02-26: testbench: make omusrmsg-noabort test more reliable |
| 2413 |
The previous test did not always detect an abort of rsyslog/omusrmsg. |
| 2414 |
The detection method has now been improved, so it is far more |
| 2415 |
probable that an abort is detected. |
| 2416 |
While doing this, we noticed that the omusrmsg-noabort-legacy test was |
| 2417 |
now a 100% duplicate. There is no need any longer to check pure legacy |
| 2418 |
syntax, and so that test has been removed. |
| 2419 |
We also added a valgrind-based test ofr omusrmsg-noabort, which furthers |
| 2420 |
strengthens bug detection. Most importantly, it helps us to detect |
| 2421 |
potentially new memory leaks on all CI platforms (in case the lib |
| 2422 |
behaves differently depending on os/distro). |
| 2423 |
see also https://github.com/rsyslog/rsyslog/issues/5294 |
| 2424 |
- 2024-02-26: omusrmsg bugfix: potential double free, which can cause segfault |
| 2425 |
omusrmsg frees a string which points to OS/system library memory. When |
| 2426 |
the os/libs clean up, it frees the memory as well. This results in a |
| 2427 |
double free. This bug interestingly seems to go unnoticed in many cases. |
| 2428 |
But it can cause a segfault or hard-to-trace memory corruptions which |
| 2429 |
could lead to other problems later on. The outcome of this bug most |
| 2430 |
probably depdns on os/library versions. |
| 2431 |
closes https://github.com/rsyslog/rsyslog/issues/5294 |
| 2432 |
- 2024-02-26: ommysql bugfix: potential segfault on database error |
| 2433 |
Due to an invalid code path, ommysql may cause a segfault if database |
| 2434 |
transactions fail into a specific way. The main trigger is a totally |
| 2435 |
irrecoverrable database error which can lead to premature connection |
| 2436 |
close, which is not checked for in all recover code. |
| 2437 |
This was detected in a setting where a stored procedure is called that |
| 2438 |
rolls back a transaction in itself. |
| 2439 |
This patch fixes the issue. |
| 2440 |
closes https://github.com/rsyslog/rsyslog/issues/5288 |
| 2441 |
- 2024-02-26: omfile: do not carry out actual action when writing to /dev/null |
| 2442 |
In some use cases omfile is configured to write to /dev/null. This seems |
| 2443 |
primarily be done because of statistics gathering but maybe some other |
| 2444 |
scenarios. We now add conditional logic to not do any actual omfile |
| 2445 |
action when the target file is /dev/null. |
| 2446 |
Note: this check only works on static file names. When /dev/null is |
| 2447 |
evaluated as part of dynafile, it will be handled just in the regular |
| 2448 |
case like before this patch. |
| 2449 |
---------------------------------------------------------------------------------------- |
| 2450 |
Scheduled Release 8.2312.0 (aka 2023.12) 2023-12-12 |
| 2451 |
- 2023-12-11: imjournal: Add new input module parameter 'defaulttag' |
| 2452 |
The DefaultTag option specifies the default value for the tag field. |
| 2453 |
In imjournal, this can happen when one of the following is missing: |
| 2454 |
* identifier string provided by the application (SYSLOG_IDENTIFIER) |
| 2455 |
* name of the process the journal entry originates from (_COMM) |
| 2456 |
Thanks to Attila Lakatos for the patch. |
| 2457 |
- 2023-12-08: core bugfix: rsyslog messages may not always have FQDN |
| 2458 |
Even if hostname FQDN is configured, rsyslog internal messages generated |
| 2459 |
after rsyslog startup and before the first HUP will not necessarily have |
| 2460 |
FQDN but instead only the shortname of the local host. This commit |
| 2461 |
fixes the situation. |
| 2462 |
Special thanks to github user eciii for doing a great bug analysis |
| 2463 |
and helping us considerably to fix the issue. |
| 2464 |
closes https://github.com/rsyslog/rsyslog/issues/5218 |
| 2465 |
- 2023-12-08: omlibdbi regression fix: database path was not properly used |
| 2466 |
Commit 4a072d6c93015a63716c49a6c7756df22750086a caused a regression that made |
| 2467 |
the database path unreliable to use. Depending on platform/libc version the |
| 2468 |
basename was improperly extracted, which made access to the database of sqllite |
| 2469 |
impossible. |
| 2470 |
Thanks to Flávio Tapajós for the patch. |
| 2471 |
closes: https://github.com/rsyslog/rsyslog/issues/5282 |
| 2472 |
- 2023-12-06: mazureeventhubs: Corrected handling of transport closed failures |
| 2473 |
- Added test for connection interrupts (requires root) |
| 2474 |
- Corrected handling of PN_TRANSPORT_CLOSED. |
| 2475 |
- Make sure Connection is being reestablished trough tryResume |
| 2476 |
- Enhanced Debug log output |
| 2477 |
closes: https://github.com/rsyslog/rsyslog/issues/5269 |
| 2478 |
- 2023-11-24: imkmsg: add params "readMode" and "expectedBootCompleteSeconds" |
| 2479 |
These parameters permit to control when imkmsg reads the full |
| 2480 |
kernel log upon startup. |
| 2481 |
Parameter "readMode" provides the following options: |
| 2482 |
* full-boot - (default) read full klog, but only "immediately" after |
| 2483 |
boot. "Immediately" is hereby meant in seconds of system |
| 2484 |
uptime given in "expectedBootCompleteSeconds" |
| 2485 |
* full-always - read full klog on every rsyslog startup. Most |
| 2486 |
probably causes messag duplication |
| 2487 |
* new-only - never emit existing kernel log message, read only |
| 2488 |
new ones. |
| 2489 |
Note that some message loss can happen if rsyslog is stopped |
| 2490 |
in "full-boot" and "new-only" read mode. The longer rsyslog is |
| 2491 |
inactive, the higher the message loss probability and potential |
| 2492 |
number of messages lost. For typical restart scenarios, this |
| 2493 |
should be minimal. On HUP, no message loss occurs as rsyslog |
| 2494 |
is not actually stopped. |
| 2495 |
The default value for "expectedBootCompleteSeconds" is 90. |
| 2496 |
see also https://github.com/rsyslog/rsyslog/issues/5161 |
| 2497 |
- 2023-11-10: imkmsg: add module param parseKernelTimestamp |
| 2498 |
The parameter permits to select whether or not and when kernel |
| 2499 |
timestamps shall parsed, that is be used as the actual time a |
| 2500 |
log message occurs. |
| 2501 |
This permits to work around problems with the way kernel |
| 2502 |
timestamps are represented. The reasoning is given in a sysklogd |
| 2503 |
commit by Joachim Wiberg, which we reproduce below ("QUOTE") to |
| 2504 |
have a stable reference. |
| 2505 |
The commit itself can be found for example at: |
| 2506 |
https://github.com/troglobit/sysklogd/commit/9f6fbb3301e571d8af95f8d771469291384e9e95 |
| 2507 |
The new parameter parseKernelTimestamp has three possible modes: |
| 2508 |
"startup" - uses the kernel time stamp during the initial read |
| 2509 |
loop of /dev/kmsg, but replaced it later ignores it for later reads. |
| 2510 |
This is the DEFAULT setting. |
| 2511 |
"on" - kernel timestamps are always used and no correction is tried |
| 2512 |
"off" - kernel timestamps are never used, system time is used instead |
| 2513 |
Note that there this is a slightly breaking change. Previously, imkmsg |
| 2514 |
reported similar to "off" mode, now it reports by default in "startup" |
| 2515 |
mode. We consider this acceptable, as "off" mode timestamps are not |
| 2516 |
correct for startup. After startup, the behaviour is correct. All in |
| 2517 |
all, the new default is kind of a bugfix. |
| 2518 |
============== QUOTE =============== |
| 2519 |
The spec[1] says the /dev/kmsg timestamp is a monotonic clock and in |
| 2520 |
microseconds. After a while you realize it's also relative to the boot |
| 2521 |
of the system, that fact was probably too obvious to be put in the spec. |
| 2522 |
However, what's *not* in the spec, and what takes a while to realize, is |
| 2523 |
that this monotonic time is *not* adjusted for suspend/resume cycles ... |
| 2524 |
On a frequently used laptop this can manifest itself as follows. The |
| 2525 |
kernel is stuck on Nov 15, and for the life of me I cannot find any to |
| 2526 |
adjust for this offset: |
| 2527 |
$ dmesg -T |tail -1; date |
| 2528 |
[Mon Nov 15 01:42:08 2021] wlan0: Limiting TX power to 23 (23 - 0) dBm as advertised by 18:e8:29:55:b0:62 |
| 2529 |
Tue 23 Nov 2021 05:20:53 PM CET |
| 2530 |
Hence this patch. After initial "emptying" of /dev/kmsg when syslogd |
| 2531 |
starts up, we raise a flag (denoting done with backlog), and after this |
| 2532 |
point we ignore the kernel's idea of time and replace it with the actual |
| 2533 |
time we have now, the same that userspace messages are logged with. |
| 2534 |
Sure, there will be occasions where there's a LOT of kernel messages to |
| 2535 |
read and we won't be able to keep track. Yet, this patch is better than |
| 2536 |
the current state (where we log Nov 15). |
| 2537 |
[1]: https://www.kernel.org/doc/Documentation/ABI/testing/dev-kmsg |
| 2538 |
===========END QUOTE =============== |
| 2539 |
closes https://github.com/rsyslog/rsyslog/issues/4561 |
| 2540 |
closes https://github.com/rsyslog/rsyslog/issues/5161 |
| 2541 |
- 2023-11-07: imfile bugfix: remove state file on file delete |
| 2542 |
The state file would remain in the working directory |
| 2543 |
after shutdown, even though deleteStateOnfileDelete is |
| 2544 |
set to "on" and the monitored file was removed. |
| 2545 |
closes https://github.com/rsyslog/rsyslog/issues/5258 |
| 2546 |
Thanks to Attila Lakatos for the patch. |
| 2547 |
- 2023-10-31: TLS subsystem: fix small memory leak on startup |
| 2548 |
This was a one-time leak of the file name that hapened if a certificate file |
| 2549 |
was not accessible. It had no operational issues, but could confuse automatted |
| 2550 |
testing. As not only a side-effect, certificate load failures are now somewhat |
| 2551 |
more verbosely reported, which we consider helpful to the user. |
| 2552 |
Thanks to Attila Lakatos for the patch. |
| 2553 |
- 2023-10-31: imklog bugfix: keepKernelTimestamp=off config param did not work |
| 2554 |
... at least not as expected. It was only honored for kernel-level |
| 2555 |
messages and only when parseKernelTimestamp was "on". Otherwise, the |
| 2556 |
kernel timestamp was always kept inside the message. |
| 2557 |
closes https://github.com/rsyslog/rsyslog/issues/5160 |
| 2558 |
- 2023-10-26: TLS subsystem: add remote hostname to error reporting |
| 2559 |
This provides richer and easier to process logs for error and warning |
| 2560 |
cases. One goal is to enable automatic operations without the need |
| 2561 |
to consolidate multiple message to a single information. |
| 2562 |
This improves one situation in gtls driver and provides a more |
| 2563 |
generic approach in ossl driver for OpenSSL error reporting. |
| 2564 |
There is probably still room for improvement, however this patch |
| 2565 |
is at least a good starting point for further work. Please |
| 2566 |
provide feedback if you need more! |
| 2567 |
closes https://github.com/rsyslog/rsyslog/issues/5244 |
| 2568 |
- 2023-10-24: imjournal: add the ability to run multiple journal inputs |
| 2569 |
This may be useful to de-couple journal processing. |
| 2570 |
Thanks to Willy Tu for the patch. |
| 2571 |
- 2023-10-24: regression fix: forking rsyslogd on BSD did not work |
| 2572 |
Actually, this was an issue for all platforms that do not provide open file handle |
| 2573 |
detection via the /proc file system. |
| 2574 |
Tech details: After fork if the child process uses close_range to close open file |
| 2575 |
descriptors it has no way to exempt the parentPipeFD causing a failure to signal |
| 2576 |
successful startup to the parent process. This causes failures on all systems that |
| 2577 |
aren't Linux that implement close_range. |
| 2578 |
Thanks to Nathan Huff for the patch. |
| 2579 |
- 2023-10-24: omusrmsg: use logind instead of utmp for wall messages with systemd |
| 2580 |
Future SUSE versions will get rid of utmp due to a 32bit time_t counter |
| 2581 |
overflow in 2038. |
| 2582 |
See details at: |
| 2583 |
https://github.com/thkukuk/utmpx/blob/main/Y2038.md |
| 2584 |
On systemd based systems logind is an alternative to utmp. |
| 2585 |
Thanks to github user tblume for the patch. |
| 2586 |
- 2023-10-24: cleanup: rm no longer used --with-systemdsystemunitdir configure switch |
| 2587 |
This is a clean up following the removal of the service unit in |
| 2588 |
cfd07503ba055100a84d75d1a78a5c6cceb9fdab |
| 2589 |
- 2023-10-23: testbench: bump zookeeper version to match current offering |
| 2590 |
Older version can no longer be downloaded. It also makes sense to |
| 2591 |
test with mainstream version. |
| 2592 |
---------------------------------------------------------------------------------------- |
| 2593 |
Scheduled Release 8.2310.0 (aka 2023.10) 2023-10-10 |
| 2594 |
- 2023-10-04: Add CAP_NET_RAW capability due to the omudpspoof module |
| 2595 |
The CAP_NET_RAW ensures the use of RAW and PACKET sockets, |
| 2596 |
which is utilized by the omudpspoof module, more precisely |
| 2597 |
the libnet_init function. |
| 2598 |
Thanks to Attila Lakatos for the patch. |
| 2599 |
- 2023-10-04: Add new global config option "libcapng.enable" |
| 2600 |
Defines whether rsyslog should drop capabilities at startup or not. |
| 2601 |
By default, it is set to "on". Until this point, if the project was |
| 2602 |
compiled with --enable-libcap-ng option, capabilities were |
| 2603 |
automatically dropped. This is configurable now. |
| 2604 |
Thanks to Attila Lakatos for the patch. |
| 2605 |
- 2023-10-04: tcp net subsystem: handle data race gracefully |
| 2606 |
It may happen that a socket file descriptor has been closed either |
| 2607 |
while setting up poll() et al or while being inside the system call. |
| 2608 |
This was previously treated as error and caused abort in debug |
| 2609 |
builds. However, it was essentially ignored in production builds. |
| 2610 |
This has now been fixed and now is always gracefully ignored. This |
| 2611 |
most importantly fixes some flakes in CI runs (which were caused |
| 2612 |
by this situation). |
| 2613 |
- 2023-09-29: imrelp bufgifx: avoid crash on restart in imrelp SIGTTIN handler |
| 2614 |
While existing, if at specific time rsyslog receives a SIGTTIN, it |
| 2615 |
crashes due to 2 issues. |
| 2616 |
1. debug.unloadModules="off" a double free of pRelpEngine |
| 2617 |
2. debug.unloadModules="on" it crashes because the signal handler has |
| 2618 |
been unmapped from memory. |
| 2619 |
This patch covers both issues. |
| 2620 |
Thanks to Ali Abdallah for the patch. |
| 2621 |
- 2023-09-28: fix startup issue on modern systemd systems |
| 2622 |
When we startup AND are told to auto-background ourselfs, we must |
| 2623 |
close all unneeded file descriptors. Not doing this has some |
| 2624 |
security implications. Traditionally, we do this by iterating |
| 2625 |
over all possible file descriptor values. This is fairly compatible, |
| 2626 |
because we need no OS-specific method. However, modern systemd configs |
| 2627 |
tend to not limit the number of fds, so there are potentially 2^30(*) |
| 2628 |
fds to close. While this is OKish, it takes some time and makes |
| 2629 |
systemd think that rsyslog did not properly start up. |
| 2630 |
We have now solved this by using the /proc filesystem to obtain our |
| 2631 |
currently open fds. This works for Linux, as well as Cygwin, NetBSD, |
| 2632 |
FreeBDS and MacOS. Where not available,and close_range() is available |
| 2633 |
on the (build) platform, we try to use it. If that fails as well, we |
| 2634 |
fall back to the traditional method. In our opionion, this fallback |
| 2635 |
is unproblematic, as on these platforms there is no systemd and in |
| 2636 |
almost all cases a decent number of fds to close. |
| 2637 |
Very special thanks go out to Brennan Kinney, who clearly described |
| 2638 |
the issue to us on github and also provided ample ways to solve it. |
| 2639 |
What we did is just implement what we think is the best fit from |
| 2640 |
rsyslog's PoV. |
| 2641 |
(*) Some details below on the number of potentially to close fds. |
| 2642 |
This is directly from a github posting from Brennan Kinney. |
| 2643 |
Just to clarify, by default since systemd v240 (2018Q4), that |
| 2644 |
should be `1024:524288` limit. As in the soft limit is the expected |
| 2645 |
`1024`. |
| 2646 |
The problem is other software shipping misconfiguration in systemd |
| 2647 |
services that overrides this to something silly like |
| 2648 |
`LimitNOFILE=infinity`. |
| 2649 |
- Which will map to the sysctl `fs.nr_open` (_a value systemd |
| 2650 |
v240 also raises from `2^20` to 2^30`, some distro like Debian are |
| 2651 |
known to opt-out via patch for the `fs.nr_open` change_). |
| 2652 |
- With the biggest issue there being that the soft limit was also |
| 2653 |
set to `infinity` instead of their software requesting to raise |
| 2654 |
the soft limit to a higher value that the hard limit permits. |
| 2655 |
`infinity` isn't at all sane though. |
| 2656 |
- The known source of this misconfiguration is container software such |
| 2657 |
as Docker and `containerd` (_which would often sync with the |
| 2658 |
systemd `.service` config from the Docker daemon `dockerd.service`_). |
| 2659 |
closes https://github.com/rsyslog/rsyslog/issues/5158 |
| 2660 |
- 2023-09-13: Add the 'batchsize' parameter to imhiredis |
| 2661 |
Parameter set to allow configuring the amount of entries imhiredis debatches at once. |
| 2662 |
Default value of '10' has been kept to avoid any side effect on existing |
| 2663 |
configurations. |
| 2664 |
Thanks to Jérémie Jourdin for the patch. |
| 2665 |
- 2023-09-13: omprog bugfix: Add CAP_DAC_OVERRIDE to the bounding set |
| 2666 |
The omprog module uses the execve() function to execute |
| 2667 |
a third party program. Some required capabilities were not |
| 2668 |
preserved in the bounding set [1]. This caused problems, e.g. |
| 2669 |
the program could not write to files even if rsyslog was |
| 2670 |
executed as root and privileges were not dropped. As of now, |
| 2671 |
only the CAP_DAC_OVERRIDE capability is added to the bounding |
| 2672 |
set. Others could be added later, if there is justification |
| 2673 |
behind that. |
| 2674 |
[1] The capability bounding set is a security mechanism that |
| 2675 |
can be used to limit the capabilities that can be gained |
| 2676 |
during an execve(2). During an execve, the capability |
| 2677 |
bounding set is ANDed with the file permitted capability |
| 2678 |
set, and the result of this operation is assigned to the |
| 2679 |
thread's permitted capability set. The capability |
| 2680 |
bounding set thus places a limit on the permitted |
| 2681 |
capabilities that may be granted by an executable file. |
| 2682 |
Thanks to Attila Lakatos for the patch. |
| 2683 |
- 2023-09-13: tcpflood bugfix: plain tcp send error not properly reported |
| 2684 |
The error code when plain tcp sending failed was improperly returned, |
| 2685 |
resulting in no meaningful error message. |
| 2686 |
Note: tcpflood is a testbench tool, not part of production rsyslog. |
| 2687 |
---------------------------------------------------------------------------------------- |
| 2688 |
Scheduled Release 8.2308.0 (aka 2023.08) 2023-08-15 |
| 2689 |
- 2023-08-07: crypto subsystem bugfix: potential undefined behaviour |
| 2690 |
The is some potential undefined behaviour when initializting the IV for locally |
| 2691 |
encrypting log files. The issue cancels itself out, but at least causes |
| 2692 |
some confusion when using undefined behaviour sanitizer (UBSAN). However, |
| 2693 |
UBSAN seems not to detect the issue on all platforms and/or in all versions |
| 2694 |
(we were not able to reproduce this issue in our CI). |
| 2695 |
Please also note that the functionality where this can happen is extremely |
| 2696 |
rarely being used. |
| 2697 |
Thanks to Jeffrey Walton for providing the patch. |
| 2698 |
- 2023-08-02: lookup tables: fix static analyzer issue |
| 2699 |
If something goes really wrong, a lookup table's name would not |
| 2700 |
be set. That could lead to a NULL pointer access. HOWEVER, this |
| 2701 |
would require serious bugs in config parameter parsing, as the |
| 2702 |
lookup table name is a required parameter and the parser will |
| 2703 |
error out if not set. |
| 2704 |
So the bug is mostly cosmetic - but it does not hurt to handle |
| 2705 |
this case, of course. |
| 2706 |
- 2023-08-02: lookup tables bugfix: reload on HUP did not work when backgrounded |
| 2707 |
Lookup tables were only reloaded on HUP if the -n option was given |
| 2708 |
and rsyslog no backgrounded. This patch fixes the issue. |
| 2709 |
closes: https://github.com/rsyslog/rsyslog/issues/4813 |
| 2710 |
- 2023-07-30: testbench: make test more reliable |
| 2711 |
There was a race between tcpflood and rsyslog in imptpc_maxsessions.sh. |
| 2712 |
We now use the new -A tcpflood option to make the timing more |
| 2713 |
predictable, hopefully fixing test flakiness. |
| 2714 |
Note: if that does not help, we need to introduce a wait on the number |
| 2715 |
of error messages and maybe a delay before tcpflood termination. The |
| 2716 |
theory behind the latter is that rsyslog possibly does not fully |
| 2717 |
iniaitlize session which are quickly aborted before rsyslog receives |
| 2718 |
the related OS notification! We just record this info in case we |
| 2719 |
need it and are positive that this change will fix the situation. |
| 2720 |
- 2023-07-28: openssl: make connection setup more reliable by use of newer lib feature |
| 2721 |
Replaced depreceated method SSLv23_method with TLS_method. |
| 2722 |
In OpenSSL 1.1.0 and higher, SSLv23_method causes some errors |
| 2723 |
in TLS handshake from time to time. As this method is depreceated |
| 2724 |
since 1.1.0, I have replaced it with the follow up method |
| 2725 |
TLS_method which is the most generic one. |
| 2726 |
It fixes the random test failures in tests like |
| 2727 |
- sndrcv_tls_ossl_anon_rebind.sh |
| 2728 |
Also added some debug output in OpenSSL error handling, which is |
| 2729 |
useful when analysing debug files. |
| 2730 |
closes: https://github.com/rsyslog/rsyslog/issues/5201 |
| 2731 |
- 2023-07-28: testbench improvement: define state file directories for imfile tests |
| 2732 |
Not all imfile tests have state file directories or a global working |
| 2733 |
directory defined. This results in usage of the default location. |
| 2734 |
While state file names should be sufficiently different, there is still |
| 2735 |
some riks of using the same name in different tests. That becomes |
| 2736 |
problematic if tests are run in parallel (and they are run in |
| 2737 |
parallel inside the regular CI). |
| 2738 |
NOTE: NOT YET COMPLETED FOR ALL TESTS! We are considering if it makes |
| 2739 |
sense to deliberately keep some as-is. |
| 2740 |
- 2023-07-28: tcpflood bugfix: TCP sending was not implemented properly |
| 2741 |
Note: tcpflood is a testbench tool. This bug could lead to testbench |
| 2742 |
false positives. No way it can affect production deployments. |
| 2743 |
The tcpflood tool did improperly assume that a TCP sendto() call |
| 2744 |
would send messages of any size in a single shot. This is not the |
| 2745 |
case. It has now been corrected to proper behavior. |
| 2746 |
As a side-activity, some int variables which acutally needed to be |
| 2747 |
size_t have been fixed as well. |
| 2748 |
- 2023-07-28: testbench: make waiting for HUP processing more reliable |
| 2749 |
The previous approach was more or less delay based. We have now |
| 2750 |
changed the code to enable imdiag to detect if HUP is underway |
| 2751 |
and wait until it is completed. The new method still employs some |
| 2752 |
kind of timeout, but is now quite reliable. Most importantly, |
| 2753 |
it works great with long-running HUP processing, which can happen |
| 2754 |
e.g. when querying the system name takes long or some actions need |
| 2755 |
longer time to persist their HUP processing. |
| 2756 |
The new approach will most likely reduce CI flakes and also speed |
| 2757 |
up testbench runs. The speedup happens from not having to wait a |
| 2758 |
full delay in cases where we detect HUP is completed (plus reduced |
| 2759 |
timeout when we cannot clearly detect this - see code comments why |
| 2760 |
the new method is still considered more reliable than the old one). |
| 2761 |
Code note: we needed to slightly re-structure the way actual HUP |
| 2762 |
processing and the "HUP mutex" is handled. After best analysis, |
| 2763 |
this does not affect the reliability or speed in production |
| 2764 |
settings. |
| 2765 |
closes https://github.com/rsyslog/rsyslog/issues/5192 |
| 2766 |
- 2023-07-27: build system: make rsyslogd execute when --disable-inet is configured |
| 2767 |
This option is mostly useless, as network functionality depends on the |
| 2768 |
modules loaded by the config. The only real, and important, effect it |
| 2769 |
has is to control auto-load of omfwd - a feature almost all installations |
| 2770 |
depend in (backward compatibility). |
| 2771 |
This has been clarified in ./configure -help |
| 2772 |
Also, when --disable-inet is given, rsyslog now executes successfully. |
| 2773 |
The reason for the abort was that previously building of the lmnet |
| 2774 |
component was prevented, but that component is also needed by rsyslog |
| 2775 |
startup itself to query its own (correct) hostname. |
| 2776 |
Note that --disable-inet still does not compile some networking |
| 2777 |
libraries. So do not use it if you intend to load standard networking |
| 2778 |
modules like omfwd, imtcp or imudp. |
| 2779 |
closes https://github.com/rsyslog/rsyslog/issues/5188 |
| 2780 |
- 2023-07-26: testbench/CI: update zookeper download to newer version |
| 2781 |
Old version is no longer available. |
| 2782 |
- 2023-07-24: openssl: add support for new-version init function |
| 2783 |
- 2023-07-07: add CRL support for network (TLS) drivers |
| 2784 |
Thanks to Darren J Moffat for implementing the OpenSSL part. |
| 2785 |
- 2023-07-07: omazureeventhubs: Initial implementation of new output module |
| 2786 |
The output module uses Apache "Qpid Proton C API" which is a solid |
| 2787 |
AMQP protocol library implementation that can be integrated |
| 2788 |
very well into the rsyslog dev environment. |
| 2789 |
- Implemented Delivery with submitted and accepted state checking |
| 2790 |
- saving of failed messages in a failed list with support of saving |
| 2791 |
and restoring. |
| 2792 |
- Add testcases (requires ENV variables) to testbench |
| 2793 |
- Using application/octect-stream (binary) to send messages based on |
| 2794 |
Microsoft Code Sample: |
| 2795 |
https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-c-getstarted-send |
| 2796 |
* Note original Microsoft Samplecode is not working anymore, we are using |
| 2797 |
* QPID Proton Proactor based on |
| 2798 |
https://github.com/apache/qpid-proton/blob/main/c/examples/send.c |
| 2799 |
- requires QPID-PROTON Version 0.13 or higher because of the proactor API |
| 2800 |
- Add EventProperties configuration parameters |
| 2801 |
- Slow down when sender credit reaches zero (10ns). |
| 2802 |
- Add support for static library linking of qpid-proton |
| 2803 |
This is needed to build the module from source and remove |
| 2804 |
library package dependencies. |
| 2805 |
- adjusted valgrind suppressions |
| 2806 |
- 2023-07-04: core bugfix: action.resumeintervalmax parameter was not respected |
| 2807 |
Unfortunately, defining action.resumeintervalmax in the configration |
| 2808 |
did not have any effect at all. Instead, the default value was used, |
| 2809 |
which is 1800. This was caused by not having all the letters in |
| 2810 |
lower-case. |
| 2811 |
Fixes https://github.com/rsyslog/rsyslog/issues/5132 |
| 2812 |
Thanks to Attila Lakatos for the patch. |
| 2813 |
- 2023-06-29: core bugfix: do not try to drop capabilities when we don't have any |
| 2814 |
In case the process does not have any capabilities, e.g. running as regular user then |
| 2815 |
we do not have to force capability dropping. The capng_have_capabilities() returns |
| 2816 |
none if that's the case. |
| 2817 |
Fixes https://github.com/rsyslog/rsyslog/issues/5091 |
| 2818 |
Thanks to Attila Lakatos for the patch. |
| 2819 |
- 2023-06-29: imhiredis bugfix: Restore compatiblity with hiredis < v1.0.0 |
| 2820 |
RESP3 protocol wasn't implemented yet, some types weren't |
| 2821 |
available (REDIS_REPLY_DOUBLE) |
| 2822 |
Thanks to Théo Bertin (frikilax) for the patch. |
| 2823 |
- 2023-06-23: testbench: use newer zookeeper version in tests |
| 2824 |
- 2023-06-23: build system: more precise error message on too-old lib |
| 2825 |
When libcap-ng was enabled, the lib was present but did not meet the minimum version |
| 2826 |
dependency during configure, it was reported as "missing". We now emit a message |
| 2827 |
telling that it is present, but the version too old. |
| 2828 |
---------------------------------------------------------------------------------------- |
| 2829 |
Scheduled Release 8.2306.0 (aka 2023.06) 2023-06-20 |
| 2830 |
- 2023-06-19: mmnormalize bugfix: if msg cannot be parsed, parser chain is stopped |
| 2831 |
When an parser is not able to parse a message, it should indicate this |
| 2832 |
to rsyslog core, which then activates the next parser(s) inside the |
| 2833 |
configured parser chain. |
| 2834 |
Unfortunatley, mmnormalize always tells core "success", and so no |
| 2835 |
other parsers are activated. |
| 2836 |
closes https://github.com/rsyslog/rsyslog/issues/5148 |
| 2837 |
- 2023-06-19: [i/o]mhiredis: various fixes and enhancements |
| 2838 |
please see the change log for details. Among others, suspending of the modules |
| 2839 |
has been fixed. Also a new "stream" mode has been added. |
| 2840 |
Thanks to Théo Bertin (frikilax) for the patch. |
| 2841 |
- 2023-06-19: testbench/bug: mmexternal-SegFault-empty-jroot-vg.sh fails due to typo |
| 2842 |
Fix the typo that makes the test fail. |
| 2843 |
Thanks to Paul Fertser for the patch. |
| 2844 |
- 2023-06-16: imjournal: Add FileCreateMode module parameter |
| 2845 |
FileCreateMode allows to set the default file mode bits |
| 2846 |
when creating new files. As of now, it has only impact on the state file. |
| 2847 |
Add test suite as well. |
| 2848 |
Minor indentation fix in run_journal.yml |
| 2849 |
Thanks to Attila Lakatos for the patch. |
| 2850 |
- 2023-06-16: core bugfix: potential segfault on busy systems |
| 2851 |
This was discovered by Konstantin J. Chernov in a practicaly deployment. |
| 2852 |
Here, msg object tag processing caused sporadic segfaults. We did not |
| 2853 |
hear from similiar cases, but there clearly is potential for problems |
| 2854 |
because a mutex lock had insufficient range, thus leading to a potential |
| 2855 |
race. |
| 2856 |
The patch is directly from Konstantin J. Chernov, thanks for that. |
| 2857 |
Please note that the mutex lock could be minimized as it is not strictly |
| 2858 |
needed for the pM == NULL case, but this cause is extremely exotic |
| 2859 |
and the resulting code would be harder to understand. Thus we opt |
| 2860 |
to do the locking on funtion level (as usual). |
| 2861 |
Descriptiond edited by Rainer Gerhards |
| 2862 |
closes: https://github.com/rsyslog/rsyslog/issues/5110 |
| 2863 |
- 2023-06-16: Add new global config option "libcapng.default" |
| 2864 |
Defines how rsyslog should behave in case something went wrong |
| 2865 |
when capabilities were to be dropped. Default value is "on", |
| 2866 |
in which case rsyslog exits on a libcapng related error. |
| 2867 |
Thanks to Attila Lakatos for the patch. |
| 2868 |
Closes https://github.com/rsyslog/rsyslog/issues/5096 |
| 2869 |
- 2023-06-05: imfile bugfix: file handle leak, primarily in kubernetes context |
| 2870 |
At this point there is a code imfile.c#L919 that adds an inotify observer to the |
| 2871 |
parent of the symbolic link target. But there is no such code that removes this |
| 2872 |
observer in the case when inotify events do not occur in the directory tree above. |
| 2873 |
This may be if the directory tree of the symbolic link target and the directory tree |
| 2874 |
of the symbolic link itself are divided into different subtrees somewhere at the levels |
| 2875 |
above. |
| 2876 |
For example, in the rsyslog configuration, an imfile with the |
| 2877 |
template /var/log/containers/*.log is configured and there is the following directory |
| 2878 |
tree: |
| 2879 |
/var/log/pods/pod-1/a/0.log |
| 2880 |
/var/log/containers/pod-1-a-0.log -> /var/log/pods/pod-1/a/0.log |
| 2881 |
In this example, kubernetes cron jobs will permanently delete directories at the |
| 2882 |
/var/log/pods/pod-* level. And thus, inotify observer on the parent object of the |
| 2883 |
symbolic link target (/var/log/pods/pod-1/a/0.log) looking at the directory |
| 2884 |
/var/log/pods/pod-1/a will constantly leak. |
| 2885 |
This is due to the fact that the list of active objects in the edge with path |
| 2886 |
/var/log/containers, where the parent object of the target symbolic link is added, |
| 2887 |
is not checked. Verification and deletion will occur only in the case of an inotify |
| 2888 |
event in the upper nodes of the directory tree, in /var/log and above. |
| 2889 |
Thanks to Sergey Kacheev for the patch! |
| 2890 |
- 2023-06-05: GNUTls Driver: Fix memory leaks in gtlsInitCred |
| 2891 |
Missing CA Certificate or multiple Connections caused |
| 2892 |
a memory leak in pThis->xcred as it was allocated each time in |
| 2893 |
gtlsInitCred by gnutls_certificate_allocate_credentials |
| 2894 |
closes: https://github.com/rsyslog/rsyslog/issues/5135 |
| 2895 |
- 2023-05-24: CI: update base ubuntu image for github actions |
| 2896 |
---------------------------------------------------------------------------------------- |
| 2897 |
Scheduled Release 8.2304.0 (aka 2023.04) 2023-04-18 |
| 2898 |
- 2023-04-17: imptcp bugfix: spam log on oversize message |
| 2899 |
If an oversize message was received by imptcp, imptcp reported |
| 2900 |
one error message for EACH oversize character. This could |
| 2901 |
result in a potentially very large number of similar (and |
| 2902 |
useless) messages. |
| 2903 |
This is a regression from commit f052717178. |
| 2904 |
closes https://github.com/rsyslog/rsyslog/issues/5078 |
| 2905 |
- 2023-04-17: core/bugfix: using $uuid msg prop can deadlock rsyslog on shutdown |
| 2906 |
This problem can occur if a large number of threads is used and rsyslog |
| 2907 |
cannot shut down all queues etc within the regular time interval. In this |
| 2908 |
case, it cancels some threads. That can leave the mutex guarding libuuid |
| 2909 |
calls locked and thus prevents other, not yet cancelled threads from |
| 2910 |
progressing. Assuming pthread_mutex_lock() is not a cancellation point, |
| 2911 |
this will case these other threads to hang forever and thus create a |
| 2912 |
deadlock situation. |
| 2913 |
closes https://github.com/rsyslog/rsyslog/issues/5104 |
| 2914 |
- 2023-04-17: Do not preserve capabilities when changing credentials |
| 2915 |
In configurations where $PrivDropToGroup or $PrivDropToUser are used, |
| 2916 |
rsyslogd changes uid/gid to a non-privileged user. As part of that |
| 2917 |
change, all capabilities should be lost. However, if rsyslog is |
| 2918 |
compiled with --enable-libcap-ng option, some capabilities are |
| 2919 |
preserved due to using capng_change_id() instead of setgid()and |
| 2920 |
setuid(). https://linux.die.net/man/3/capng_change_id: |
| 2921 |
This function preserves capabilities while changing uid/gid, causing |
| 2922 |
rsyslogd to run as non-root user, but with some root capabilities. |
| 2923 |
Unfortunately, rsyslogd will run with higher privileges than before. |
| 2924 |
The patch also removes CAP_SETPCAP, because the capability set does |
| 2925 |
not need to be altered at a later phase. |
| 2926 |
Thanks to Attila Lakatos for the patch. |
| 2927 |
---------------------------------------------------------------------------------------- |
| 2928 |
Scheduled Release 8.2302.0 (aka 2023.02) 2023-02-21 |
| 2929 |
- 2023-01-27: core/template: implement negative position.to |
| 2930 |
This will easily permit to drop the last n characters from a property |
| 2931 |
without the need to know the exact length of the string. This is |
| 2932 |
especially useful as the exact length is most often not known |
| 2933 |
beforehand. |
| 2934 |
- 2023-01-18: Introduce --enable-libcap-ng configure option |
| 2935 |
The option allows to drop the capabilities to only |
| 2936 |
the necessary set, to minimize security exposure in |
| 2937 |
case there was ever a mistake in a networking |
| 2938 |
plugin or some other input resource. Moreover, it adds |
| 2939 |
ability to change uid and gid while retaining the |
| 2940 |
previously specified capabilities. |
| 2941 |
Add ability to change uid and gid while retaining the |
| 2942 |
capabilities previously specified. |
| 2943 |
closes https://github.com/rsyslog/rsyslog/issues/4986 |
| 2944 |
Thanks to Attila Lakatos for the patch. |
| 2945 |
- 2023-01-16: |
| 2946 |
- omfile: add action parameters "rotation.*" |
| 2947 |
Add new action parameters |
| 2948 |
- rotation.sizeLimit |
| 2949 |
- rotation.sizeLimitCommand |
| 2950 |
provide automatic output file rotation functionality feature-wise |
| 2951 |
equivalent to legacy $outchannel. This finally permits to use |
| 2952 |
this feature set in rscript. |
| 2953 |
- core substring function: enhancement and hardening |
| 2954 |
Now, length can have a negative value -n to denote that the |
| 2955 |
substring should be build between startpos and the character |
| 2956 |
-n chars from the end. This is a shortcut for stripping charactes |
| 2957 |
on "both ends" of the string. See doc for details on the enhanced |
| 2958 |
semantics. |
| 2959 |
Also, some hardening against invalid startpos and length has |
| 2960 |
been added. |
| 2961 |
- core bugfix: wrong type conversion in internal string class could lead to segfault |
| 2962 |
This could only happen with very unusually large strings |
| 2963 |
Thanks to Flos Lonicerae for the patch. |
| 2964 |
- QA: changed to CodeQL scanning on github as LGTM replacement |
| 2965 |
- bugfix: wrong version number on daily stable builds |
| 2966 |
- CI: use newer version of zookeeper (needed modernization) |
| 2967 |
- ffaup bugfix : memory corruption with concurrent workers |
| 2968 |
The ffaup function fails to work properly when it is used with multiple workers. |
| 2969 |
The faup_handler_t struct is not supposed to be shared between threads. |
| 2970 |
This may have caused memory corruptions and race conditions when used |
| 2971 |
inside of actions. |
| 2972 |
Thanks to Thibaud Cartegnie for the fix. |
| 2973 |
- openssl bugfix: undefined reference error on OpenSSL 1.1 or higher. |
| 2974 |
This could have prevented ossl components from being loaded/used. |
| 2975 |
- 2023-01-02: core bugfix: template system may generate invalid json |
| 2976 |
When |
| 2977 |
- a list template |
| 2978 |
- is created with option.jsonf="on" |
| 2979 |
- and the last list element is a property with onEmpty="skip" |
| 2980 |
- and that property is actually empty |
| 2981 |
invalid JSON is generated. |
| 2982 |
The JSON string in this case ends with ", " instead of "}\n". This |
| 2983 |
patch fixes the issue. |
| 2984 |
closes https://github.com/rsyslog/rsyslog/issues/5050 |
| 2985 |
---------------------------------------------------------------------------------------- |
| 2986 |
Scheduled Release 8.2212.0 (aka 2022.12) 2022-12-06 |
| 2987 |
- 2022-12-05: testbench: make python http server based tests more reliable |
| 2988 |
Harden them against races during server port assignment. Prevents |
| 2989 |
testbench flakes. |
| 2990 |
- 2022-12-05: omprog bugfix: invalid status handling at called program startup |
| 2991 |
There is a bug when external program *startup* does not return "OK". This |
| 2992 |
can also lead to a misadressing with potentially a segfault (very unlikely). |
| 2993 |
Note that no problem exists once the initializiation phase of the external |
| 2994 |
program is finished and regular message transfer runs. |
| 2995 |
The problem basically is that for a startup failure, the control data for |
| 2996 |
that external program instance is freed on error. Unfortunately, that state |
| 2997 |
data is needed later on to detect a suspended instance. We now keep the control |
| 2998 |
data even on init failure (as we then need to do normal control options). |
| 2999 |
closes https://github.com/rsyslog/rsyslog/issues/4967 |
| 3000 |
- 2022-11-29: testbench bugfix: wrong message injection object of instance 1 |
| 3001 |
In some client-server test cases, messages are supposed to be injected into |
| 3002 |
the instance 2(client), but they are actually injected into instance 1(server), |
| 3003 |
which may lead to false negative results. This patch fixed it by replacing |
| 3004 |
'injectmsg' with 'injectmsg2', and dealt with some minor issues. |
| 3005 |
Thanks to Guodong Zhu for the patch. |
| 3006 |
- 2022-11-21: rsyslog.conf man page bugfix: description of selectors |
| 3007 |
Document historic difference to BSD syslog selectors. |
| 3008 |
- 2022-11-18: imtcp bugfix: legacy config directives did no longer work |
| 3009 |
Many "$InputTCPServer..." config directives did no longer work |
| 3010 |
and were completely ignored (e.g. "$InputTCPServerStreamDriverMode"). |
| 3011 |
This was a regression from a08591be5d9 (May, 5th 2021). |
| 3012 |
closes https://github.com/rsyslog/rsyslog/issues/5021 |
| 3013 |
- 2022-11-16: ksi bugfix: sending of too many signing requests fixed. |
| 3014 |
As there is a bug in libksi where too many signing requests may have bene sent |
| 3015 |
out the amount of signing requests will be limited by KSI module until the fix |
| 3016 |
is implemented. |
| 3017 |
Thanks to Taavi Valjaots for the patch. |
| 3018 |
- 2022-11-14: bugfix: prevent potential segfault when switchung to queue emergency mode |
| 3019 |
When switching to Disk queue emergency mode, we destructed the in-memory |
| 3020 |
queue object. Practice has shown that this MAY cause races during |
| 3021 |
destruction which themselfs can lead to segfault. For that reason, we |
| 3022 |
now keep the disk queueu object. This will keep some ressources, |
| 3023 |
including disk space, allocated. But we prefer that over a segfault. |
| 3024 |
After all, it only happens after a serious queue error when we are |
| 3025 |
already at the edge of hard problems. |
| 3026 |
see also: https://github.com/rsyslog/rsyslog/issues/4963 |
| 3027 |
- 2022-11-08: ksi bugfix: Segmentation fault in async mode fixed |
| 3028 |
Thanks to Taavi Valjaots for the patch. |
| 3029 |
- 2022-11-02: imjournal: add second fallback to _COMM |
| 3030 |
If SYSLOG_IDENTIFIER is not present in the journal message, |
| 3031 |
then lookup the _COMM field, which stands for the name |
| 3032 |
of the process the journal entry originates from. This is |
| 3033 |
needed in order to be in compliance with the journalctl |
| 3034 |
output. |
| 3035 |
Thanks to Attila Lakatos for the patch. |
| 3036 |
- 2022-10-25: core bugfix: local hostname invalid if no global() config object given |
| 3037 |
The local hostname is invalidly set to "[localhost]" on rsyslog startup |
| 3038 |
if no global() config object is present in rsyslog.conf. Sending a HUP |
| 3039 |
corrects the hostname. |
| 3040 |
This is a regression from ba00a9f25293f |
| 3041 |
closes https://github.com/rsyslog/rsyslog/issues/4975 |
| 3042 |
closes https://github.com/rsyslog/rsyslog/issues/4825 |
| 3043 |
- 2022-10-25: testbench bugfix: fixed timing issue that sometimes lead to test failure |
| 3044 |
Timing caused a race in test tool sync and could lead to premature termination of |
| 3045 |
tools, which in turn caused test failure |
| 3046 |
---------------------------------------------------------------------------------------- |
| 3047 |
Scheduled Release 8.2210.0 (aka 2022.10) 2022-10-18 |
| 3048 |
- 2022-10-13: fix NetBSD build issue |
| 3049 |
On NetBSD, time_t has for a long time now been __int64_t. |
| 3050 |
On 32-bit CPUs, the compiler is not obliged to define |
| 3051 |
__sync_bool_compare_and_swap_8, so instead this ends up |
| 3052 |
as an undefined symbol when linking rsyslog. This makes |
| 3053 |
the code fall back to the pthread / locking method on these |
| 3054 |
systems, but at least lets the program build. |
| 3055 |
Thanks to Havard Eidnes for the patch. |
| 3056 |
- 2022-10-12: omrabbitmq: Add TLS support |
| 3057 |
Thanks to github user 21stcavenan for the patch. |
| 3058 |
- 2022-09-14: config: add "abortOnFailedQueueStartup" global config parameter |
| 3059 |
similiar to "abortONUncleanConfig", this parameter aborts rsyslog |
| 3060 |
when a queue has problems during startup. Some users perfer rsyslog |
| 3061 |
to terminate in this case. By default, nothing changes. |
| 3062 |
closes https://github.com/rsyslog/rsyslog/issues/4902 |
| 3063 |
- 2022-09-07: cor bugfix: leak in helper function SetString |
| 3064 |
A part of rsyslog runtime, SetString(), had a small memory leak when a value was |
| 3065 |
assigned multiple times. While this could potentially consume larger amounts of |
| 3066 |
memory, this did not happen in practice. The reason is that multiple assignments |
| 3067 |
to the same object occur very seldom. |
| 3068 |
Thanks to github user seuzw930 for the patch. |
| 3069 |
closes: https://github.com/rsyslog/rsyslog/issues/4961 |
| 3070 |
- 2022-09-07: core bugfix: correct local host name after config processing |
| 3071 |
rsyslog.conf may affect the host's local name. These changes were |
| 3072 |
so far only activated after the first HUP. This patch now ensures |
| 3073 |
that the configured local host name is applied correctly throughout |
| 3074 |
all processing, including early startup. |
| 3075 |
This patch causes a slight change of behaviour. However, the behaviour |
| 3076 |
was inconsitent before. Now it is consistent and according to the config. |
| 3077 |
Please note: this patch also exposes a global entry point via "regular" |
| 3078 |
dynamic loading as this makes things much easier to do. This is in-line |
| 3079 |
with ongoing simplification effort. |
| 3080 |
Finally, we also remove a CI test that we do no longer need because |
| 3081 |
the problem covered is now addressed differently and the original issue |
| 3082 |
can no longer occur. |
| 3083 |
closes https://github.com/rsyslog/rsyslog/issues/4975 |
| 3084 |
- 2022-08-31: imtcp: add option notifyonconnectionopen |
| 3085 |
Add this both as module an input parameter. Complements already-existing |
| 3086 |
config param notifyonconnectionclose and mirrors the similar feature from |
| 3087 |
imptcp. |
| 3088 |
The module parameter acts as default, similarly to notifyonconnectionclose. |
| 3089 |
Note that in contrast to imptcp, we emit IP addresses and not host |
| 3090 |
names. This sticks with the traditional semantics of imtcp. |
| 3091 |
Note that we also fixed a mislading error message in the case when a |
| 3092 |
disallowed sender tried to connect. |
| 3093 |
Thanks to John Chivian for suggesting the addition. |
| 3094 |
- 2022-08-26: openssl TLS driver: add mechanism to include extra CA files parameter |
| 3095 |
This change allows to include extra CA files so that no "unable to get issuer |
| 3096 |
certificates" issue is obtained when using chained cert files. New parameter name is |
| 3097 |
"NetstreamDriverCAExtraFiles". |
| 3098 |
Thanks to Sergio Arroutbi for the patch. |
| 3099 |
closes: https://github.com/rsyslog/rsyslog/issues/4851 |
| 3100 |
- 2022-08-19: fix compile issue with older gcc compilers |
| 3101 |
Thanks to Julien Thomas for the contribution. |
| 3102 |
---------------------------------------------------------------------------------------- |
| 3103 |
Scheduled Release 8.2208.0 (aka 2022.08) 2022-08-09 |
| 3104 |
- 2022-08-09: ksi bugfix: request cache size and send timeout issue fixed. |
| 3105 |
Async service send timeout is not configurable and request cache size is too |
| 3106 |
small to handle large amount of signing requests with small amount of permitted |
| 3107 |
requests per aggregation round. For example user with max_requests = 4 results |
| 3108 |
cache size 5 * max_requests or at least 256. When signing 300 log files cache |
| 3109 |
will be too small resulting several unsigned blocks. When signing 200 log file |
| 3110 |
cache will be adequate, but with rate of 4 signatures per second, it is only |
| 3111 |
possible to sign 4 * 10 blocks before all requests that are not sent out will |
| 3112 |
timeout. |
| 3113 |
Fix for the issue is to make send timeout configurable and make the size of the |
| 3114 |
cache depend on the value of send timeout. New configuration value |
| 3115 |
sig.block.signtimeout="time, s" introduced that defines the time window wherein |
| 3116 |
the block has to be signed. The size of the request cache is increased to |
| 3117 |
3 * max_requests * sign_timeout or at least 256. |
| 3118 |
Thanks to Taavi Valjaots for the patch. |
| 3119 |
- 2022-08-09: imjournal bugfix: segmentation fault in close journal |
| 3120 |
Thanks to github user t-feng for the patch. |
| 3121 |
- 2022-08-09: net subsystem: support sha256 for StreamDriverAuthMode="x509/fingerprint" |
| 3122 |
Thanks to github user codemaker219 for the patch. |
| 3123 |
- 2022-08-05: imfile bugfix: message loss/duplication when monitored file is rotated |
| 3124 |
When a to-be-monitored file is being rotated, some messages may be lost or |
| 3125 |
duplicated. In case of duplication, many file lines may be duplicated |
| 3126 |
depending on actual timing. The whole bug was primarily timing depenedent |
| 3127 |
in general. It most often was visible in practice when the monitored |
| 3128 |
file was very frequently rotated (we had some report with every few |
| 3129 |
seconds). |
| 3130 |
Note that while we try hard to not lose any messages, input file |
| 3131 |
rotation always has some loss potential. This is inevitable if |
| 3132 |
the monitored file is being truncated. |
| 3133 |
Also note that this bugfix affects imfile, only. It has nothing to do |
| 3134 |
and no relation to rsyslog output files being rotated on HUP. |
| 3135 |
closes: https://github.com/rsyslog/rsyslog/issues/4797 |
| 3136 |
- 2022-08-05: ksi bugfix: optimize processing of signer queue to fix delays. |
| 3137 |
There is a worker queue where rsyslog KSI module collects events and signing |
| 3138 |
requests. When queue is processed thread is periodically put to sleep. Previous |
| 3139 |
implementation handles signature requests well but sleeps every time after |
| 3140 |
handling new file open / close event. When several log files are opened or |
| 3141 |
closed simultaneously process is significantly slowed down. Another issue is |
| 3142 |
that thread always sleeps 1000ms that may be 2x longer than aggregation round. |
| 3143 |
This slows down overall signing process. |
| 3144 |
Fix for the issue is to simply not sleep after file open / close event if there |
| 3145 |
are next items to be processed. To speed up the signing process, rsyslog uses |
| 3146 |
KSI aggregator conf. to obtain the aggregation period that is used for the sleep |
| 3147 |
time configuration. |
| 3148 |
Thanks to Taavi Valjaots for the patch. |
| 3149 |
- 2022-08-04: ksi bugfix: possible crash fixed when several log files are opened. |
| 3150 |
KSI module in async mode used to request aggregator conf. every time a log |
| 3151 |
file was opened. When several log files were opened simultaneously |
| 3152 |
corresponding amount of pointless concurrent conf. requests were posted. |
| 3153 |
Concurrent conf. requests lead to a bug in libksi, where internal count of |
| 3154 |
pending requests was not decremented correctly causing system to crash. |
| 3155 |
Fix for the issue is to optimize the frequency of conf. requests so that only |
| 3156 |
one conf. requests is handled at once. Instead of checking conf. every time |
| 3157 |
log file is opened, conf is requested periodically after conf timeout. This will |
| 3158 |
affect both sync and async mode. |
| 3159 |
New option for KSI module introduced - sig.confinterval="time, s". |
| 3160 |
Thanks to Taavi Valjaots for the patch. |
| 3161 |
- 2022-08-04: openssl: add support to split tls commands by semicolon |
| 3162 |
- Add support to split tls commands by semicolon. |
| 3163 |
- Changed one test with multiple tls commands to use semicolon as |
| 3164 |
separator instead of newline. |
| 3165 |
closes: https://github.com/rsyslog/rsyslog/issues/4852 |
| 3166 |
- 2022-08-04: openssl subsystem bugfix: build issue on Solaris |
| 3167 |
Needed header file was added. Platforms other than Solaris did not actually need it, |
| 3168 |
so this bug was discovered late. |
| 3169 |
Thanks to Jakub Kulík for the patch. |
| 3170 |
Import <strings.h> when index() is used. |
| 3171 |
- 2022-08-04: openssl: add more details to error messages |
| 3172 |
- Avoid LogMsg outputs osslEndSess on successfull terminated |
| 3173 |
connection. Only LogMsg if the connection was terminated |
| 3174 |
unsuccessfully. |
| 3175 |
- Handle SSL_ERROR_SYSCALL in both Send / osslRecordRecv, |
| 3176 |
do not log as error if underlaying socket was terminated |
| 3177 |
(ECONNRESET). Log as information instead. |
| 3178 |
closes: https://github.com/rsyslog/rsyslog/issues/4946 |
| 3179 |
- 2022-08-04: omclickhouse: capture additional exceptions |
| 3180 |
- DB::NetException |
| 3181 |
- DB::ParsingExceptions |
| 3182 |
Thanks to Victor Kustov for the patch. |
| 3183 |
- 2022-08-04: mmanon bugfix: Simplified and fixed IPv4 digit detection. |
| 3184 |
- Fixed an issue with numbers above int64 in syntax_ipv4. |
| 3185 |
Numbers that were up to 256 above the max of an int64 |
| 3186 |
could incorrectly be detected as valid ipv4 digit. |
| 3187 |
- Simplified the IPv4 digit detection function and renamed |
| 3188 |
to isPosByte. |
| 3189 |
- added testcasse for malformed IPvc4 addresses |
| 3190 |
closes: https://github.com/rsyslog/rsyslog/issues/4940 |
| 3191 |
- 2022-07-21: imptcp: slight tuning |
| 3192 |
- reduce indirect addressing to obtain more speed |
| 3193 |
- also a fix for an annoying typo |
| 3194 |
- minor other optimizations |
| 3195 |
- modernization of one test |
| 3196 |
- 2022-07-20: template procesing/json: performance optimization |
| 3197 |
- 2022-07-19: core bugfix: memory leak when free action worker data table |
| 3198 |
During free action worker data table when action destruct, worker instance in worker |
| 3199 |
data table were not null. It resulted in memory leak. |
| 3200 |
Thanks to github user seuzw930 for the patch. |
| 3201 |
- 2022-07-13: omfile: support for zstd compression |
| 3202 |
The zstd library provides better and faster compression than zlib. |
| 3203 |
This patch integrates zstd as a dynamically-loadable functionality. |
| 3204 |
As such, no further dependencies need to be added to the rsyslog |
| 3205 |
base package. |
| 3206 |
Due to the increased performance, usage of zstd is highly recommended |
| 3207 |
for high-volume use cases. |
| 3208 |
This patch also refactor zlib compression in order to unify handling |
| 3209 |
in both compression cases. |
| 3210 |
- 2022-07-07: stream cleanup: move error message to debug log, only |
| 3211 |
This error message is most probably rooted in a kernel problem. At |
| 3212 |
least knowbody knows how it can happen. It's definitely not a |
| 3213 |
rsyslog issue. We also can recover from it for a long time now |
| 3214 |
so there is no reason to irritate users by emitteing this |
| 3215 |
"error" message. |
| 3216 |
- 2022-07-04: mmdblookup bugfix: Don't crash Rsyslog on mmdb file errors |
| 3217 |
Thanks to Théo Bertin (frikilax) for the patch. |
| 3218 |
- 2022-06-28: build error fix: libbson requires out-of-date language constructs |
| 3219 |
- 2022-06-27: OpenSSL: fix depreacted API issues for OpenSSL 3.x |
| 3220 |
- OpenSSL error strings are loaded automatically now |
| 3221 |
- Debug Callback has changed |
| 3222 |
- See for more: |
| 3223 |
https://www.openssl.org/docs/manmaster/man7/migration_guide.html |
| 3224 |
closes: https://github.com/rsyslog/rsyslog/issues/4912 |
| 3225 |
---------------------------------------------------------------------------------------- |
| 3226 |
Scheduled Release 8.2206.0 (aka 2022.06) 2022-06-14 |
| 3227 |
- 2022-05-25: omelastisearch: allow omitting _type field |
| 3228 |
Allow omitting the _type field by setting it to an empty string. |
| 3229 |
Setting this field has been deprecated since 6.0, and support will |
| 3230 |
be removed in 8.0 |
| 3231 |
Also add testbench test for empty searchType with ES 7.0 |
| 3232 |
This checks for messages in the deprecation log and also provides |
| 3233 |
avoids deprecation messages from usage of transport.tcp.port in the |
| 3234 |
test configuration |
| 3235 |
Thanks to Jarkko Oranen for the patch. |
| 3236 |
- 2022-05-18: tcpsrv/imtcp: slight performance improvements |
| 3237 |
This change slightly improves performance for tcpsrv-based servers. |
| 3238 |
This affects imtcp and imgssapi as well as some helpers. |
| 3239 |
No other functional change is included in this change. |
| 3240 |
- 2022-05-12: imptcp bugfix: worker thread starvation on extreme traffic |
| 3241 |
When connectes were totally busy, without any pause, the assigened worker |
| 3242 |
did never terminate its reading loop. As such, it could not service any |
| 3243 |
other conenctions. If this happened multiple time and to all configured |
| 3244 |
workers, all other connections could not be processed at all. This extreme |
| 3245 |
scenario is very unlikely, as the whole issue is relatively unlikely. |
| 3246 |
In practice, the issue could lead to somewhat degraded performance and |
| 3247 |
resolved itself after some time (in practice no connection is 100% busy |
| 3248 |
for an extended period of time). |
| 3249 |
Note that this patch sets a fixed limit of 16 iterations for very busy |
| 3250 |
connections. This sounds like a good compromise between non-starvation |
| 3251 |
and performance. The exact number may be made configurable if there |
| 3252 |
is really need to. |
| 3253 |
- 2022-05-11: omelasticsearch: several support option for ElasticSearch 8 |
| 3254 |
- config params searchIndex and documentType can be empty |
| 3255 |
- support for Data Stream API |
| 3256 |
Thanks to github user EHerzog76 for these changes. |
| 3257 |
- new config param esVersion.major |
| 3258 |
- 2022-05-09: tcp receiver bugfix: delay/potential hang on some error conditions |
| 3259 |
Error were not correctly handled in some cases for imtcp and imgssapi. This could |
| 3260 |
lead to a temporary stall of some connections. For ultry-low traffic systems, this |
| 3261 |
stall could stay for a long period of time. In most cases, it was resolved very quickly. |
| 3262 |
Note that imptcp was not affected. |
| 3263 |
Thanks to Iwan Timmer for the fix. |
| 3264 |
- 2022-05-05: net bugfix: potential buffer overrun |
| 3265 |
there is heap buffer overflow vulnerability in rsyslog tcp reception components. |
| 3266 |
This can only happen in octet-counted mode, which is enabled by default. |
| 3267 |
Affected components: imtcp, imptcp, imhttp, imgssapi, imdiag when octet-counted |
| 3268 |
framing was enabled. |
| 3269 |
If the receiver ports are exposed to the public Internet AND are used |
| 3270 |
without authentication, this can lead to remote DoS and potentially to |
| 3271 |
remote code execution. It is unclear if remote code execution is |
| 3272 |
actually possible. If so, it needs a very sophisticated attack. |
| 3273 |
When syslog best practices with proper firewalling and authentication |
| 3274 |
is used, thean attack can only be carried out from within the Intranet |
| 3275 |
and authorized systems. This limits the severity of the vulnerability |
| 3276 |
considerably (it would obviously require an attacker already to be |
| 3277 |
present inside the internal network). |
| 3278 |
Credits to Peter Agten for initially reporting the issue and working |
| 3279 |
with us on the resolution. |
| 3280 |
fixes CVE-2022-24903 |
| 3281 |
Advisory: |
| 3282 |
https://github.com/rsyslog/rsyslog/security/advisories/GHSA-ggw7-xr6h-mmr8#advisory-comment-72243 |
| 3283 |
- 2022-05-05: imptcp: set OS worker thread name |
| 3284 |
We now set the worker thread names to "imptcp/<thrd nbr>" where |
| 3285 |
<thrd nbr> is the numerical index (0, 1, ...) of the worker thread. |
| 3286 |
This enables to distinguish individual worker threads in OS tools like |
| 3287 |
htop. That is useful for performance testing and system monitoring. |
| 3288 |
The choosen name format is consistant with other similar thread |
| 3289 |
names inside rsyslog. For imptcp, worker threads were not yet |
| 3290 |
given individual names. |
| 3291 |
Note: "in:imptcp" is imptcp's "main" thread, which also is used |
| 3292 |
as a worker in some scenarios. This name was not modified. |
| 3293 |
- 2022-04-26: mmanon bugfix: shortened IPv6 form not always anonymized |
| 3294 |
If the IPv6 is in non-recommended form followed by a 5 digit port number, it |
| 3295 |
is not anonymized. |
| 3296 |
A reproducer for this is: 1a00:c820:1180:c84c::ad3f:d991:ec2e:49255 |
| 3297 |
closes https://github.com/rsyslog/rsyslog/issues/4856 |
| 3298 |
- 2022-04-22: mmdblookup fix: wrong copy of buffer |
| 3299 |
...following parse of libmaxminddb's return after a successful search sometimes |
| 3300 |
failed to return specific field from data. |
| 3301 |
Thanks to Théo Bertin for the patch. |
| 3302 |
- 2022-04-22: mmdblookup: several enhancements |
| 3303 |
- support arrays in MMDB entry |
| 3304 |
- support escaped quotes '"' in MMDB entry |
| 3305 |
- support '<' characters in MMDB entry, when in a field |
| 3306 |
- support '}' characters in MMDB entry, when in a field |
| 3307 |
Thanks to Théo Bertin for the patch. |
| 3308 |
---------------------------------------------------------------------------------------- |
| 3309 |
Scheduled Release 8.2204.1 (aka 2022.04) 2022-05-05 |
| 3310 |
- security bugfix: potential buffer overrun in imptcp, imtcp, imgssapi and others |
| 3311 |
This addresses CVE-2022-24903 |
| 3312 |
see also https://github.com/rsyslog/rsyslog/security/advisories/GHSA-ggw7-xr6h-mmr8 |
| 3313 |
---------------------------------------------------------------------------------------- |
| 3314 |
Scheduled Release 8.2204.0 (aka 2022.04) 2022-04-19 |
| 3315 |
- 2022-04-18: gnutls bugfix: possibility of infinite loop |
| 3316 |
There was a rare possibility that the E_AGAIN/E_INTERRUPT handling |
| 3317 |
could cause an infinite loop (100% CPU Usage), for example when a TLS |
| 3318 |
handshake is interrupted at a certain stage. |
| 3319 |
* After gnutls_record_recv is called, and E_AGAIN/E_INTERRUPT error |
| 3320 |
occurs, we need to do additional read/write direction handling |
| 3321 |
with gnutls_record_get_direction. |
| 3322 |
* After the second call of gnutls_record_recv (Expand buffer) |
| 3323 |
we needed to also check the eror codes for E_AGAIN/E_INTERRUPT |
| 3324 |
to do propper errorhandling. |
| 3325 |
* Add extra debug output based on ossl driver. |
| 3326 |
* Potential fix for 100% CPU Loop Receiveloop after gtlsRecordRecv |
| 3327 |
in doRetry call. |
| 3328 |
closes https://github.com/rsyslog/rsyslog/issues/4834 |
| 3329 |
closes https://github.com/rsyslog/rsyslog/issues/4818 |
| 3330 |
closes https://github.com/rsyslog/rsyslog/issues/4638 |
| 3331 |
- 2022-04-17: core/bugfix: errorfile could grow over max configures size |
| 3332 |
When action.errorfile.maxsize configuration option is enabled and error file |
| 3333 |
already has a certain size smaller than max size configured, it is increasing |
| 3334 |
higher than configured max size as the error file is considered to be zero in code. |
| 3335 |
This fix reads current error file size and limits the size to the maximum |
| 3336 |
size configured. |
| 3337 |
Thanks to Sergio Arroutbi for the patch. |
| 3338 |
fixes https://github.com/rsyslog/rsyslog/issues/4821 |
| 3339 |
- 2022-04-17: omkafka bugfix: potential misadressing |
| 3340 |
The `failedmsg_entry` expects a null-terminated string in `key`, but |
| 3341 |
here we allocate with malloc and copy a string-with-length-n into only |
| 3342 |
the first n bytes. If the final byte is null, this is by coincidence |
| 3343 |
only. |
| 3344 |
This was observed by means of seeing random binary data appended to |
| 3345 |
keys submitted to kafka apparently at random. This could also result |
| 3346 |
in more severe problems, inclusing a segfault. |
| 3347 |
Thanks to David Buckley for the patch. |
| 3348 |
- 2022-04-06: added new "FullJSONFmt" standard template (with addtl fields) |
| 3349 |
This comes handy for a number of use cases, especially with ElasticSearch. |
| 3350 |
Thanks to Art O Cathain for the patch. |
| 3351 |
- 2022-04-04: imfile: potential processing delay |
| 3352 |
This was mentioned by Mikko Kortelainen without exact details on what exactly |
| 3353 |
this could cause in practice. But we were confident enough that it is worth |
| 3354 |
merging (though it does not look like something that brought real problems in |
| 3355 |
practice, as we do not know any related reports). |
| 3356 |
see also: https://github.com/rsyslog/rsyslog/pull/4445 |
| 3357 |
Thanks to Mikko Kortelainen for the patch. |
| 3358 |
- 2022-04-04: bugfix: cosmetic data races |
| 3359 |
there was a more or less cosmetic data race which could happen when children |
| 3360 |
processes died in quick sequence. Even then, no real harm happened, as all |
| 3361 |
children were reaped eventually. |
| 3362 |
A similar data race exists for HUP processing. |
| 3363 |
However, these races polluted TSAN test runs, and so we fixed them |
| 3364 |
- 2022-04-01: add property options to support ISO week/year number |
| 3365 |
Thanks to Mattia Barbon for the patch. |
| 3366 |
- 2022-04-01: core bugfix: "action suspended" message was emitted even when turned off |
| 3367 |
Most messages were diasabled, but there was one part of the code that ignored the |
| 3368 |
user configuration. |
| 3369 |
Thanks to Deyneko Aleksey for the patch. |
| 3370 |
- 2022-03-31: testbench: add more tests for rscript comparison operations |
| 3371 |
- 2022-03-31: core bugfix: make internal logs emitted during HUP procesing appear quicker |
| 3372 |
After call doHUP(), probably there is a internal log in the list. However, it |
| 3373 |
will not be wrote out immediately, because the mainloop will be blocked at |
| 3374 |
pselect in wait_timeout() until a long timeout or next message occur. |
| 3375 |
More deadly, the log may be lost if the deamon exits unexpectedly. |
| 3376 |
We might as well put processImInternal() after doHUP(), so that the message |
| 3377 |
will be flushed out immediately. |
| 3378 |
Fixes: 723f6fdfa6(rsyslogd: Fix race between signals and main loop timeout) |
| 3379 |
Thanks to Yun Zhou for the patch. |
| 3380 |
- 2022-03-20: refactor: Move the parser directive to the main config |
| 3381 |
Thanks to Attila Lakatos for the patch. |
| 3382 |
- 2022-03-16: refactor: ake the main message queue part of the config |
| 3383 |
The intent of this patch is to make the main message queue part of the main config. |
| 3384 |
It will help us to proceed towards dynamic configuration reload. |
| 3385 |
- regression bugfix: rsyslog may segfault during startup |
| 3386 |
glblGetMaxLine() might be called even before the main configuration file exists |
| 3387 |
resulting unexpected behavior, most probably segmentation fault. This is addressed |
| 3388 |
by re-introducing the old default of 8KiB. The problem was introduced earlier in |
| 3389 |
2022. |
| 3390 |
- regression fix: script string comparison did not work correctly |
| 3391 |
In rscript, comparison operations on strings did not work correctly |
| 3392 |
and returned false results. This is cause by a regression in commit |
| 3393 |
5cec5dd634e0. While it fixed number comparisons, it introduced new |
| 3394 |
problems in string comparisons, which were not present before. Note |
| 3395 |
that most items in rsyslog are strings, so this can actually cause |
| 3396 |
some problems. |
| 3397 |
---------------------------------------------------------------------------------------- |
| 3398 |
Scheduled Release 8.2202.0 (aka 2022.02) 2022-02-15 |
| 3399 |
- 2022-02-14: imfile bugfix: remove cause for "internal error message" (not causing harm) |
| 3400 |
When any message is output into a renamed input file, rsyslogd output the following: |
| 3401 |
message. |
| 3402 |
imfile: internal error? inotify provided watch descriptor 7 which we could not find |
| 3403 |
in our tables - ignored |
| 3404 |
When rsyslogd detects the inode change, it deletes the entry from wdmap[]. But, |
| 3405 |
the watch descriptor is not removed. Some application like sssd outputs some messages |
| 3406 |
(like "HUP signal was received!!") after HUP signal is received and before switching |
| 3407 |
into the new log file. And, the above messages can be output every log rotation. |
| 3408 |
This situation is now resolved. |
| 3409 |
Thanks to Masahiro Matsuya for the patch. |
| 3410 |
- 2022-02-04: rscript bugfix: literal numbers were not compared correctly |
| 3411 |
This problem occurred when numbers were used in rsyslog.conf in |
| 3412 |
the set statement, e.g. |
| 3413 |
set $nbr = 1234; |
| 3414 |
In this case, during comparisons, the number was actually interpreted |
| 3415 |
as a string with digits. Thus numerical comparisons lead to unexpected |
| 3416 |
results. Even more so, as in other places of the code they were |
| 3417 |
treated as native numbers. |
| 3418 |
This is now fixed. We cannot outrule that this causes, in border cases, |
| 3419 |
change of behavior to existing configs. But it is unlikely and the |
| 3420 |
previous behaviour was a clear bug and very unintuitive. This in our |
| 3421 |
opinion it is justified to risk a breaking change for an expected |
| 3422 |
very minor subset of installations, if any such exists at all. |
| 3423 |
closes https://github.com/rsyslog/rsyslog/issues/4770 |
| 3424 |
- 2022-02-04: omelasticsearch bugfix: indexSuccess impstats counter in bulkmode wrong |
| 3425 |
When bulkmode is enabled, and a batch was processed without any |
| 3426 |
failures (errors is false), the code that increments the indexSuccess |
| 3427 |
impstats counter was never reached. |
| 3428 |
closes: https://github.com/rsyslog/rsyslog/issues/4794 |
| 3429 |
- 2022-01-17: imkmsg bugfix: effectively disabled input on error reading kmsg |
| 3430 |
Due to a program bug, imkmsg could not recover from an kmsg read error. |
| 3431 |
Note that recovering is possible and was intended. |
| 3432 |
Thanks to Kailash Sethuraman for the patch. |
| 3433 |
- 2022-01-17: imtcp bugfix: worker threads were not properly terminated |
| 3434 |
Graceful shutdown of Rsyslog could lead to segmentation faults when |
| 3435 |
multiple imtcp inputs were being used. That is because the rest of the |
| 3436 |
tcpsrv threads are left behind running, while their underlying objects |
| 3437 |
are being disposed by the main thread as part of the module |
| 3438 |
de-initialization. |
| 3439 |
closes: https://github.com/rsyslog/rsyslog/issues/4776 |
| 3440 |
Thanks to Gabor Orosz <[email protected]> for the analysis and patch. |
| 3441 |
- 2022-01-07: omlibdbi bugfix: use-after-free bug |
| 3442 |
This occurred in when sqllite driver was used. Depending on circumstances, this had |
| 3443 |
no visible issues (often) up to rsyslog segfault. The busier rsyslog is, the more |
| 3444 |
likely a bad outcome. |
| 3445 |
- 2022-01-06: omhttp bugfix: memory leak in lokirest batchmode |
| 3446 |
A JSON object was created (valueObj) but not used and also not released causing a |
| 3447 |
memory leak. Over time, this could lead to memory overcomittent. |
| 3448 |
closes: https://github.com/rsyslog/rsyslog/issues/4766 |
| 3449 |
---------------------------------------------------------------------------------------- |
| 3450 |
Scheduled Release 8.2112.0 (aka 2021.12) 2021-12-16 |
| 3451 |
- 2021-12-14: refactor:Deallocate outchannel resources in rsconf destructor |
| 3452 |
Thanks to Attila Lakatos for the patch. |
| 3453 |
- 2021-12-14: refactor: use runConf instead of loadConf in ratelimiting during runtime |
| 3454 |
Thanks to Attila Lakatos for the patch. |
| 3455 |
- 2021-11-22: new contribtion: URL parser module function using libfa |
| 3456 |
Thanks to Théo Bertin for the patch. |
| 3457 |
- 2021-11-18: mmanon: relax IPv6 detection - improve anonymization |
| 3458 |
We so far tried to ensure a value is really an IPv6 address, in order |
| 3459 |
to avoid to mangle with just similar-looking information elements. |
| 3460 |
However, this lead to misdetection for unusual formats, e.g. when a |
| 3461 |
port is appended to a numerical IPv6 adress given without braces []. |
| 3462 |
This has been changed now. In a sense, we now prefer to err on the |
| 3463 |
side of privacy. |
| 3464 |
BEHAVIOR CHANGE: |
| 3465 |
Previously, a suspect value was not anonymized, and thus some other |
| 3466 |
elements (like some MAC addresses) preserved. Now the opposite is |
| 3467 |
true, and we anonymize anything that looks close enough to be an |
| 3468 |
IPv6 address. This improves anonymization. |
| 3469 |
closes https://github.com/rsyslog/rsyslog/issues/4725 |
| 3470 |
- 2021-11-10: ruleset bugfix: ruleset queue was incorrectly named |
| 3471 |
The ruleset was incorrectly and unusably named. This was a regeression |
| 3472 |
from 4a63f8e9629c3c9481a8b6f9d7787e3b3304320b. |
| 3473 |
Many thanks to github user digirati82 for alerting us. |
| 3474 |
closes https://github.com/rsyslog/rsyslog/issues/4730 |
| 3475 |
- 2021-11-10: omsnmp: update module to current IP best practices |
| 3476 |
The omsnmp module uses the inet_addr() function to convert the Internet host address |
| 3477 |
from IPv4 numbers-and-dots notation into binary data in network byte order. If the input |
| 3478 |
is invalid, INADDR_NONE (usually -1) is returned. Use of this function is problematic |
| 3479 |
because -1 is a valid address (255.255.255.255). We should avoid its use in favor of |
| 3480 |
inet_aton(), inet_pton(3), or getaddrinfo(3), which provide a cleaner way to indicate |
| 3481 |
error return [1]. |
| 3482 |
This is just a request to satisfy covscan, so no error is reported at all. |
| 3483 |
Thanks to Attila Lakatos for the patch. |
| 3484 |
- 2021-10-27: ommysql: fix threading bug |
| 3485 |
When the MariaDB connection was (re)established, old or NULL handle |
| 3486 |
could be used. This is fixed now. |
| 3487 |
We need to synchronize access to the mysql handle, because multiple threads |
| 3488 |
use it and we may need to (re)init it during processing. This could lead to |
| 3489 |
races with potentially wrong addresses or NULL accesses. If this really |
| 3490 |
matters mostly depends on the MariaDB/MySQL client library. It looks like |
| 3491 |
they guard against fatal failuers. Anyhow, logging errors inside rsyslog |
| 3492 |
could happen in any case. |
| 3493 |
- 2021-10-25: testbench: false positive when impstats was not built |
| 3494 |
Test omfwd_fast_imuxsock failed when impstats was not built. This |
| 3495 |
has been corrected, test is now only executed when impstats is |
| 3496 |
present. |
| 3497 |
- 2021-10-25: imtcp: add support for permittedPeers setting at input() level |
| 3498 |
The permittedPeers settig was actually forgotten during the refactoring |
| 3499 |
of TLS input() level settings. This functionality is now added. |
| 3500 |
closes: https://github.com/rsyslog/rsyslog/issues/4706 |
| 3501 |
---------------------------------------------------------------------------------------- |
| 3502 |
Scheduled Release 8.2110.0 (aka 2021.10) 2021-10-19 |
| 3503 |
- 2021-10-13: config bugfix: global(security.abortonidresolutionfail=) did not work |
| 3504 |
when used with rscript based configuration, it was not checked. |
| 3505 |
- 2021-10-13: config bugfix: global param $privDropToUser did not work correctly |
| 3506 |
The parameter was not implemented for rscript based configuration and |
| 3507 |
did not properly apply to legacy configuration. In essence, it almost always |
| 3508 |
did not work as expected. |
| 3509 |
see also: https://github.com/rsyslog/rsyslog/issues/4642 |
| 3510 |
see also: https://github.com/rsyslog/rsyslog/commit/cbcaf2c7e5b67e5465e47bc7cc67af2eae47bd31 |
| 3511 |
- 2021-10-12: rscript bugfix: ruleset called async when ruleset had queue.type="direct" |
| 3512 |
The call rscript statement is able to call a rule set either synchronously or |
| 3513 |
asynchronously. We did this, because practice showed that both modes |
| 3514 |
are needed. For various reasons we decided to make async |
| 3515 |
calls if the ruleset has a queue assigned and sync if not. |
| 3516 |
To know if a "queue is assigned" we just checked if queue parameters were |
| 3517 |
given. It was overlookeded the case of someone explicitly specifying a |
| 3518 |
"direct queue", aka "no queue". As such, queue="direct" triggered async |
| 3519 |
calls. That in turn meant that when a write operation to a variable was |
| 3520 |
made inside that rule set, other rulesets could or could not see the |
| 3521 |
write. While if was often not seen, this was a data race where the |
| 3522 |
change could also be seen by the outside. |
| 3523 |
This is now fixed. No matter if queue.type="direct" is specified or |
| 3524 |
left out, the call will always by synchronous. Any values written to |
| 3525 |
variables will also be seen by the "outside world" in later processing |
| 3526 |
stages. |
| 3527 |
Note that this has some potential to BREAK EXISTING CONFIGURATIONS. |
| 3528 |
We deem this acceptable because: |
| 3529 |
1. this was racy at all, so unexpected behaviour could alwas occur |
| 3530 |
2. it is actually unlikely that someone used the triggering conditions |
| 3531 |
in practice. But we can not outrule this, especially when the |
| 3532 |
configuration was auto-generated. |
| 3533 |
Potential compatibility issues can be solved by defining a small |
| 3534 |
array-memory queue on the ruleset in question instead of specifying |
| 3535 |
direct type. |
| 3536 |
Again, we expect that almost all users will never experience any |
| 3537 |
problems. If you do, however, please let us know: we may add an |
| 3538 |
option to re-enable the bug. |
| 3539 |
- 2021-10-12: ksi bugfix: locking bug fixed in rsksiCtxOpenFile |
| 3540 |
Thanks to Taavi Valjaots for the patch. |
| 3541 |
- 2021-10-11: core bugfix: fix typo in error message |
| 3542 |
Thanks to github user jkschulz for the patch. |
| 3543 |
- 2021-10-11: tcpsrv bugfix: compilation without exceptions |
| 3544 |
tcpsrv.c:992:1: error: label at end of compound statement |
| 3545 |
finalize_it: |
| 3546 |
^~~~~~~~~~~ |
| 3547 |
Quoting from pthread.h: |
| 3548 |
pthread_cleanup_push and pthread_cleanup_pop are macros and must always |
| 3549 |
be used in matching pairs at the same nesting level of braces. |
| 3550 |
Amends commit bcdd220142ec9eb106550195ba331fd114adb0bd. |
| 3551 |
Thanks to Orgad Shaneh for the patch. |
| 3552 |
- 2021-10-11: mkubernetes bugfix: no connection retry to kubernetes APP |
| 3553 |
When connection to the kubernates API was not possible, mmkubernetes |
| 3554 |
did not retry. This does now happen via regular rsyslog retry |
| 3555 |
mechanism. |
| 3556 |
Thanks to github user jayme-github for the analysis and patch. |
| 3557 |
closes https://github.com/rsyslog/rsyslog/issues/4669 |
| 3558 |
- 2021-10-11: openssl bugfix: Correct gnutlsPriorityString (custom ciphers) behaviour |
| 3559 |
- Only apply default anon ciphers if gnutlsPriorityString is NULL and |
| 3560 |
Authentication Mode is set to anon. Otherwise we do not set them |
| 3561 |
as they overwrite custom Ciphers. |
| 3562 |
- Added two tests for custom cipher configuration (anon/certvalid mode). |
| 3563 |
- Add call for applyGnutlsPriorityString if gnutlsPriorityString changes. |
| 3564 |
- Merged openssl init code from Connect into osslInitSession |
| 3565 |
closes: https://github.com/rsyslog/rsyslog/issues/4686 |
| 3566 |
- 2021-10-11: build issue: handle undefined MAXPATHLEN, PATH_MAX |
| 3567 |
While we handled missing PATH_MAX, we did not handle missing MAXPATHLEN. |
| 3568 |
This happens under GNU/Hurd, because there is no official limit. However, |
| 3569 |
extremely long pathes are extremely uncommon, so we do not want to |
| 3570 |
use slow dynamic alloc each time we need to build pathes. So we |
| 3571 |
impose a limit of 4KiB, which should be fairly enough. Note that |
| 3572 |
this obviously increases stack requirements in GNU/Hurd. |
| 3573 |
As suggested by Michael Biebl, we have now implemented a generic |
| 3574 |
approach to handle this via autoconf. |
| 3575 |
- 2021-09-12: openssl: extended output information on connection failure |
| 3576 |
Now includes the remote client/server IP address in the log output. |
| 3577 |
- 2021-09-12: imhttp enhancements - query parameter ingestion & basic auth support |
| 3578 |
- Basic Authentication support & tests |
| 3579 |
* configured via imhttp option "basicAuthFile". This option should be configured |
| 3580 |
to point to your htpasswd file generated via a standard htpasswd tool. |
| 3581 |
tests: |
| 3582 |
* imhttp-post-payload-basic-auth.sh |
| 3583 |
* imhttp-post-payload-basic-auth-vg.sh |
| 3584 |
- Query parameter ingestion capability & tests |
| 3585 |
use t `addmetadata` option to inject query parameters into |
| 3586 |
metadata for imhttp input. |
| 3587 |
DISTRO PACKAGERS BEWARE: NEW DEPENDENCY FOR IMHTTP: |
| 3588 |
libaprutil (libaprutil1-dev on debian'ish, apr-util-devel on Red Hat) |
| 3589 |
Thanks to Nelson Yen for the patch. |
| 3590 |
- 2021-09-07: testbench bugfix: privdrop tests under root user did not work |
| 3591 |
When running under root, the privdrop tests did not properly work. This |
| 3592 |
patch fixes the issue and skips test where necessary. |
| 3593 |
This also includes some modernization of the related tests. |
| 3594 |
closes https://github.com/rsyslog/rsyslog/issues/4619 |
| 3595 |
- 2021-09-07: core/ratelimiting: fix rate limiting for already parsed messages |
| 3596 |
Rate limiting may not have worked if the considered message had already |
| 3597 |
been parsed (not having NEEDS_PARSING in msgFlags). |
| 3598 |
This affects also imuxsock in its default configuration |
| 3599 |
(useSpecialParser="true" and ratelimit.severity="1") |
| 3600 |
- 2021-09-07: core bugfix: use of property $wday terminates string |
| 3601 |
When $wday is used inside a template, all template parts after it |
| 3602 |
are ignored. For exmaple: |
| 3603 |
template(name="json_filename" type="string" string="/var/log/%$wday%.log") |
| 3604 |
would generate something like "/var/log/0" - the ".log" part would be |
| 3605 |
missing. For the same reason, $wday can not reliably checked in script |
| 3606 |
filters. |
| 3607 |
Thanks to Alain Thivillon for reporting the bug and providing an |
| 3608 |
excellent analysis, which essentiellay was exactly this fix here. |
| 3609 |
closes https://github.com/rsyslog/rsyslog/issues/4670 |
| 3610 |
- 2021-09-07: core/queue bugfix: potential misadressing when queue discarded messages |
| 3611 |
When a discard mark was set, the queue was very busy and discarded messages, a |
| 3612 |
NULL pointer access could happen. Depending on circumstances, several problems |
| 3613 |
could occur, including a SEGFAULT. This is now fixed. |
| 3614 |
closes: https://github.com/rsyslog/rsyslog/issues/4437 |
| 3615 |
- 2021-09-07: imdiga bugfix: iOverallQueueSize calculation could be incorrect |
| 3616 |
This issue only affects testbench and rsyslog development debugging. The active |
| 3617 |
messages counter, used for synchronizing test steps, went wrong when the queue |
| 3618 |
discarded messages on it's consumer thread. Now fixed. |
| 3619 |
- 2021-09-06: gnutls driver: SAN priority did not work correctly on server side |
| 3620 |
PrioritizeSAN was not propagated when accepting a new connection, this is now fixed. |
| 3621 |
Thanks to Attila Lakatos for the patch. |
| 3622 |
- 2021-08-24: config: implement script-equavalent for $PrivDrop* statements |
| 3623 |
closes https://github.com/rsyslog/rsyslog/issues/891 |
| 3624 |
---------------------------------------------------------------------------------------- |
| 3625 |
Scheduled Release 8.2108.0 (aka 2021.08) 2021-08-17 |
| 3626 |
- 2021-08-16: openssl tls: Improved error message output on tls failures. |
| 3627 |
closes: https://github.com/rsyslog/rsyslog/issues/4645 |
| 3628 |
- 2021-08-16: impstats: add percentile metrics tracking functionality |
| 3629 |
Brief overview: |
| 3630 |
TO configure tracking percentile metrics in rainerscript: |
| 3631 |
User would need to define: |
| 3632 |
- which percentile to track, such as [p50, p99, etc.] |
| 3633 |
- window size - note, this correlates directly with memory usage to |
| 3634 |
track the percentiles. |
| 3635 |
To track a value, user would call built-in function `percentile_observe()` in their configurations to |
| 3636 |
record an integer value, and percentile metrics would be emitted every |
| 3637 |
impstats interval. |
| 3638 |
Thanks to Nelson Yen for the patch. |
| 3639 |
- 2021-08-12: imfile: add parameter "ignoreolderthanoption" |
| 3640 |
instructs imfile not to ingest a file that has not been modified in the |
| 3641 |
specified number of seconds. |
| 3642 |
Thanks to github user yanjunli76 for the patch (submitted from Nelson Yen) |
| 3643 |
- 2021-08-10: imklog bugfix: invalid memory adressing, could cause abort |
| 3644 |
This is a regeression from commit 94c4a87. It introduced a free() call |
| 3645 |
using an object that was no longer valid (the main pointer to the |
| 3646 |
to-be-freed object) was already freed at time of use. This could |
| 3647 |
cause various issues, including a segfault. |
| 3648 |
Note: this bug was triggerred only during late phase of rsyslog |
| 3649 |
shutdown, so it did not affect regular operation. |
| 3650 |
Special thanks to github user wxiaoguang for analyzing the issue |
| 3651 |
and providing a draft fix proposal, on which this patch builds. |
| 3652 |
see also https://github.com/rsyslog/rsyslog/pull/4629 |
| 3653 |
closes https://github.com/rsyslog/rsyslog/issues/4625 |
| 3654 |
- 2021-08-09: imfile bugfix: deleteStateOnFileDelete missed some state files |
| 3655 |
When the log file is deleted, imfile would attempt to delete the statefile but it |
| 3656 |
was missing the file_id part of the statefile name. This means the statefiles were |
| 3657 |
only removed in the log file was less than 512 characters, because for very small |
| 3658 |
files the file ID hash is not created. This lead to some state files not being |
| 3659 |
deleted. |
| 3660 |
Thanks to pearseimperva for the patch. |
| 3661 |
- 2021-08-09: imfile bugfix: hash char invalidly added in readmode != 0 |
| 3662 |
If imfile is ingesting log files with readMode set to 2 or 1, the resulting |
| 3663 |
messages all have a '#' character at the end. This patch corrects the behaviour. |
| 3664 |
Note: if some external script "supported" the bug of extra hash character at |
| 3665 |
the end of line, it may be necessary to update them. |
| 3666 |
closes https://github.com/rsyslog/rsyslog/issues/4491 |
| 3667 |
- 2021-08-09: omelasticsearch bugfix: errorFile mutex was not consistently locked |
| 3668 |
Lock the file during SIGHUPs to avoid issues with concurrent accesses by |
| 3669 |
writeDataError(). |
| 3670 |
Thanks to François Poirotte for the patch. |
| 3671 |
- 2021-08-09: imudp: add socket type (IPv4 vs. 6) to input name |
| 3672 |
Most importantly, the input name is used for stats counter names as |
| 3673 |
well. Previously, the same name was used for IPv4 and IPv6, so we had |
| 3674 |
two counters with an equal name. That left users puzzled. |
| 3675 |
Unfortunately, this change can potentially require changes to existing |
| 3676 |
analysis scripts, as the name is now slightly different. |
| 3677 |
closes https://github.com/rsyslog/rsyslog/issues/4364 |
| 3678 |
- 2021-08-06: omfwd: add capability for action-specific TLS certificate settings |
| 3679 |
This permits to override the global definitions for TLS certificates |
| 3680 |
at the action() level. |
| 3681 |
- 2021-08-06: imfile bugfix: file handle leak if "freshStartTail" was turned on |
| 3682 |
- 2021-08-05: imtcp: permit to use different certificate files per input/action |
| 3683 |
This completes the ability to override global/default TLS settings at the imtcp |
| 3684 |
input() level. Support for using multiple CAs/Certs per Connection is now provided. |
| 3685 |
- 2021-08-04: imptcp bugfix: keep alive interval was incorrectly set |
| 3686 |
The interval was accidentally set to keep alive interval. This has been |
| 3687 |
corrected. |
| 3688 |
closes https://github.com/rsyslog/rsyslog/issues/4609 |
| 3689 |
- 2021-07-08: openssl network driver bugfix: small memory leak |
| 3690 |
Fixes a static, non-growing memory leak which existed when parameter |
| 3691 |
"GnutTLSPriorityString" was used. This was primarily a cosmetic issue, |
| 3692 |
but caused some grief during development in regard to memory leak |
| 3693 |
detectors. |
| 3694 |
Note: yes, this is for openssl -- the parameter name is historical. |
| 3695 |
- 2021-07-07: psrv bugfix: abort if no listener could be started |
| 3696 |
Modules (like imtcp and imdiag) which use tcpsrv could abort or |
| 3697 |
otherwise malfunction if no listener for a specific input could |
| 3698 |
be started. |
| 3699 |
Found during implementing a new feature, no report from practice. |
| 3700 |
But could very well happen. |
| 3701 |
- 2021-07-07: mmkubernetes bugfix: apiserver error handling |
| 3702 |
- Added graceful handling of apiserver errors with unexpected responses, |
| 3703 |
i.e., anything other than 200, 404, or 429. Idea is that apiserver |
| 3704 |
transient error state will recover. We don't want mmkubernetes to miss |
| 3705 |
metadata resolution for containers that don't have cached metadata. |
| 3706 |
During these transient error states, mmkubernetes will provide basic |
| 3707 |
container file path based resolution of namespace and pod metadata for |
| 3708 |
new pods whose metadata is not yet cached. After this error state |
| 3709 |
recovers, mmkubernetes is expected to resume its metadata resolution as |
| 3710 |
expected. |
| 3711 |
- Added a unit test case for apiserver return 500 with changes to mock server |
| 3712 |
- Fixed existing unit test that was failing due to missing expected results file |
| 3713 |
- Added mmkubernetes unit tests to testbench |
| 3714 |
Thanks to Abdul Waheed for the patch (submitted from Nelson Yen). |
| 3715 |
- 2021-07-07: ommongodb bugfixes |
| 3716 |
- Fix Segmentation fault when server is down |
| 3717 |
- Add server connexion check while resuming |
| 3718 |
Thanks to Kevin Guillemot for the patch. |
| 3719 |
- 2021-06-28: omkafka improvements |
| 3720 |
- drain librdkafka queues and retry later during rsyslog restart or hup. This |
| 3721 |
re-injects messages into rsyslog's native queues. |
| 3722 |
- add statsname on per kafka instance for better visibility |
| 3723 |
- omkafka - count errors related ssl as "errors_ssl" |
| 3724 |
Thanks to Nelson Yen for the patch. |
| 3725 |
- 2021-06-23: some CI/QA improvements, Travis-CI disabled |
| 3726 |
For the time being, Travis CI is disabled because it was outdated and Travis also |
| 3727 |
changed their system. We will re-evaluate if we re-enable it. Since quite a while |
| 3728 |
the Travits tests were redundant with the rest of CI, so this does not reduce |
| 3729 |
coverage. |
| 3730 |
- 2021-06-23: omhttp bugfix: dynrestpath param in batch mode invalid |
| 3731 |
When batchmode was used, the templates could not be used to |
| 3732 |
expand dynrestpath. We are now storing the restpath param |
| 3733 |
within the batch data if we are in batch mode. |
| 3734 |
When we are in batch mode, and the restpath value changes, the |
| 3735 |
batch is submitted and reinitialized |
| 3736 |
closes: https://github.com/rsyslog/rsyslog/issues/4567 |
| 3737 |
- 2021-06-17: add predefined template RSYSLOG_SyslogRFC5424Format |
| 3738 |
This is essentially the same as RSYSLOG_SyslogProtocol23Format with |
| 3739 |
a better name and a fix to remove the unnecessary LF at the end of |
| 3740 |
the message. |
| 3741 |
The different name also enables us to fix the LF issue without |
| 3742 |
any concern about backwards compatibility. |
| 3743 |
closes https://github.com/rsyslog/rsyslog/issues/4384 |
| 3744 |
- 2021-06-17: impstats/bugfix: _sender_stats reports integer counter as string |
| 3745 |
Note that this introduces a small backwards incompatibility: in previous output |
| 3746 |
the field was of string type, now it is integer (as intended). We discussed this |
| 3747 |
on the mailing list and the overwhelming thought was that this is not a problem |
| 3748 |
because almost all analysis backends are able to cover that format change. This made |
| 3749 |
the bugfix essentially costmetic. |
| 3750 |
HOWEVER, if you still experience issues, please let us know. We can add an option |
| 3751 |
to provide the previous format, and just spared to do so because there was no |
| 3752 |
evidence it was needed. |
| 3753 |
---------------------------------------------------------------------------------------- |
| 3754 |
Scheduled Release 8.2106.0 (aka 2021.06) 2021-06-15 |
| 3755 |
NOTE: the prime new feature is support for TLS and non-TLS connections |
| 3756 |
via imtcp in parallel. Furthermore, most TLS parameters can now be overriden |
| 3757 |
at the input() level. The notable exceptions are certificate files, something |
| 3758 |
that is due to be implemented as next step. |
| 3759 |
- 2021-06-14: new global option "parser.supportCompressionExtension" |
| 3760 |
This permits to turn off rsyslog's single-message compression extension |
| 3761 |
when it interferes with non-syslog message processing (the parser |
| 3762 |
subsystem expects syslog messages, not generic text) |
| 3763 |
closes https://github.com/rsyslog/rsyslog/issues/4598 |
| 3764 |
- 2021-05-12: imtcp: add more override config params to input() |
| 3765 |
It is now possible to override all module parameters at the input() level. Module |
| 3766 |
parameters serve as defaults. Existing configs need no modification. |
| 3767 |
- 2021-05-06: imtcp: add stream driver parameter to input() configuration |
| 3768 |
This permits to have different inputs use different stream drivers |
| 3769 |
and stream driver parameters. |
| 3770 |
closes https://github.com/rsyslog/rsyslog/issues/3727 |
| 3771 |
- 2021-04-29: imtcp: permit to run multiple inputs in parallel |
| 3772 |
Previously, a single server was used to run all imtcp inputs. This |
| 3773 |
had a couple of drawsbacks. First and foremost, we could not use |
| 3774 |
different stream drivers in the varios inputs. This patch now |
| 3775 |
provides a baseline to do that, but does still not implement the |
| 3776 |
capability (in this sense it is a staging patch). |
| 3777 |
Secondly, we now ensure that each input has at least one exclusive |
| 3778 |
thread for processing, untangling the performance of multiple |
| 3779 |
inputs from each other. |
| 3780 |
see also: https://github.com/rsyslog/rsyslog/issues/3727 |
| 3781 |
- 2021-04-27: tcpsrv bugfix: potential sluggishnes and hang on shutdown |
| 3782 |
tcpsrv is used by multiple other modules (imtcp, imdiag, imgssapi, and, |
| 3783 |
in theory, also others - even ones we do not know about). However, the |
| 3784 |
internal synchornization did not properly take multiple tcpsrv users |
| 3785 |
in consideration. |
| 3786 |
As such, a single user could hang under some circumstances. This was |
| 3787 |
caused by improperly awaking all users from a pthread condition wait. |
| 3788 |
That in turn could lead to some sluggish behaviour and, in rare cases, |
| 3789 |
a hang at shutdown. |
| 3790 |
Note: it was highly unlikely to experience real problems with the |
| 3791 |
officially provided modules. |
| 3792 |
- 2021-04-22: refactoring of syslog/tcp driver parameter passing |
| 3793 |
This has now been generalized to a parameter block, which makes it much cleaner and |
| 3794 |
also easier to add new parameters in the future. |
| 3795 |
- 2021-04-22: config script: add re_match_i() and re_extract_i() functions |
| 3796 |
This provides case-insensitive regex functionality. |
| 3797 |
closes https://github.com/rsyslog/rsyslog/issues/4429 |
| 3798 |
---------------------------------------------------------------------------------------- |
| 3799 |
Scheduled Release 8.2104.0 (aka 2021.04) 2021-04-20 |
| 3800 |
- 2021-04-19: new contributed module imhiredis |
| 3801 |
Thanks to Théo Bertin (frikilax) for the patch. |
| 3802 |
- 2021-04-19: new built-in function get_property() to access property vars |
| 3803 |
Provides ability to evaluate a rsyslog variable using dynamically |
| 3804 |
evaluated parameters. |
| 3805 |
1st param is the rsyslog param, 2nd param is a key, can be an array |
| 3806 |
index or key string. |
| 3807 |
Useful for accessing json sub-objects, where a key |
| 3808 |
needs to be evaluated at runtime. Can be used to access arrays as well. |
| 3809 |
Thanks to Nelson Yen for contributing this module. |
| 3810 |
- 2021-04-19: mmdblookup: add support for mmdb DB reload on HUP |
| 3811 |
Thanks to Théo Bertin (frikilax) for the patch. |
| 3812 |
- 2021-04-19: script bugfix: empty array in foreach() improperly handled |
| 3813 |
When running a foreach() loop inside a ruleset, if the json array/object iterated |
| 3814 |
over is empty but valid, the foreach will make the message processing in the |
| 3815 |
ruleset abort operation, no following operation (such as actions) will be |
| 3816 |
executed after this. |
| 3817 |
Thanks to Théo Bertin (frikilax) for the patch. |
| 3818 |
- 2021-04-19: imjournal bugfixes (handle leak, empty file) |
| 3819 |
Flush the FILE* buffer before rename & fsync in order |
| 3820 |
to not end up syncing an empty file. |
| 3821 |
Also, close WorkDir on fsync in order to prevent |
| 3822 |
file descriptor leakage. |
| 3823 |
Thanks to github user gerd-rausch for the fix. |
| 3824 |
- 2021-04-06: new contributed function module fmunflatten |
| 3825 |
This commit adds a new rainerscript function to unflatten keys in a JSON tree. It |
| 3826 |
provides a way to expand dot separated fields. |
| 3827 |
<result> = unflatten(<source-tree>, <key-separator-character>); |
| 3828 |
It allows for instance to produce this: { "source": { "ip": "1.2.3.4", "port": 443 } } |
| 3829 |
from this source data: { "source.ip": "1.2.3.4", "source.port": 443 } |
| 3830 |
Thanks to Julien Thomas for the contribution. |
| 3831 |
- 2021-02-22: test bugfix: some tests did not work with newer TLS library versions |
| 3832 |
Newer versions provide TLS versions that cannot be disabled in older versions as they |
| 3833 |
are unknown there. This is solved by setting restrictions in multiple steps. For |
| 3834 |
older library versions, the final step will error out, but the other one be applied. |
| 3835 |
This permits to achieve proper test results. |
| 3836 |
closes: https://github.com/rsyslog/rsyslog/issues/4534 |
| 3837 |
- some improvements to project CI |
| 3838 |
---------------------------------------------------------------------------------------- |
| 3839 |
Scheduled Release 8.2102.0 (aka 2021.02) 2021-02-16 |
| 3840 |
- 2021-02-15: omfwd: add stats counter for sent bytes |
| 3841 |
Thanks to John Chivian for suggesting this feature. |
| 3842 |
- 2021-02-15: omfwd: add error reporting configuration option |
| 3843 |
RSyslog on a plain TCP cannot guarantee the message delivery |
| 3844 |
without using RELP protocol. Besides that the logs may be |
| 3845 |
flooded with connection errors making the rest of messages |
| 3846 |
difficult to find. To alleviate the problem (see issue 3910), |
| 3847 |
this patch adds a configuration option that enables to reduce |
| 3848 |
the number of network errors logged and reported. |
| 3849 |
For example, if each 10th network error message should be logged, |
| 3850 |
the rsyslog configuration has to be updated as follows. |
| 3851 |
action(type="omfwd" Target="<IP_ADDR>" Port="<PORT>" Protocol="tcp" ConErrSkip="10") |
| 3852 |
Thanks to Libor Bukata for the patch. |
| 3853 |
- 2021-02-15: action stats counter bugfix: failure count was not properly incremented |
| 3854 |
In some cases the counter was not incremented, most notably with transaction-enabled |
| 3855 |
actions. |
| 3856 |
Thanks to github user thinkst-marco for the patch. |
| 3857 |
- 2021-02-15: action stats counter bugfix: resume count was not incremented |
| 3858 |
And so it always stayed at zero. |
| 3859 |
Thanks to github user thinkst-marco for the patch. |
| 3860 |
- 2021-02-15: omfwd bugfix: segfault or error if port not given |
| 3861 |
If omfwd is configured via RainerScript config format and the "port" |
| 3862 |
parameter is not given, a segfault will most likely happen on |
| 3863 |
connection establishment for TCP connections. For UDP, this is |
| 3864 |
usually not the case. |
| 3865 |
Alternatively, in any case, errors may happen. |
| 3866 |
Note that the segfault will usually happen right on restart so this |
| 3867 |
was easy to detect. |
| 3868 |
We did not receive reports from practice. Instead, we found the bug |
| 3869 |
while conducting other work. |
| 3870 |
- 2021-01-29: lookup table bugfix: data race on lookup table reload |
| 3871 |
A data race could happen when a lookup table was reloaded. We found |
| 3872 |
this while moving to newer version of TSAN, but have no matching |
| 3873 |
report from practice. However, there is a potential for this to cause |
| 3874 |
a segfault under "bad circumstances". |
| 3875 |
- 2021-01-18: testbench modernization |
| 3876 |
Bump dependency versions, use newer distro versions for some tests. |
| 3877 |
Make kafka distcheck separate to help diagnose flaky kafka tests. |
| 3878 |
- 2021-01-16: testbench: fix invalid sequence of kafka tests runs |
| 3879 |
kafka tests can not run well in parallel (mostly due to ressource |
| 3880 |
constraints on CI machines). Accidentally, this was not enforced for |
| 3881 |
one of the tests. That could lead to random failures and false positives. |
| 3882 |
- 2021-01-14: testbench: fix kafkacat issues |
| 3883 |
The kafkacat tool has an upper limit of how many messages it can send |
| 3884 |
at once. Going over that limit causes messages loss. The exact limit |
| 3885 |
seems to depend on the environment. This causes testbench false positives. |
| 3886 |
This commit fixes two related issues: |
| 3887 |
- errors during kafkacat run were not detected - this has been added |
| 3888 |
- we now have a "max messages at once" setting, after which kafkacat |
| 3889 |
is restarted for the next batch of messages. It currently is set |
| 3890 |
to 25,000 msgs per incarnation. All tests loop now to send the |
| 3891 |
required number of messages. This has been fixed at the testbench |
| 3892 |
framework level, so no need to adjust individual tests. |
| 3893 |
- 2021-01-14: testbench: fix year-dependendt clickhouse test |
| 3894 |
A test had the year value hardcoded and as such failed whenever the |
| 3895 |
year changed. This patch corrects that. |
| 3896 |
---------------------------------------------------------------------------------------- |
| 3897 |
Scheduled Release 8.2012.0 (aka 2020.12) 2020-12-08 |
| 3898 |
- 2020-12-07: testbench bugfix: some tests did not work in make distcheck |
| 3899 |
- certificate file missing in dist tarball |
| 3900 |
- some test cases did not properly specify path to cert file |
| 3901 |
Thanks to Michael Biebl for alerting us and providing part of |
| 3902 |
the fix. |
| 3903 |
closes https://github.com/rsyslog/rsyslog/issues/4446 |
| 3904 |
- 2020-12-07: immark: rewrite with many improvements |
| 3905 |
- mark message text can now be specified |
| 3906 |
- support for rulesets |
| 3907 |
- support for using syslog API vs. regular internal interface |
| 3908 |
- support for output template system |
| 3909 |
- ability to specify is mark message flag can be set |
| 3910 |
- minor changes and improvements |
| 3911 |
- 2020-11-30: usability: re-phrase error message to help users better understand cause |
| 3912 |
see also https://github.com/rsyslog/rsyslog/issues/3910 |
| 3913 |
- 2020-11-10: add new system property $now-unixtimestamp |
| 3914 |
Among others, this may be used as a monotonic counter |
| 3915 |
for doing load-balancing and other things. |
| 3916 |
Thanks to Nicholas Brown for suggesting this feature. |
| 3917 |
- 2020-11-04: omfwd: add new rate limit option |
| 3918 |
Adding new rate limit option to omfwd for rate limiting |
| 3919 |
syslog messages sent to the remote server |
| 3920 |
ratelimit.interval: |
| 3921 |
Specifies the rate-limiting interval in seconds. |
| 3922 |
Default value is 0, which turns off rate limiting. |
| 3923 |
ratelimit.burst |
| 3924 |
Specifies the rate-limiting burst in number of messages. |
| 3925 |
closes https://github.com/rsyslog/rsyslog/issues/4423 |
| 3926 |
Thanks to Dinesh-Ramakrishnan for the patch. |
| 3927 |
- 2020-11-03: omfwd bug: param "StreamDriver.PermitExpiredCerts" is not "off" by default |
| 3928 |
The default behaviour of expired certificates of stream driver in TLS mode, should |
| 3929 |
have been that the see tcp transmission is closed due to expired certificates, and |
| 3930 |
error messages emited in rsyslog status. This was not the case. That in turn could |
| 3931 |
lead to permitting sessions which should not be permitted. |
| 3932 |
Thanks to Vincent Zhu for alerting us and providing a great problem analysis |
| 3933 |
closes: https://github.com/rsyslog/rsyslog/issues/4425 |
| 3934 |
---------------------------------------------------------------------------------------- |
| 3935 |
Scheduled Release 8.2010.0 (aka 2020.10) 2020-10-20 |
| 3936 |
- 2020-10-13: gnutls TLS subsystem bugfix: handshake error handling |
| 3937 |
If the tls handshake does not immediatelly finish, gnutls_handShake is called in |
| 3938 |
doRetry handler again. However the error handling was not |
| 3939 |
complete in the doRetry handler. A failed gnutls_handShake call |
| 3940 |
did not abort the connection and properly caused unexpected |
| 3941 |
problems like in issues: |
| 3942 |
https://github.com/rsyslog/rsyslog/issues/4270 |
| 3943 |
https://github.com/rsyslog/rsyslog/issues/4288 |
| 3944 |
- 2020-10-13: core/msg bugfix: memory leak |
| 3945 |
There is a missing call to json_object_put(json) if the call to |
| 3946 |
jsonPathFindParent() failed. It's leaking memory. Depending on workload and config, |
| 3947 |
this leak can potentially grow large (albeit we did not see reports from practice). |
| 3948 |
Thanks to Julien Thomas for the patch. |
| 3949 |
- 2020-10-13: core/msg bugfix: segfault in jsonPathFindNext() when <root> not an object |
| 3950 |
The segfault gets happens when <bCreate> is 1 and when the <root> |
| 3951 |
container where to insert the <namebuf> key is not an object. |
| 3952 |
Here is simple reproducible test case: |
| 3953 |
// ensure we start fresh |
| 3954 |
// unnecessary if there was no previous set |
| 3955 |
unset $!; |
| 3956 |
set $! = ""; |
| 3957 |
set $!event!created = 123; |
| 3958 |
Thanks to Julien Thomas for the patch. |
| 3959 |
- 2020-10-13: openssl TLS subsystem: improvments of error and status messages |
| 3960 |
Adding error logs at the ssl handshake failure scenarios. |
| 3961 |
Adding the header "nsd_ossl:" tag to these logs to identify |
| 3962 |
the origin module from which logs are generated. |
| 3963 |
Thanks to Anusha Pai G for the patch. |
| 3964 |
- 2020-10-06: add 'exists()' script function to check if variable exists |
| 3965 |
This implements a way to check if rsyslog variables (e.g. '$!path!var') is |
| 3966 |
currently set of not. |
| 3967 |
Sample: if exists($!somevar) then ... |
| 3968 |
closes https://github.com/rsyslog/rsyslog/issues/4385 |
| 3969 |
- 2020-10-03: core bugfix: do not create empty JSON objects on non-existent key access |
| 3970 |
Performing a condition (eg: check for an empty string) on a subtree key that do not |
| 3971 |
exists (depth > 1 from the root container), creates an empty "parent" object. |
| 3972 |
Depending on your context, you may end up with (kind of...) annoying garbage when |
| 3973 |
producing object documents (for instance to index in ES). |
| 3974 |
Also fixes a hypothetical hang condition with an almost (?) unused plugin parameter |
| 3975 |
passing mode, for details see |
| 3976 |
https://github.com/rsyslog/rsyslog/issues/4436 |
| 3977 |
closes https://github.com/rsyslog/rsyslog/issues/4430 |
| 3978 |
Thanks to Julien Thomas for the patch. |
| 3979 |
- 2020-09-28: gnutls subsysem bugfix: potential hang on session closure |
| 3980 |
Some TLS servers don't reply to graceful shutdown requests "for |
| 3981 |
optimization". This results in rsyslog's omfwd+gtls client to wait |
| 3982 |
forever for a reply of the TLS server which never comes, due to shutting |
| 3983 |
down the connection with gnutls_bye(GNUTLS_SHUT_RDWR). |
| 3984 |
On systemd systems, commands such as "systemctl restart rsyslog" just |
| 3985 |
hang for 1m30 and rsyslogd gets killed upon timeout by systemd. |
| 3986 |
This is fixed by replacing the call to gnutls_bye(GNUTLS_SHUT_RDWR) by calls to |
| 3987 |
gnutls_bye(GNUTLS_SHUT_WR) which is sufficient and doesn't wait for a |
| 3988 |
server reply. |
| 3989 |
As an example, Kiwi Syslog server is known to cause this issue. |
| 3990 |
Thanks to Renaud Métrich for the patch. |
| 3991 |
- 2020-09-23: core/network bugfix: obey net.enableDNS=off when querying local hostname |
| 3992 |
Local hostname resolution used DNS queries even if the enableDNS was set to off, and |
| 3993 |
this could cause unexpected delays in the HUP signal handling if the DNS server was |
| 3994 |
not responsive. |
| 3995 |
Thanks to Samu Nuutamo for the fix. |
| 3996 |
- 2020-09-14: core bugfix: potential segfault on query of PROGRAMNAME property |
| 3997 |
A data race can happen on variable iLenProgram as it is not guarded |
| 3998 |
by the message mutex at time of query. This can lead to it being |
| 3999 |
non -1 while the buffer has not yet properly set up. |
| 4000 |
Thanks to Leo Fang for alerting us and a related |
| 4001 |
patch proposal. |
| 4002 |
replaces https://github.com/rsyslog/rsyslog/pull/4300 |
| 4003 |
- 2020-09-14: imtcp bugfix: broken connection not necessariy detected |
| 4004 |
Due to an invalid return code check, broken TCP sessions could not |
| 4005 |
necessarily be detected "right in time". This can result is the loss |
| 4006 |
of one message. |
| 4007 |
closes https://github.com/rsyslog/rsyslog/issues/4227 |
| 4008 |
Thanks to Leo Fang for the patch. |
| 4009 |
- 2020-09-14: new module: imhttp - http input |
| 4010 |
permits to receive log data via HTTP. |
| 4011 |
uses http library to provide http input. |
| 4012 |
user would need to configure an 'endpoint' as input, along |
| 4013 |
with a ruleset, defining how the input should be routed in |
| 4014 |
rsyslog. |
| 4015 |
Thanks to Nelson Yen for contributing this module. |
| 4016 |
- 2020-09-11: mmdarwin bugfix: potential zero uuid when reusing existing one |
| 4017 |
- fix a use-after-free variable during darwin uuid message extraction |
| 4018 |
- improve debug/output by logging uuid parse errors |
| 4019 |
Thanks to github user frikilax for the patch. |
| 4020 |
- 2020-09-10: imdocker bugfix: build issue on some platforms |
| 4021 |
An invalid variable type was used, leading to compile errors at least on |
| 4022 |
all platform that use gcc 10 and above. Otherwise, however, it looks like the |
| 4023 |
issue caused no real harm. |
| 4024 |
- 2020-09-07: omudpspoof bugfix: make compatbile with Solaris build |
| 4025 |
Thanks to Dagobert Michelsen for the patch. |
| 4026 |
- 2020-09-03: testbench fix: python 3 incompatibility |
| 4027 |
- 2020-09-02: core bugfix: segfault if disk-queue file cannot be created |
| 4028 |
When using Disk Queue and a queue.filename that can not be created |
| 4029 |
by rsyslog, the service does not switch to another queue type as |
| 4030 |
supposed to and crashes at a later step. |
| 4031 |
closes: https://github.com/rsyslog/rsyslog/issues/4282 |
| 4032 |
- 2020-08-26: cosmetic: fix dummy module name in debug output |
| 4033 |
When we have optional components (like imjournal) a dummy module |
| 4034 |
is used. It's sole purpose is to emit "this module is not available". |
| 4035 |
During init, the module emitted an invalid module name into the debug |
| 4036 |
log. This has now been replaced by the generic term "dummy". |
| 4037 |
Note: it is highly unlikely that someone will ever see that message |
| 4038 |
at all, as it is unlikely for the dummy modules to be build. |
| 4039 |
see also: https://github.com/rsyslog/rsyslog/commit/84a7e3d80b80106dcc86c273ed8cf78a6c11c722#r41782830 |
| 4040 |
Thanks to Thomas D. (whissi) for the patch. |
| 4041 |
- 2020-08-26: config bugfix: intended warning emitted as error |
| 4042 |
When there are actions configured after a STOP, a warning should be |
| 4043 |
emitted. In fact, an error message is generated. This prevents the |
| 4044 |
construct, which may have some legit uses in exotic settings. It |
| 4045 |
may also break older configs, but as the message is an error |
| 4046 |
for so long now, this should be no longer of concern. |
| 4047 |
---------------------------------------------------------------------------------------- |
| 4048 |
Scheduled Release 8.2008.0 (aka 2020.08) 2020-08-25 |
| 4049 |
- 2020-08-25: imdocker bugfix: error reporting not always correct |
| 4050 |
A wrong function to obtain the error code was used. This |
| 4051 |
could lead to invalid error messages. |
| 4052 |
Thanks to Steve Grubb for the bug report and fix proposal. |
| 4053 |
closes https://github.com/rsyslog/rsyslog/issues/4381 |
| 4054 |
- 2020-08-25: imptcp: add max sessions config parameter |
| 4055 |
The max is per-instance, not global across all instances. |
| 4056 |
There is also a bugfix where if epoll failed I think we could leave a |
| 4057 |
session linked in the list of sessions, this code unlinks it. |
| 4058 |
Thank to Alfred Perlstein for the patch. |
| 4059 |
- 2020-08-24: omelasticsearch bugfix: reply buffer reset after health check |
| 4060 |
The issue happens when more than one server is defined on the |
| 4061 |
action. On that condition a health check is made through |
| 4062 |
checkConn() before sending the POST. The replyLen should be |
| 4063 |
set back to 0 after the health check, otherwise the response |
| 4064 |
data received from the POST gets appended to the end of the |
| 4065 |
last health check. |
| 4066 |
Thanks to Julien Thomas for the patch. |
| 4067 |
- 2020-08-14: omfile: do no longer limit dynafile cache size in legacy format |
| 4068 |
When using obsolete legacy config format, omfile had a hard limit of |
| 4069 |
1,000 dynafile cache entries. This does not play well with very |
| 4070 |
large installation. This limit is now removed and converted into |
| 4071 |
a warning if cache size > 25,000 is specified. |
| 4072 |
Note: the problem can easily be worked-around by using modern |
| 4073 |
config format (RainerScript). |
| 4074 |
closes: https://github.com/rsyslog/rsyslog/issues/4241 |
| 4075 |
- 2020-08-13: imudp: fix very small, static memory leak |
| 4076 |
When ruleset support was used, the ruleset name was not freed upon rsyslog |
| 4077 |
termination. While this has no consequences for regular runs, it generates |
| 4078 |
leak errors under memory debuggers and as such makes debugging harder than |
| 4079 |
necessary. |
| 4080 |
Thanks to github user frikilax for the patch. |
| 4081 |
- 2020-08-13: omelasticsearch: add parameter skipPipelineIfEmpty |
| 4082 |
When POST'ing a document, Elasticsearch does not allow an empty pipeline |
| 4083 |
parameter value. This patch introduces boolean option skipPipelineIfEmpty |
| 4084 |
to the omelasticsearch action. When set to true, the pipeline parameter |
| 4085 |
won't be posted. Default is false so we do not modify current behavior. |
| 4086 |
Thanks to Julien Thomas for the patch. |
| 4087 |
- 2020-08-12: systemd service file removed from project |
| 4088 |
This was done as distros nowadays have very different service files and it no |
| 4089 |
longer is useful to provide a "generic" (sic) example. |
| 4090 |
see also: https://github.com/rsyslog/rsyslog/issues/4333 |
| 4091 |
- 2020-08-11: gnutls TLS driver bugfix: EKU check not done properly |
| 4092 |
When the server accepted a new connection, it did not properly set the |
| 4093 |
dataTypeCheck field based on the listening socket. That resulted in |
| 4094 |
skipping ExtendedKeyUsage (EKU) check on the client. |
| 4095 |
Thanks to Daiki Ueno for the patch. |
| 4096 |
- 2020-08-06: MMDARWIN:: improve configuration flexibility and UUID fix |
| 4097 |
-t pu now able to get fields from local variables ($.) |
| 4098 |
- now able to configure a custom root container for mmdarwin fields |
| 4099 |
- now able to put nested keys ($!key1!key2) |
| 4100 |
- don't regenerate a UUID each time, but instead check if one exists before |
| 4101 |
creating it (allow successive calls without losing previous UUID) |
| 4102 |
Thanks to github user frikilax for the contribution. |
| 4103 |
- 2020-08-06: add --enable-imjournal=optional ./configure option |
| 4104 |
- 2020-08-06: IMPCAP::Fixes: segfault, memory and build corrections |
| 4105 |
* fix bug in ethernet packets parsing |
| 4106 |
* fix removes build error with gcc10: 'multiple definition of...' |
| 4107 |
* resolve memory leak during interface init failure (device not freed after post-create error) |
| 4108 |
* add test 'impcap_bug_ether' to prove ethernet parser fix is working |
| 4109 |
Thanks to github user frikilax for the contribution. |
| 4110 |
closes https://github.com/rsyslog/rsyslog/issues/4332 |
| 4111 |
- 2020-07-14: CI: add support for github actions |
| 4112 |
- 2020-07-14: imklog: add ruleset support |
| 4113 |
see also: https://github.com/rsyslog/rsyslog/issues/4344#issuecomment-658001854 |
| 4114 |
see also: https://github.com/rsyslog/rsyslog/issues/106 |
| 4115 |
- 2020-07-06: config system fix: ChkDisabled method to make config.enabled work |
| 4116 |
There was wrong negation in the method so it returned 0/1 in reverse |
| 4117 |
and also it did not mark the node to not be reported as unknown at all |
| 4118 |
times which is needed after all. |
| 4119 |
Thanks to Jiri Vymazal for the patch. |
| 4120 |
---------------------------------------------------------------------------------------- |
| 4121 |
Scheduled Release 8.2006.0 (aka 2020.06) 2020-06-23 |
| 4122 |
- 2020-06-22: queue: permit ability to double size at shutdown |
| 4123 |
This prevents message loss due to "queue full" when re-enqueueing data |
| 4124 |
under quite exotic settings. |
| 4125 |
see also https://github.com/rsyslog/rsyslog/issues/3941#issuecomment-549765813 |
| 4126 |
closes https://github.com/rsyslog/rsyslog/issues/4020 |
| 4127 |
- 2020-06-22:Fixing imfile segfaulting on selinux denial |
| 4128 |
If imfile is denied access to file watched trough symlink there is |
| 4129 |
unchecked condition resulting in access to not initialized memory. |
| 4130 |
- 2020-06-22: openssl: Fixed memory leak when tls handshake failed. |
| 4131 |
closes: https://github.com/rsyslog/rsyslog/issues/4319 |
| 4132 |
- 2020-06-22: change systemd service file to wait for network |
| 4133 |
now that rsyslog is usually only installed for real syslog servers, |
| 4134 |
we should assume that some network listening or forwarding happens |
| 4135 |
on start. As such we need to start a bit later, after the network. |
| 4136 |
This poses no problem as systemd nowadays comes with journal which |
| 4137 |
is in almost all cases configured to buffer log data while |
| 4138 |
rsyslog is not yet running. |
| 4139 |
see also https://github.com/rsyslog/rsyslog-pkg-rhel-centos/issues/72 |
| 4140 |
- 2020-06-22: NEW INPUT MODULE:: impcap, network packets input parser |
| 4141 |
Thanks to github user frikilax for the contribution. |
| 4142 |
- 2020-06-22: ksi bugfix: Optimized code in KSI module initialization fixed. |
| 4143 |
KSI module initialization will not stuck in infinite loop when code is |
| 4144 |
built with optimization -O2. |
| 4145 |
- 2020-06-05: operatingstatefile bugfix: month was given too low |
| 4146 |
The month was printed with the range 0 (January) to 11 (December). |
| 4147 |
This has now been corrected. |
| 4148 |
closes https://github.com/rsyslog/rsyslog/issues/4292 |
| 4149 |
- 2020-06-05: build system: add "optional" build functionality to some components |
| 4150 |
Nameley: |
| 4151 |
--enable-libdbi=optional |
| 4152 |
--enable-mmdblookup=optional |
| 4153 |
--enable-imkafka=optional |
| 4154 |
--enable-omkafka=optional |
| 4155 |
If used, builds a dummy module which just emits a "module not supported |
| 4156 |
on this platform" error message when loaded. |
| 4157 |
Primary use case for this system is Debian-ish builds on SUSE OBS, |
| 4158 |
where we prefer to have a single package definition for all versions |
| 4159 |
(else things get much more complicated). |
| 4160 |
- 2020-05-23: config system bugfix: backticks cat segfault if file cannot be opened |
| 4161 |
when a `cat <filename>` construct is used in rsyslog.conf and <filename> can not |
| 4162 |
be accessed (does not exist, no permissions, ...), rsyslog segfaults. |
| 4163 |
Thanks to Michael Skeffington for notifying us and providing root cause analysis. |
| 4164 |
closes https://github.com/rsyslog/rsyslog/issues/4290 |
| 4165 |
- 2020-05-15: imtcp bugfix: octet framing/stuffing problem with discardTruncatedMsg on |
| 4166 |
When "discardTruncatedMsg" was enabled in imtcp, messages were incorrectly |
| 4167 |
skipped if the last character before the truncation was the LFdelimiter. |
| 4168 |
Also adds two testbench tests for this case. |
| 4169 |
closes: https://github.com/rsyslog/rsyslog/issues/4281 |
| 4170 |
- 2020-05-12: ompipe bugfix: race during HUP |
| 4171 |
When HUP was received, the write mutex was not acquired. This could |
| 4172 |
lead to unexpected invalidation of the output file descriptor. |
| 4173 |
Thanks to Julien Thomas for alerting us on this issue. |
| 4174 |
see also https://github.com/rsyslog/rsyslog/pull/4136#issuecomment-578326278 |
| 4175 |
- 2020-05-12: ompipe: add action parameter tryResumeReopen |
| 4176 |
Sometimes we need to reopen a pipe after an ompipe action gets |
| 4177 |
suspended. Sending an HUP signal to rsyslog does the job but requires |
| 4178 |
an interraction with rsyslog. The patch adds support for a new boolean |
| 4179 |
option, tryResumeReopen, for the ompipe action. It mimics what an HUP |
| 4180 |
signal would do. |
| 4181 |
Thanks to Julien Thomas for the patch. |
| 4182 |
- 2020-05-12: imjournal: remove strcat call |
| 4183 |
Thanks to Jeff Marckel for the patch. |
| 4184 |
- 2020-05-12: build system: libzcmq version requirement needs to be bumped |
| 4185 |
Thanks to Thomas Deutschmann for pointing this out. |
| 4186 |
closes https://github.com/rsyslog/rsyslog/issues/3957 |
| 4187 |
- 2020-05-12: testbench: download ElasticSearch binaries from rsyslog.com |
| 4188 |
The official ElasticSearch download site sometimes denies the download. |
| 4189 |
- 2020-05-11: openssl netstream driver bugfix: context leak |
| 4190 |
The context object was not properly freed. |
| 4191 |
Thanks to Michael Zimmermann for the fix. |
| 4192 |
- 2020-05-11: omhttp: Add support for multiple http headers |
| 4193 |
Allows the inclusion of multiple http headers on the REST call. |
| 4194 |
Thanks to callmegar for the patch. |
| 4195 |
- 2020-04-29: core bugfix: group id could not be obtained for very large groups |
| 4196 |
Thanks to github user emilbart for the patch. |
| 4197 |
- 2020-04-29: testbench additions (relp broken connection test) |
| 4198 |
- 2020-04-29: omudpspoof bugfix: issues with oversized messages |
| 4199 |
First issue was an incorrect packet length in UDP Header. It has to be the FULL UDP Packet |
| 4200 |
regardless of the MTU Setting. As a result regardless of IP fragmentation, the MTU setting |
| 4201 |
also limited the siizmax size of the UDP message. |
| 4202 |
The second issue was incorrect calculation of the UDP Checksum with libnet if |
| 4203 |
IP fragmentation was used (Based on MTU Setting). As a result, the network packets were |
| 4204 |
dropped by the tcp stack before they even could reach there target. The workarround for this |
| 4205 |
problem is, that we set the UDP Checksum to 0x0000 which allows skipping of the checksum |
| 4206 |
test. Fixing the problem by calculating the correct UDP Checksum would require some |
| 4207 |
code changes in the libnet. |
| 4208 |
Also fixed the omudpspoof bigmsg test and increased the testing size to 16KB. |
| 4209 |
- 2020-04-29: omprog: fix assert failed on HUP with output flag |
| 4210 |
If the 'output' setting of omprog was used and rsyslog received a HUP |
| 4211 |
signal just after starting (and before the omprog action received the |
| 4212 |
first log to process), an internal assertion could fail, causing |
| 4213 |
rsyslog to terminate. The failure message was "rsyslogd: omprog.c:660: |
| 4214 |
closeOutputFile: Assertion `pCtx->bIsRunning' failed." |
| 4215 |
The failure could also occur if rsyslog received a HUP signal during |
| 4216 |
the shutdown sequence. |
| 4217 |
This bug was introduced in v8.2004 by PR https://github.com/rsyslog/rsyslog/pull/4255 |
| 4218 |
Although a test already existed that checked the interaction of HUPs |
| 4219 |
with the 'output' setting, it didn't always fail in this particular case |
| 4220 |
due to timing conditions. The test has been improved to cover this case |
| 4221 |
more reliably. |
| 4222 |
Thanks to Joan Sala Isern for the patch. |
| 4223 |
---------------------------------------------------------------------------------------- |
| 4224 |
Scheduled Release 8.2004.0 (aka 2020.04) 2020-04-28 |
| 4225 |
- 2020-04-28: ksi bugfix: When KSI module is suddenly closed, files are finalized |
| 4226 |
In async. mode all pending signature requests are closed immediately and |
| 4227 |
unsigned block marker is attached with message about sudden closure. |
| 4228 |
Similar approach is used for blocks that already contain some records. |
| 4229 |
Empty blocks are just closed without any metadata. |
| 4230 |
Thanks to Taavi Väljaots for the patch. |
| 4231 |
- 2020-04-28: ksi bugfix: Signer thread initialization is verified before usage. |
| 4232 |
When signer thread is created in rsksiInitModule thread successful |
| 4233 |
initialization is verified before returning the function. This will |
| 4234 |
prevent adding records to not initialized module and in case of an |
| 4235 |
error signature files opened will contain only magic bytes. |
| 4236 |
Thread flags replaced with thread state. |
| 4237 |
When init module fails, module is disabled. |
| 4238 |
Thanks to Taavi Väljaots for the patch. |
| 4239 |
- 2020-04-28: ksi bugfix: Hardcoded default hash algorithm replaced with 'default' |
| 4240 |
Instead of hardcoded SHA-256 KSI_getHashAlgorithmByName("default") |
| 4241 |
is used to get default hash function. |
| 4242 |
Function rsksiSetHashFunction and SetCnfParam updated. |
| 4243 |
Thanks to Taavi Väljaots for the patch. |
| 4244 |
- 2020-04-28: imfile bugfix: poential segfault in stream object on file read |
| 4245 |
- if cstrLen(pThis->prevMsgSegment) > maxMsgSize then len calculation |
| 4246 |
become negative if cstrLen(thisLine) < cstrLen(pThis->prevMsgSegment) |
| 4247 |
This causes illegal access to memory location and thus causing segfault. |
| 4248 |
- assigning len = 0 if cstrLen(pThis->prevMsgSegment) > maxMsgSize so that |
| 4249 |
it access the correct memory location. |
| 4250 |
Thanks to github user jaankit |
| 4251 |
- 2020-04-28: openssl TLS drivers: made more reliable for older openssl versions |
| 4252 |
OpenSSL can retry some failed operations, but older versions need an explicit |
| 4253 |
opt-in to do so. This is now done. |
| 4254 |
- 2020-04-28: omprog: fix bad fd errors in daemon mode |
| 4255 |
When omprog was used with the 'forceSingleInstance=on' option, and/or |
| 4256 |
the 'output' setting, "bad file descriptor" errors occurred, which |
| 4257 |
prevented the external program to be executed and/or the program output |
| 4258 |
to be correctly captured. The bug could also manifest as "resource |
| 4259 |
temporarily unavailable" errors, or other errors related to the use of |
| 4260 |
invalid/reassigned file descriptors. These errors only happened when |
| 4261 |
rsyslog ran in daemon mode (i.e. they didn't happen if rsyslogd was |
| 4262 |
run with the '-n' option). |
| 4263 |
The cause of the bug was that omprog opened the pipe fds needed by |
| 4264 |
these flags during the configuration load phase (in the 'newActInst' |
| 4265 |
module entrypoint). This is a bad place since the fork of the daemon |
| 4266 |
occurs after this phase, and all fds are closed when the daemon process |
| 4267 |
is started (see 'initAll' in rsyslogd.c), hence invalidating the |
| 4268 |
previously opened fds. |
| 4269 |
To correct this, the single child process and the output capture thread |
| 4270 |
are now started later, when the first log message is received by the |
| 4271 |
first worker thread. (Note: the 'activateCnf' module entrypoint, despite |
| 4272 |
being invoked after the fork, cannot be used for this purpose, since it |
| 4273 |
is invoked per module, not per action instance.) |
| 4274 |
Currently no automated test exists for this use case since the testbench |
| 4275 |
always runs rsyslog in non-daemon mode. |
| 4276 |
Affected versions: v8.38 and later |
| 4277 |
closes: https://github.com/rsyslog/rsyslog/issues/4247 |
| 4278 |
Thanks to Joan Sala Isern for the patch. |
| 4279 |
- 2020-04-28: omfile bugfix: $outchannel split log lines at rotation time |
| 4280 |
- 2020-04-17: openssl: add support for libreSSL |
| 4281 |
Disable use of "@SECLEVEL" in default cipher string and |
| 4282 |
avoid SSL_CONF_CTX_set_flags() API when LIBRESSL is used. |
| 4283 |
This means tlscommands will not work. |
| 4284 |
closes: https://github.com/rsyslog/rsyslog/issues/4210 |
| 4285 |
- 2020-03-04: imudp bugfix: build problems on some Linux kernel versions |
| 4286 |
Thanks to Wen Yang for the patch. |
| 4287 |
- 2020-03-02: conf output bugfix: -o produces missing space between call and rulename |
| 4288 |
Thanks to Tetiana Ohnieva for the patch. |
| 4289 |
closes https://github.com/rsyslog/rsyslog/issues/3761 |
| 4290 |
---------------------------------------------------------------------------------------- |
| 4291 |
Scheduled Release 8.2002.0 (aka 2020.02) 2020-02-25 |
| 4292 |
- 2020-02-25: imfile: add per minute rate limiting |
| 4293 |
Add MaxBytesPerMinute and MaxLinesPerMinute options. |
| 4294 |
These take integer values and, respectively, limit the number |
| 4295 |
of bytes or lines that may be sent in a minute. |
| 4296 |
This can be used to put a limit on the count or volume of logs |
| 4297 |
that may be sent for an imfile. |
| 4298 |
Thanks to Greg Farrell for the patch. |
| 4299 |
- 2020-02-24: core: add global parameter "security.abortOnIDResolutionFail" |
| 4300 |
This parameter controls whether or not rsyslog aborts when a name ID |
| 4301 |
lookup fails (for user and group names). This is necessary as a security |
| 4302 |
measure, as otherwise the wrong permissions can be assigned or privileges |
| 4303 |
are not dropped. |
| 4304 |
CHANGE OF BEHAVIOR |
| 4305 |
The default for this parameter is "on". In previous versions, the default |
| 4306 |
was "off" (by virtue of this parameter not existing). As such, existing |
| 4307 |
configurations may now error out. |
| 4308 |
We have decided to accept this change of behavior because of the potential |
| 4309 |
security implications. |
| 4310 |
closes https://github.com/rsyslog/rsyslog/issues/4164 |
| 4311 |
- 2020-02-24: openssl TLS driver bugfix: chained certificates were not accepted |
| 4312 |
This was supported since always inside GnuTLS driver, but was missing for openssl one. |
| 4313 |
- 2020-02-24: core bugfix: too early parsing of incoming messages |
| 4314 |
In theory, rsyslog should call parsers on the queue worker threads whenever |
| 4315 |
possible. This enables the parsers to be executed in parallel. There are |
| 4316 |
some cases where parsers needs to be called earlier, namely when parsed |
| 4317 |
data is needed for rate-limiting. |
| 4318 |
The logic to do this previously did not work correctly and was fixed six |
| 4319 |
years ago (!) by b51dd22. Unfortunately, b51dd22 was overly agressive: |
| 4320 |
it actually makes the early parser call now mandatory, effectively moving |
| 4321 |
parsing to the input side where there is no to little concurrency. |
| 4322 |
We still do not need to call the parser when all messages, regardless of |
| 4323 |
severity, need to be rate-limited. This is the default and very frequent |
| 4324 |
case. This patch introduces support for this and as such makes parsers |
| 4325 |
able to run in parallel in the frequent case again. |
| 4326 |
closes https://github.com/rsyslog/rsyslog/issues/4187 |
| 4327 |
- 2020-02-20: testbench bugfix: two minor issues in omkafkadynakey.sh test |
| 4328 |
lead to false positives during test runs (depending on circumstances) |
| 4329 |
closes: https://github.com/rsyslog/rsyslog/issues/4134 |
| 4330 |
- 2020-02-20: testbench: set max extra data length for tcpflood from 200 to 512KiB |
| 4331 |
Added a imrelp test for big messages (256KB). |
| 4332 |
closes: https://github.com/rsyslog/rsyslog/issues/4158 |
| 4333 |
- 2020-02-20: config system bugfix: 'config.enabled' directive oddities |
| 4334 |
Previously the directive was processed way too late which caused false |
| 4335 |
errors whenever it was set to 'off' and possibly other problems. |
| 4336 |
Thanks to Jiri Vymazal for the patch. |
| 4337 |
- 2020-02-09: imfile bugfix: timeout did not work on very busy system |
| 4338 |
The timeout feature was soley based on timeouts of the poll() |
| 4339 |
system call. On a very busy system, this would probably happen |
| 4340 |
very seldomly. Moreover, the timeout could occur later than |
| 4341 |
expected on any system with high load. |
| 4342 |
The issue was not reported from practice but discovered during |
| 4343 |
CI system improvements. |
| 4344 |
- 2020-01-30: build system: change --enable-imfile-tests default to "yes" |
| 4345 |
This was accidentally set to "no" some time ago (actual commit unknown). Tests for |
| 4346 |
imfile should by default run when imfile is enabled. |
| 4347 |
see also https://github.com/rsyslog/rsyslog/issues/4120 |
| 4348 |
- 2020-01-27: build system: add option --enable-gnutls-tests |
| 4349 |
This enables us to build GNUtls support but not necessarily |
| 4350 |
test it in CI. This is useful for some specialised subcomponent |
| 4351 |
test. The default is enabled if gnutls is enabled and disabled if not. |
| 4352 |
- 2020-01-26: testbench: new test for loadbalancing via global vars |
| 4353 |
This is a popular functionality which had not been routinely tested |
| 4354 |
in the past. |
| 4355 |
- 2020-01-26: mmdblookup bugfix: invalid data returned when no entry found |
| 4356 |
Since the upgrade of the package libmaxminddb on FreeBSD (1.3.2_2 -> 1.4.2), |
| 4357 |
the module mmdblookup returns the first entry of the mmdb database even if the entry |
| 4358 |
is not found. After some debug, I found the solution in the official maxminddb |
| 4359 |
repository : to check if the entry is in database, we must check the found_entry |
| 4360 |
attribute, otherwise the function MMDB_get_entry_data_list will return the first |
| 4361 |
entry of the database if the entry is not found in it. |
| 4362 |
Thanks to Kevin Guillemot for the patch. |
| 4363 |
- 2020-01-23: oversize message log bugfix: do not close fd -1 |
| 4364 |
The oversize message log fd is always closed on HUP, even if it never |
| 4365 |
was opened (and thus has -1 value). This patch corrects the issue. |
| 4366 |
The bug had no know-bad effect in practice other than getting an |
| 4367 |
(ignored) error status from close(). However, it introduced warnings |
| 4368 |
in test runs (e.g. when running under valgrind). |
| 4369 |
- 2020-01-22: imfile bugfix: saving of old file_id for statefiles |
| 4370 |
Previously we saved old file_id unconditionally, which led to not |
| 4371 |
deleting old statefiles if files changes without rsyslog running. |
| 4372 |
Now it should work correctly. |
| 4373 |
Thanks to Jiri Vymazal for the patch. |
| 4374 |
- 2020-01-22: imfile bugfix: misadressing and potential segfault |
| 4375 |
Commit 3f72e8c introduced an invalid memory allocation size. This lead to |
| 4376 |
too-short alloc and thus to overwrite of non-owned memory. That in turn |
| 4377 |
could lead to segfaults or other hard to find problems. |
| 4378 |
The issue was detected by our upgraded CI system. We did not receive |
| 4379 |
any problem reports in practice. Nevertheless, the problem is real and |
| 4380 |
people should update affected versions to patched ones. |
| 4381 |
The bug was present in scheduled stable release 8.1911.0 and 8.2001.0. |
| 4382 |
see also: https://github.com/rsyslog/rsyslog/issues/4120 |
| 4383 |
see also: https://github.com/rsyslog/rsyslog/pull/4141 |
| 4384 |
- 2020-01-20: core bugfix: potential race during HUP |
| 4385 |
when rsyslog is HUPed immediately after startup and before it is fully |
| 4386 |
initialized, there is a potential race with the list of loaded modules. |
| 4387 |
This patch ensures no bad things can happen in that case. |
| 4388 |
Detected by LLVM TSAN, not seen in practice. |
| 4389 |
- 2020-01-20: testbench improvements and fixes |
| 4390 |
modernize tests, reduce robustness against slow machines, provide some |
| 4391 |
test framework functional enhancements, and optimize some tests. |
| 4392 |
Also includes some code changes to C testing components. Among others, |
| 4393 |
tests have slightly been speeded up by reducing the wait time at queue |
| 4394 |
shutdown. This is possible because of better overall completion checks. |
| 4395 |
---------------------------------------------------------------------------------------- |
| 4396 |
Scheduled Release 8.2001.0 (aka 2020.01) 2020-01-14 |
| 4397 |
- 2020-01-12: core bugfix: race condition related to libfastjson when using DA queue |
| 4398 |
Rsyslogd aborts when writing to disk queue from multiple workers simultaneously. |
| 4399 |
It is assumed that libfastjson is not thread-safe. |
| 4400 |
Resolve libfastjson race condition when writing to disk queue. |
| 4401 |
see also https://github.com/rsyslog/rsyslog/issues/4041 |
| 4402 |
Thanks to MIZUTA Takeshi for the fix. |
| 4403 |
- 2020-01-12: omfwd bugfix: parameter streamdriver.permitexpiredcerts did not work |
| 4404 |
closes https://github.com/rsyslog/rsyslog/issues/4098 |
| 4405 |
- 2020-01-11: Bugfix: KSI module + dynafile in asynchronous mode fixed |
| 4406 |
Thanks to Taavi Valjaots for the patch |
| 4407 |
- 2020-01-08: tls driver: add support to configure certificate verify depth |
| 4408 |
Support added in omfwd as instance parameter: |
| 4409 |
streamdriver.TlsVerifyDepth |
| 4410 |
Support added in imtcp as module parameter: |
| 4411 |
streamdriver.TlsVerifyDepth |
| 4412 |
Can be 2 or higher. |
| 4413 |
Support added into ossl driver |
| 4414 |
Support added into gtls driver |
| 4415 |
Added testcases for both drivers. |
| 4416 |
closes: https://github.com/rsyslog/rsyslog/issues/4035 |
| 4417 |
- 2020-01-08: modernization of testbench |
| 4418 |
moved some tests to newer standards, hardened them against slow testbench machines, |
| 4419 |
kafka component download improvements, and prevent dangling left-over test tool |
| 4420 |
instances from aborted tests |
| 4421 |
- 2020-01-07: tls subsystem bugfix: default for permitExpiredCerts was invalidly "on" |
| 4422 |
The problem occurred with commit 3d9b8df in December 2018 and went into |
| 4423 |
scheduled stable 8.1901.0. Unfortunately, the change in default was not detected |
| 4424 |
until a year later. This commit re-enables the previous default ("off"), which is |
| 4425 |
also the only sensible default from a security PoV. Unfortunately, new 2019 |
| 4426 |
deployments may begin to see connection rejection when usin expired certs. As |
| 4427 |
expired certs should not be used, this hopefully will not cause problems in |
| 4428 |
practice. |
| 4429 |
Thanks to Jiri Vymazal for the patch. |
| 4430 |
- 2020-01-01: testbench: improve ElasticSearch test speed |
| 4431 |
We now support re-using suitable running ES instances, which reduces the |
| 4432 |
number of restarts. |
| 4433 |
- 2019-12-31: omelasticsearch: improve curl reply buffer handling |
| 4434 |
The curl reply buffer (pWrkrData->reply) was allocated, realloced and freed with |
| 4435 |
each request. This has now been reduced to once per module, slightly increasing |
| 4436 |
overall performance. |
| 4437 |
closes https://github.com/rsyslog/rsyslog/issues/1964 |
| 4438 |
- 2019-12-31: config system: emit proper error message on $ in double-quoted string |
| 4439 |
closes https://github.com/rsyslog/rsyslog/issues/2869 |
| 4440 |
- 2019-12-30: core bugfix: rsyslog aborts when config parse error is detected |
| 4441 |
In defaut settings, rsyslog tries to continue to run, but some data |
| 4442 |
structures are not properly initialized due to the config parsing error. |
| 4443 |
This causes a segfault. |
| 4444 |
In the following tracker, this is the root cause of the abort: |
| 4445 |
see also https://github.com/rsyslog/rsyslog/issues/2869 |
| 4446 |
- 2019-12-30: fix some alignment issues |
| 4447 |
So far, this worked everywhere (for years). But it may still have |
| 4448 |
caused issues on some platforms. |
| 4449 |
closes https://github.com/rsyslog/rsyslog/issues/2608 |
| 4450 |
- 2019-12-27: core bugfix: APP-NAME fields could become empty |
| 4451 |
RFC 5424 specifies that an empty APP-NAME needs to be indicated by |
| 4452 |
"-". Instead, the field could become empty under certain conditions. |
| 4453 |
If so, outgoing 5424 messages were invalidly formatted. |
| 4454 |
This happened under quite unusual conditions, but could be seen |
| 4455 |
in practice. |
| 4456 |
closes https://github.com/rsyslog/rsyslog/issues/4043 |
| 4457 |
- 2019-12-27: core bugfix: reopen /dev/urandom file descriptor after fork on Linux |
| 4458 |
This patch updates prepareBackground() in tools/rsyslogd.c to reopen any file |
| 4459 |
descriptors used for random number generation in the child process. This fixes |
| 4460 |
an issue on Linux systems where the file descriptor obtained for /dev/urandom |
| 4461 |
by seedRandomNumber() in runtime/srutils.c was left closed after the fork. This |
| 4462 |
could be observed in procfs, where /proc/fd/ would show no open descriptors to |
| 4463 |
/dev/urandom in the forked process. /dev/urandom is reopened as the child may be |
| 4464 |
be operating in a jail, and so should not continue to use file descriptors from |
| 4465 |
outside the jail (i.e. inherited from the parent process). |
| 4466 |
I found that this issue led to rsyslog intermittently hanging during seedIV() |
| 4467 |
in runtime/libgcry.c. After the fork, the closed file descriptor number tended |
| 4468 |
to get re-assigned. randomNumber() would then read from an incorrect (although |
| 4469 |
still valid) file descriptor, and could block (depending on the state of that |
| 4470 |
file descriptor). This gave rise to the intermittent hang that I observed. |
| 4471 |
Thanks to Simon Haggett for the patch. |
| 4472 |
- 2019-12-20: imdocker bugfix: did not compile without atomic operations |
| 4473 |
- 2019-12-20: omclickhouse: new parameter "timeout" |
| 4474 |
Thanks to Pavlo Bashynskiy for the patch. |
| 4475 |
- 2019-12-20: omhiredis: add 'set' mode plus some fixes |
| 4476 |
- new mode 'set' to send SET/SETEX commands |
| 4477 |
- new parameter 'expiration' to send SETEX instead of SET commands (only applicable to 'set' mode) |
| 4478 |
- fixes to missing frees |
| 4479 |
Thanks to github user frikilax for the patch. |
| 4480 |
- 2019-12-18: relp: Add support setting openssl configuration commands. |
| 4481 |
Add new configuration parameter tls.tlscfgcmd to omrelp and imrelp. |
| 4482 |
(Using relpSrvSetTlsConfigCmd and relpCltSetTlsConfigCmd) |
| 4483 |
OpenSSL Version 1.0.2 or higher is required for this feature. |
| 4484 |
A list of possible commands and their valid values can be found in the |
| 4485 |
documentation: https://www.openssl.org/docs/man1.0.2/man3/SSL_CONF_cmd.html |
| 4486 |
The setting can be single or multiline, each configuration command is |
| 4487 |
separated by linefeed (n). Command and value are separated by |
| 4488 |
equal sign (=). Here are a few samples: |
| 4489 |
tls.tlscfgcmd="Protocol=ALL,-SSLv2,-SSLv3,-TLSv1,-TLSv1.2" |
| 4490 |
tls.tlscfgcmd="Protocol=ALL,-SSLv2,-SSLv3,-TLSv1 |
| 4491 |
MinProtocol=TLSv1.2" |
| 4492 |
Add to new testcases for librelp and tlscfgcmd. |
| 4493 |
closes https://github.com/rsyslog/rsyslog/issues/3959 |
| 4494 |
- 2019-12-18: bugfix core: potential segfault in template engine |
| 4495 |
under some circumstances (not entirely clear right now), memory |
| 4496 |
was freed but later re-used as state-tracking structures were not |
| 4497 |
properly maintained. Github issue mentioned below has full details. |
| 4498 |
Thanks to github user snaix for analyzing this issue and providing |
| 4499 |
a patch. I am committing as myself as snaix did not disclose his or |
| 4500 |
her identity. |
| 4501 |
closes https://github.com/rsyslog/rsyslog/issues/3019 |
| 4502 |
closes https://github.com/rsyslog/rsyslog/issues/4040 |
| 4503 |
- 2019-12-18: fixed some minor issues detected by clang static analyzer 9 |
| 4504 |
- 2019-12-10: core/config bugfix: false error msg when config.enabled="on" is used |
| 4505 |
When the 'config.enabled="on"' config parameter an invalid error message |
| 4506 |
was emitted that this parameter is not supported. However, it was still |
| 4507 |
applied properly. This commit removes the invalid error message. |
| 4508 |
closes https://github.com/rsyslog/rsyslog/issues/4011 |
| 4509 |
- 2019-12-03: omsnmp bugfix: "traptype" parameter invalidly rejected value 6 |
| 4510 |
"Traptype" needs to support values 0 to 6. |
| 4511 |
However, if value 6(ENTERPRISESPECIFIC) was set, an invalid error message |
| 4512 |
was emitted. Otherwise processing was correct. |
| 4513 |
This could lead to problems with automatic config deployment, |
| 4514 |
as valid configurations were invalidly reported as incorrect. |
| 4515 |
That in turn could make a deployment fail. |
| 4516 |
closes https://github.com/rsyslog/rsyslog/issues/3973 |
| 4517 |
- 2019-12-03: omsnmp: add new parameter "snmpv1dynsource" |
| 4518 |
If set, the source field from SNMPv1 trap can be overwritten |
| 4519 |
with a template, default is "%fromhost-ip%". The content should be a |
| 4520 |
valid IPv4 Address that can be passed to inet_addr(). If the content |
| 4521 |
is not a valid IPv4 Address, the source will not be set. |
| 4522 |
closes: https://github.com/rsyslog/rsyslog/issues/3991 |
| 4523 |
- 2019-12-02: imfile bugfix: state file renaming sometimes did not work properly |
| 4524 |
Now checking if file-id changes and renaming - cleaning state file |
| 4525 |
accordingly and always checking and cleaning old inode-only style |
| 4526 |
state files. |
| 4527 |
Thanks to Jiri Vymazal for the patch. |
| 4528 |
- 2019-12-02: ratelimit: increase rate limit interval parameter max value |
| 4529 |
The burst parameter in the ratelimit was increased to an unsigned int |
| 4530 |
but the interval remained an unsigned short. While it may be unusual, |
| 4531 |
there is possibly a chance to need to represent an interval longer than |
| 4532 |
about 3/4 of a day. |
| 4533 |
While here, go through and normalize all the various incarnations of |
| 4534 |
rate limiting to be explicitly unsigned int for the burst and interval. |
| 4535 |
Thanks to github user frikilax for the patch. |
| 4536 |
- 2019-12-02: ommongodb: Add other supported formats for 'time' and 'date' fields |
| 4537 |
Thanks to github user frikilax for the patch. |
| 4538 |
- 2019-12-02: imjournal bugfix: too many messages in error case |
| 4539 |
Under certain error conditions, `ignorePreviousMessages="on"` could be ignored |
| 4540 |
an existing messages be processed. |
| 4541 |
Thanks to github user 3chas3 for the patch. |
| 4542 |
- 2019-11-27: core bugfix: action on retry mangles messages |
| 4543 |
When a failed action goes into retry, template content is rendered |
| 4544 |
invalid if the action uses more than 1 template. |
| 4545 |
closes https://github.com/rsyslog/rsyslog/issues/3898 |
| 4546 |
Thanks to Mikko Kortelainen for the patch. |
| 4547 |
- 2019-11-27: testbench: improve mysql testing support |
| 4548 |
tests can now run in parallel and are hardened against several glitches |
| 4549 |
- 2019-11-22: omhttp: add basic support for Loki Rest |
| 4550 |
Loki is a new message indexer and querier from Grafana Labs. See |
| 4551 |
https://github.com/grafana/loki for details on Loki. |
| 4552 |
This change provides the initial message structure to send bulk message |
| 4553 |
payloads to the Loki Rest endpoint. omhttp, received a new bulk message |
| 4554 |
format called lokirest. Additionally, the plugin relies on the user to |
| 4555 |
provide the correct "stream" read message format. |
| 4556 |
A loki template must be json compatible and include a "stream" key of |
| 4557 |
key value tags, and a values key of an array of 2 element arrays, where |
| 4558 |
each 2 element array is the unix epoch in nanoseconds followed by an |
| 4559 |
unstructured message. |
| 4560 |
An example: |
| 4561 |
template(name="array_loki" type="string" string="{\"stream\":{\"host\":\"%HOSTNAME%\",\"facility\":\"%syslogfacility-text%\",\"priority\":\"%syslogpriority-text%\",\"syslogtag\":\"%syslogtag%\"},\"values\": [[ \"%timegenerated:::date-unixtimestamp%000000000\", \"%msg%\" ]]}") |
| 4562 |
- 2019-11-22: testbench: obtain python binary path via AM_PATH_PYTHON |
| 4563 |
see also https://github.com/rsyslog/rsyslog/issues/3853 |
| 4564 |
- 2019-11-22: omprog: detect violation of interface protocol |
| 4565 |
The spec for the omprog interaction with the program it calls specifies |
| 4566 |
that the program receives one message via one line. In other words: |
| 4567 |
it must be a string terminated by LF. |
| 4568 |
However, omprog does currently rely on a proper template to fulfill this |
| 4569 |
requirement, If the template does not provide for the LF, it is never |
| 4570 |
written. For the called program, this looks like it does not receive any |
| 4571 |
input at all. Even if it finally reads data (e.g. due to full buffer), |
| 4572 |
it will not properly be able to discern the messages. |
| 4573 |
This handling is improved with this commit. |
| 4574 |
We cannot just check the template, because at the end of the template |
| 4575 |
may by a non-constant value. As such, we do not know at config load |
| 4576 |
time if there is this problem or not. |
| 4577 |
So the correct approach is to, during runtime, check if each message |
| 4578 |
is properly terminated. For those that are not: |
| 4579 |
* we append a LF, because anything else makes matters worse |
| 4580 |
* log a warning message, at least for a sample of the messages |
| 4581 |
The warning is useful in the (expected most often) case that the template |
| 4582 |
is simply missing the LF. While appending works, it slows down processing. |
| 4583 |
As such the user should be given a chance to correct the config bug. |
| 4584 |
To avoid clutter, the warning is emitted at most once every 30 seconds. |
| 4585 |
This value is hardcoded as we do not envision a need to adjust it. Usually |
| 4586 |
users should quickly fix the template. |
| 4587 |
closes https://github.com/rsyslog/rsyslog/issues/3975 |
| 4588 |
- 2019-11-19: core queue: emit warning if parameters are set for direct queue |
| 4589 |
Direct queues do not apply queue parameters because they are actually |
| 4590 |
no physical queue. As such, any parameter set is ignored. This can |
| 4591 |
lead to unintentional results. |
| 4592 |
The new code detects this case and warns the user. |
| 4593 |
closes https://github.com/rsyslog/rsyslog/issues/77 |
| 4594 |
- 2019-11-19: imjournal bugfix: do not wait too long on recovery try |
| 4595 |
When trying to recover journal errors, imjournal waited a hardcoded |
| 4596 |
period of 10s between tries. This was pretty long and could lead to |
| 4597 |
loss of journal data. |
| 4598 |
This commit adjust it to 100ms, which should still be fully sufficient |
| 4599 |
to prevent the journal from "hammering" the CPU. |
| 4600 |
It may be worth considering to make this setting configurable - but |
| 4601 |
let's first see if there is real demand to actually do that. |
| 4602 |
closes https://github.com/rsyslog/rsyslog/issues/3969 |
| 4603 |
- 2019-11-19: mmutf8fix: enhance handling of incorrect UTF-8 sequences |
| 4604 |
1. Invalid utf8 detection didn't handle 3 and 4-byte overlong encodings (2 |
| 4605 |
byte overlong encodings were handled explicitly by rejection E0 and E1 |
| 4606 |
start bytes). Unified checks for overlong encodings. |
| 4607 |
2. Surrogates U+D800..U+DFFF are not valid codepoints (Unicode Standard, D92) |
| 4608 |
3. Replacement of characters in invalid 3 or 4-bytes encodings was too |
| 4609 |
eager. It must not replace bytes which are valid UTF-8 sequences. For |
| 4610 |
example, in [0xE0 0xC2 0xA7] sequence the 0xC2 is invalid as a continuation |
| 4611 |
byte, but it starts a valid UTF8 symbol [0xC2 0xA7]. That is, with current |
| 4612 |
code processing the sequence will result in "???" but the correct result is "?§" |
| 4613 |
(provided that the replacement character is "?"). |
| 4614 |
4. Various tests for UTF-8 invalid/valid sequences. |
| 4615 |
Thanks to Sergei Turchanov for the patch. |
| 4616 |
- 2019-11-14: imfile: add new input parameter escapeLF.replacement |
| 4617 |
The new parameter permits to specify a replacement to be configured |
| 4618 |
when "escapeLF" is set to "on". Previously, a fixed replacement string |
| 4619 |
was used ("#012"/"\n") depending on circumstances. If the parameter is |
| 4620 |
set to an empty string, the LF is simply discarded. |
| 4621 |
closes https://github.com/rsyslog/rsyslog/issues/3889 |
| 4622 |
---------------------------------------------------------------------------------------- |
| 4623 |
Scheduled Release 8.1911.0 (aka 2019.11) 2019-11-12 |
| 4624 |
- 2019-11-12: core queue: add config param "queue.takeFlowCtlFromMsg" |
| 4625 |
This is a fine-tuning option which permits to control whether or not |
| 4626 |
rsyslog shall alays take the flow control setting from the message. If |
| 4627 |
so, non-primary queues may also block when reaching high water mark. |
| 4628 |
This permits to add some synchronous processing to rsyslog core engine. |
| 4629 |
However, it is dangerous, as improper use may make the core engine |
| 4630 |
stall. As such, enabling this option requires very careful planning |
| 4631 |
of the rsyslog configuration and deep understanding of the consequences. |
| 4632 |
Note that the option is applied to individual queues, so a configuration |
| 4633 |
with a large number of queues can (and must if use) be fine-tuned to |
| 4634 |
the exact use case. |
| 4635 |
The rsyslog team strongly recommends to let the option turned off, |
| 4636 |
which is the default setting. |
| 4637 |
see also https://github.com/rsyslog/rsyslog/issues/3941 |
| 4638 |
- 2019-11-12: imrelp: add new config parameter "flowcontrol" |
| 4639 |
This permits to fine-tune the flowControl parameter. Possible values are |
| 4640 |
"no", "light", and "full". With light being the default and previously |
| 4641 |
only value. |
| 4642 |
Changing the flow control setting may be useful for some rare applications, |
| 4643 |
but be sure to know exactly what you are doing when changing this setting. |
| 4644 |
Most importantly, whole rsyslog may block and become unresponsive if you |
| 4645 |
change flowcontrol to "full". While this may be a desired effect when |
| 4646 |
intentionally trying to make it most unlikely that rsyslog needs to |
| 4647 |
lose/discard messages, usually this is not what you want. |
| 4648 |
see also https://github.com/rsyslog/rsyslog/issues/3941 |
| 4649 |
- 2019-11-11: imrelp: remove unsafe debug instrumentation |
| 4650 |
dbgprintf, which is not signal safe, was called from a signal handler |
| 4651 |
to get better understanding during debugging. While this usually works, |
| 4652 |
it can occasionally (5%) lead to a hang during shutdown. We have now |
| 4653 |
removed that debug info as it is no longer vital. |
| 4654 |
Note: this could only happen during debug runs. Production mode was |
| 4655 |
not affected. As such, this fix is only relevant to developers. |
| 4656 |
However, it caused some confusion in the following issue tracker. |
| 4657 |
see also https://github.com/rsyslog/rsyslog/issues/3941 |
| 4658 |
- 2019-11-06: ossl driver bugfix: fix wrong OpenSSL Version check |
| 4659 |
Fix OpenSSL Version check in: |
| 4660 |
- SetGnutlsPriorityString function in nsd_ossl.c |
| 4661 |
- initTLS() function tcpflood.c |
| 4662 |
See https://www.openssl.org/docs/man1.1.0/man3/OPENSSL_VERSION_NUMBER.html |
| 4663 |
for more. |
| 4664 |
This bug lead to not enabling some functionality correctly. |
| 4665 |
Removed "MinProtocol=TLSv1.1" from two testcases because MinProtocol |
| 4666 |
is only supported by OpenSSl 1.1.0 or higher and was not really |
| 4667 |
necessary for the testcases. |
| 4668 |
closes https://github.com/rsyslog/rsyslog/issues/3939 |
| 4669 |
- 2019-11-05: mmdarwin: Optimizations, new parameters, update to protocol header |
| 4670 |
- use permanent worker-dependent buffers to avoid malloc/free for each entry |
| 4671 |
- move socket structures to worker data, remove global mutex |
| 4672 |
- add log lines for parameters and general workflow |
| 4673 |
- don't send body if empty/incomplete (see new parameters) |
| 4674 |
- don't close/reopen socket every time -> let session open or create new every X |
| 4675 |
entry (see new parameters) |
| 4676 |
- clean up code |
| 4677 |
- added 'send_partial', to let mmdarwin send body if not all fields were |
| 4678 |
retrieved, or not; default false = only send complete bodies |
| 4679 |
- added 'socket_max_use' to open new session every X packet, useful for |
| 4680 |
some versions of Darwin (prior to 1.1) |
| 4681 |
default is 0 = do not open new session/keep only one |
| 4682 |
- added 'evt_id' to the darwin header (Darwin v1+ compatibility) |
| 4683 |
Note: mmdarwin is a contributed module |
| 4684 |
Thanks to github user frikilax for the patch. |
| 4685 |
- 2019-11-01: mmkubernetes bugfix: improper use of realloc() |
| 4686 |
could cause problems under extreme memory shortage - very unlikely |
| 4687 |
credits to LGTM.COM for detecting this |
| 4688 |
- 2019-10-31: imjournal: set the journal data threshold to MaxMessageSize |
| 4689 |
When data is read from the journal using sd_journal_get_data it may be |
| 4690 |
truncated to a certain threshold (64K by default). |
| 4691 |
If the rsyslog MaxMessageSize is larger than the threshold, there is a |
| 4692 |
chance rsyslog will receive incomplete messages from the journal. |
| 4693 |
Empirically, this appears to happen reliably when XZ compression is |
| 4694 |
used by journald. Systems where journald uses LZ4 compression do not |
| 4695 |
appear to suffer this issue reliably--if at all. |
| 4696 |
This change sets the threshold to the MaxMessageSize when the |
| 4697 |
journal is opened. |
| 4698 |
Thanks to Robert Winslow Dalpe for the patch. |
| 4699 |
- 2019-10-30: improg bugfix: allow improg to handle multi-line inputs |
| 4700 |
miscellaneous bug fixes in improg: |
| 4701 |
* properly truncate string after an input event is submitted |
| 4702 |
* set msgoffset to 0. |
| 4703 |
* tests added to check above fixes |
| 4704 |
Thanks to Nelson Yen for the fix. |
| 4705 |
- 2019-10-30: mmdblookup bugfix: missing space in city name |
| 4706 |
This fixes the issue that spaces in city names are dropped. However, the |
| 4707 |
fix is more or less a work-around. As it turns out, the libmaxminddb API |
| 4708 |
is not correctly used. In the somewhat longer term, we should fix this. |
| 4709 |
see also https://github.com/maxmind/libmaxminddb/issues/218 |
| 4710 |
closes https://github.com/rsyslog/rsyslog/issues/1650 |
| 4711 |
- 2019-10-30: core/queue: provide ability to run diskqueue on multiple threads |
| 4712 |
Up until this release, disk queues could only use a single thread, |
| 4713 |
what limited their performance with outputs like ElasticSearch. |
| 4714 |
Now disk queues can utilize multiple threads just like any other |
| 4715 |
queue type. Most importantly, the disk queue part of a DA queue |
| 4716 |
now inherits the max number of threads from its memory queue |
| 4717 |
counterpart. |
| 4718 |
NOTE: the new multi-threaded DA disk queue is actually a change of |
| 4719 |
behavior. We have not guarded it by a new config switch as we |
| 4720 |
assume the new behavior is most often exactly within user |
| 4721 |
expectations. In any case, we cannot see any harm from running |
| 4722 |
the disk queue on multiple threads. |
| 4723 |
see also https://github.com/rsyslog/rsyslog/issues/3543 |
| 4724 |
closes https://github.com/rsyslog/rsyslog/issues/3833 |
| 4725 |
- 2019-10-25: omfile bugfix: file handle leak |
| 4726 |
The stream class does not close re-opened file descriptors. |
| 4727 |
This lead to leaking file handles and ultimately to the inability |
| 4728 |
to open any files/sockets/etc as rsyslog ran out of handles. |
| 4729 |
The bug was depending on timing. This involved different OS |
| 4730 |
thread scheduler timing as well as workload. The bug was more |
| 4731 |
common under the following conditions: |
| 4732 |
- async writing of files |
| 4733 |
- dynafiles |
| 4734 |
- not committing file data at end of transaction |
| 4735 |
However it could be triggered under other conditions as well. |
| 4736 |
The refactoring done in 8.1908 increased the likelihood of |
| 4737 |
experiencing this bug. But it was not a real regression, the new |
| 4738 |
code was valid, but changed the timing so that the race was more |
| 4739 |
likely. |
| 4740 |
Thanks to Michael Biebl for reporting this bug and helping to |
| 4741 |
analyze it. |
| 4742 |
closes https://github.com/rsyslog/rsyslog/issues/3885 |
| 4743 |
- 2019-10-22: imfile bugfix: improper use of calloc() |
| 4744 |
could cause problems under extreme memory shortage - very unlikely |
| 4745 |
credits to LGTM.COM for detecting this |
| 4746 |
- 2019-10-22: TLS driver bugfix: improper use of calloc() |
| 4747 |
can cause problems under extreme memory shortage - very unlikely |
| 4748 |
credits to LGTM.COM for detecting this |
| 4749 |
- 2019-10-22: imuxsock bugfix: improper use of calloc() |
| 4750 |
can cause problems under extreme memory shortage - very unlikely |
| 4751 |
credits to LGTM.COM for detecting this |
| 4752 |
- 2019-10-17: build system bugfix: incorrect default in ./configure help text |
| 4753 |
closes https://github.com/rsyslog/rsyslog/issues/3904 |
| 4754 |
Thanks to Michael Biebl for pointing this out. |
| 4755 |
- 2019-10-17: mmkubernetes bugfix: improper use of calloc() |
| 4756 |
can cause problems under extreme memory shortage - very unlikely |
| 4757 |
credits to LGTM.COM for detecting this |
| 4758 |
- 2019-10-16: core queue bugfix: propagate batch size to DA queue |
| 4759 |
This was a long-standing bug where the DA queue always had a fixed small batch |
| 4760 |
size because the setting was not propagated from the memory queue. This also |
| 4761 |
removes a needless and counter-productive "debug aid" which seemed to be in |
| 4762 |
the code for quite some while. It did not cause harm because of the batch |
| 4763 |
size issue. |
| 4764 |
- 2019-10-16: testbench: fix unreliable gzipwrite test |
| 4765 |
The test was timing-sensitive as we did not properly check all data |
| 4766 |
was output to the output file - we just relied on sleep periods. |
| 4767 |
This has been changed. Also, we made some changes to the testing |
| 4768 |
framework to fully support sequence checking of multiple ZIP files. |
| 4769 |
- 2019-10-16: core queue bugfix: handle multi-queue-file delete correctly |
| 4770 |
Rsyslog may leave some dangling disk queue files under the following |
| 4771 |
conditions: |
| 4772 |
- batch sizes and/or messages are large |
| 4773 |
- queue files are comparatively small |
| 4774 |
- a batch spans more than two queue files (from n to n+m with m>1) |
| 4775 |
In this case, queue files n+1 to (n+m-1) are not deleted. This can |
| 4776 |
lead to problems when the queue is re-opened again. In extreme cases |
| 4777 |
this can also lead to stalled processing when the max disk space is |
| 4778 |
used up by such left-over queue files. |
| 4779 |
Using defaults this scenario is very unlikely, but it can happen, |
| 4780 |
especially when large messages are being processed. |
| 4781 |
- 2019-10-16: imjournal: fix regression from yesterday's patch |
| 4782 |
commit 78976a9bc059 introduced a regression that caused writing |
| 4783 |
the journal state file to fail. This happens when the state file |
| 4784 |
is given as relative file name and the working directory is also |
| 4785 |
a relative path. This situation is very uncommon. So most deployments |
| 4786 |
will never experience it. We discovered the issue during CI runs |
| 4787 |
where the trigger condition is given. Note that it also takes |
| 4788 |
multiple times of loading the journal to actually see the bug. |
| 4789 |
see also https://github.com/rsyslog/rsyslog/pull/3878 |
| 4790 |
- 2019-10-15: imjournal plugin code restructuring, added remote option |
| 4791 |
Decomposed ReadJournal() a bit, also now coupling journald |
| 4792 |
variables in one struct, added few warning messages and debug |
| 4793 |
prints to help with bug hunts in future, also got rid of two |
| 4794 |
needless journald calls. WorkAroundJournalBug now deprecated. |
| 4795 |
Added option to pull journald records from outside local machine. |
| 4796 |
Thanks to Jiri Vymazal for the patch. |
| 4797 |
- 2019-10-11: core bugfix: potential abort on very long action name |
| 4798 |
The action name is stored in modified form for the debug header and |
| 4799 |
some messages. If it is extremely long, a buffer can be overrun, |
| 4800 |
resulting in misaddressing and potential segfault for rsyslog. This |
| 4801 |
can also happen if the action is NOT named, but a custom path to |
| 4802 |
the output module is given and that path is very long. This triggers |
| 4803 |
the same issue because by default the module load path is included |
| 4804 |
in the action name. |
| 4805 |
This patch corrects the problem and truncates overly long names |
| 4806 |
when being used for name generation. |
| 4807 |
The problem was detected during testbench work. We did never receive |
| 4808 |
a bug report from practice. |
| 4809 |
- 2019-10-10: testbench: add test for mmpstrucdata with RFC5424 escape sequences |
| 4810 |
---------------------------------------------------------------------------------------- |
| 4811 |
Scheduled Release 8.1910.0 (aka 2019.10) 2019-10-01 |
| 4812 |
- 2019-10-01: core bugfix: incorrect error message on duplicate module load |
| 4813 |
A Null-pointer was passed to printf instead of the module name. |
| 4814 |
On some platforms this may lead to a segfault. On most platforms |
| 4815 |
printf check's for NULL pointers and uses the string "(null)" |
| 4816 |
instead. In any case, the module name is missing from the error message. |
| 4817 |
- 2019-10-01: imczmq nitfix: potential NULL ptr in printf on out-of-memory condition |
| 4818 |
very unlikely to happen but if it does without any real issue on most platforms. |
| 4819 |
- 2019-10-01: work around some compiler warning messages induced by pthreads API |
| 4820 |
- 2019-10-01: core ratelimiting: more verbose message when rate-limiting happens |
| 4821 |
When messages are rate-limited, the error message now also contains the |
| 4822 |
rate limiter setting. This enables the user to more quickly understand what |
| 4823 |
the problem is (especially if default values apply). |
| 4824 |
Thanks to Jiri Vymazal for the patch. |
| 4825 |
- 2019-10-01: openssl TLS driver: do not emit unnecessary error message |
| 4826 |
On older openssl versions, an API was missing to set user-defined parameters. If we |
| 4827 |
had such an older version, rsyslog emitted an error message even if the user did |
| 4828 |
not configure such parameters. This has been corrected, so that a message is only |
| 4829 |
emitted if there really is a problem. Based on user feedback the severity has also |
| 4830 |
been downgraded to "warning". |
| 4831 |
- 2019-10-01: pmcisconames (contributed module) bugfix: potential misaddressing |
| 4832 |
- 2019-09-30: pmaixforwardedfrom (contributed module) bugfix: potential misaddressing |
| 4833 |
- 2019-09-30: pmdb2diag (contributed module) bugfix: Out of bounds issue |
| 4834 |
Add a new sanity check after determining the level len. |
| 4835 |
Thanks to Philippe Duveau for the patch. |
| 4836 |
see also: https://nvd.nist.gov/vuln/detail/CVE-2019-17040 |
| 4837 |
- 2019-09-02: ability to set stricter TLS operation modes |
| 4838 |
- checking of extendedKeyUsage certificate field |
| 4839 |
- stricter checking of certificate name/addresses |
| 4840 |
Thanks to Jiri Vymazal for the patch. |
| 4841 |
- 2019-08-21: testbench: add basic test for immark |
| 4842 |
- 2019-08-20: core: do not unnecessarily set hostname on each HUP |
| 4843 |
- 2019-08-20: build system: support cross-platform build for mysql/mariadb |
| 4844 |
rsyslog fails to cross build from source, because it uses mysql_config |
| 4845 |
and mysql_config is unfixably broken for cross compilation. It would be |
| 4846 |
better to use pkg-config. The attached patch makes rsyslog try |
| 4847 |
pkg-config first and fall back to mysql_config. |
| 4848 |
Thanks to Helmut Grohne for providing a base patch. |
| 4849 |
- 2019-08-20: core/tcpsrv: potential race on startup/shutdown |
| 4850 |
if the tcpsrv component is started and quickly terminated, it may hang |
| 4851 |
for a short period of time. Also a very small amount of memory is leaked |
| 4852 |
immediately before shutdown. While this leak is irrelevant in practice |
| 4853 |
(the OS clean up the process anyways), it leads to CI failures. The hang, |
| 4854 |
however, can lead to longer than expected shutdown times for rsyslog. |
| 4855 |
The problem can be experienced via imtcp, imgssapi and imdiag (users |
| 4856 |
of affected core component). |
| 4857 |
---------------------------------------------------------------------------------------- |
| 4858 |
Scheduled Release 8.1908.0 (aka 2019.08) 2019-08-20 |
| 4859 |
- 2019-08-19: testbench: add test for $allowedSender functionality |
| 4860 |
- 2019-08-19: testbench: harden some tests against very slow CI machines |
| 4861 |
- 2019-08-16: testbench: make most tests use a port file and assign listen port 0 |
| 4862 |
This makes the test much more robust against heavily loaded test systems. |
| 4863 |
- 2019-08-16: core/action: guard action.externalstate.file content against whitespace |
| 4864 |
remove trailing whitespace before checking the status string. This is |
| 4865 |
most important as a line usually ends with \n, which is considered |
| 4866 |
trailing whitespace. Accepting this increases usability. |
| 4867 |
- 2019-08-16: imtcp bugfix: multiple listenerPortFile parameter did not work |
| 4868 |
... because they were treated as module-global. If we had multiple imtcp |
| 4869 |
listeners with multiple port files, only the last filename was always used. |
| 4870 |
closes https://github.com/rsyslog/rsyslog/issues/3817 |
| 4871 |
- 2019-08-16: testbench: improve testbench plumbing for gzip and fail cases |
| 4872 |
We have added new capabilities to the testbench plumbing to automatically |
| 4873 |
deal with gzip-compressed files. This also permits to use the wait_seq_check |
| 4874 |
function to work for gzip tests as well. The known-timing-sensitive |
| 4875 |
gzipwr_large test now makes use of the new capabilities. This enables us |
| 4876 |
to more reliably detect when we can savely shutdown the tested instance. |
| 4877 |
This commit also adds an ability to "abort" the full testbench run on |
| 4878 |
first test failure. This is especially useful during CI. |
| 4879 |
- 2019-08-13: testbench: add test for imuxsock legacy format |
| 4880 |
This was never tested. Ensures we don't accidentally break existing |
| 4881 |
configurations. |
| 4882 |
- 2019-08-13: omelasticsearch bugfix: segfault on unknown retryRuleset |
| 4883 |
omelasticsearch does some "interesting tricks" for an output module. |
| 4884 |
This causes a segfault if the retryRuleset is now known. |
| 4885 |
The action module interface currently expects that all config errors |
| 4886 |
be detected during instance creation. Instead omelasticsearch defers |
| 4887 |
the retry ruleset check to a later state. The reason is that it wants |
| 4888 |
to support the use the same rulesetname it is defined in - and this |
| 4889 |
is not yet available at action parsing. |
| 4890 |
We fix this by ensuring that any deleted instance is properly unlinked |
| 4891 |
from the instance list. One may argue the module interface should get |
| 4892 |
upgrade for such cases, but this is a longer-term approach. |
| 4893 |
closes https://github.com/rsyslog/rsyslog/pull/3796 |
| 4894 |
- 2019-08-12: imptcp bugfix: port="0" parameter did not work as expected |
| 4895 |
when multiple interfaces and/or protocols could be bound, each of |
| 4896 |
them used a different listener ports were assigned. While this is |
| 4897 |
basically correct, it makes things unusable, especially as |
| 4898 |
listenPortFileName will only contain the port number used for |
| 4899 |
the latest listener. |
| 4900 |
This patch now follows the model of nsd_ptcp.c to assign only |
| 4901 |
the first port randomly and then use that port consistently. |
| 4902 |
- 2019-08-10: omelasticsearch bugfix: potential resource leak with "rebindinterval" |
| 4903 |
If the "rebindInterval" parameter was used connections could be linked. This |
| 4904 |
was especially the case with small intervals (such as "2"). This is fixed by |
| 4905 |
forcing libcurl to close the connection on rebind. |
| 4906 |
Thanks to Noriko Hosoi for providing the patch. |
| 4907 |
- 2019-08-10: imjournal bugfix: state file close with fsync() was incorrect |
| 4908 |
This lead to fsync() now always applied where expected. |
| 4909 |
Thanks to Jiri Vymazal for the patch. |
| 4910 |
- 2019-08-10: testbench: add addtl test for multithreading and HUP |
| 4911 |
- 2019-08-10: imptcp bugfix: received bytes counter improperly maintained |
| 4912 |
imptcp counts the number of bytes received. However, receives |
| 4913 |
happen on different worker thread. The access to the counter |
| 4914 |
was not synchronized, which can cause loss of updates. Also, |
| 4915 |
thread debuggers validly flag this as an error, which creates |
| 4916 |
problems under CI. |
| 4917 |
This commit fixes the situation via atomic operations and |
| 4918 |
falls back to mutex calls if they are not available. |
| 4919 |
Detected by LLVM thread sanitizer. |
| 4920 |
closes https://github.com/rsyslog/rsyslog/issues/3798 |
| 4921 |
- 2019-08-07: testbench: add basic tests for omusrmsg |
| 4922 |
- 2019-08-05: omhttp bugfix: enable checkpath configuration parameter |
| 4923 |
omhttp, 'checkpath' option, was not configurable in the past. |
| 4924 |
- add 'checkpath' to the cnfparamdescr table. |
| 4925 |
- fix issue with checkpath passing extra garbage characters in string. |
| 4926 |
- add 'checkpath' into unit test - omhttp-retry.sh |
| 4927 |
Thanks to Nelson Yen for the fix. |
| 4928 |
- 2019-08-05: testbench bugfix: some tests were executed when req module was missing |
| 4929 |
In actual case if --enable-impstats was not given some other tests failed. |
| 4930 |
- 2019-08-03: iminternal bugfix: race on termination |
| 4931 |
This could in theory lead to loss of shutdown messages, but was mostly a |
| 4932 |
cosmetic issues. We primarily fixed it to get TSAN-clean so that we can |
| 4933 |
utilize LLVM TSAN in CI. |
| 4934 |
- 2019-08-02: testbench: new test for omfile outchannel functionality |
| 4935 |
- 2019-08-02: core/janitor bugfix: properly maintain dynafile cache |
| 4936 |
When the janitor cleans out timed-out files, it does not |
| 4937 |
properly indicate the entry is gone. Especially when running |
| 4938 |
in async mode this can lead to use-after-free and thus |
| 4939 |
memory corruption or segfault. |
| 4940 |
see also https://github.com/rsyslog/rsyslog/issues/3756 |
| 4941 |
- 2019-08-01: omfile bugfix: race file when async writing is enabled |
| 4942 |
This seems to be a long-standing bug, introduced around 7 years ago. |
| 4943 |
It became more visible by properly closing files during HUP, which |
| 4944 |
was done in 8.1905.0 (and was another bugfix). Note that due to this |
| 4945 |
race a memory corruption can occur under bad circumstances. As such, |
| 4946 |
this may have also caused segfaults or system hangs (mutexes could |
| 4947 |
have been affected). |
| 4948 |
closes https://github.com/rsyslog/rsyslog/issues/3772 |
| 4949 |
- 2019-08-01: testbench: additional tests for HUP |
| 4950 |
- 2019-07-31: imrelp bugfix: hang after HUP |
| 4951 |
termination condition was not properly checked; this lead to |
| 4952 |
premature termination after patch 1c8712415b9 was applied. |
| 4953 |
It is open to debate if patch 1c8712415b9 changed the module |
| 4954 |
interface. Actually it looks like this was previously not |
| 4955 |
well thought out. |
| 4956 |
closes https://github.com/rsyslog/rsyslog/issues/3760 |
| 4957 |
- 2019-07-24: mmdarwin: add new module |
| 4958 |
This is a contributed module. For details see doc. |
| 4959 |
Thanks to the Advens team for contributing it. |
| 4960 |
- 2019-07-23 iminternal bugfix: suppress mutex double-unlock |
| 4961 |
If there is a burst of log messages during a time when rsyslog is unable |
| 4962 |
to output (either during log rotation, an out-of-space condition, or |
| 4963 |
some other similar condition), rsyslog can SEGFAULT due to a mutex |
| 4964 |
double-unlock. |
| 4965 |
- 2019-07-23 imtcp: enable listenPortFileName parameter |
| 4966 |
this parameter was added, but it had no effect as it was not |
| 4967 |
passed down to the driver layer. This has been fixed. That also |
| 4968 |
now enables us to use dynamically-assigned port, which are |
| 4969 |
very useful for further testbench stabilization. Quite some |
| 4970 |
false positives occurred because the pre-selected port was |
| 4971 |
already in use again when rsyslog started. |
| 4972 |
- 2019-07-19 imtcp: enable listenPortFileName parameter |
| 4973 |
this parameter was added, but it had no effect as it was not |
| 4974 |
passed down to the driver layer. This has been fixed. That also |
| 4975 |
now enables us to use dynamically-assigned port, which are |
| 4976 |
very useful for further testbench stabilization. Quite some |
| 4977 |
false positives occurred because the pre-selected port was |
| 4978 |
already in use again when rsyslog started. |
| 4979 |
- 2019-07-18 core/action: no error file written if act suspended on TX commit |
| 4980 |
when an action was already disabled while the action was tried to be |
| 4981 |
committed, no error file was written. Note that this state is highly |
| 4982 |
unlikely to happen. Most probably, it can only happen if parameter |
| 4983 |
action.externalstate.file is used. |
| 4984 |
---------------------------------------------------------------------------------------- |
| 4985 |
Version 8.1907.0 (aka 2019.07) 2019-07-09 |
| 4986 |
NOTE TO MAINTAINERS: libee is not used by rsyslog for quite some while. |
| 4987 |
However, we never included this info into the changelog. So if you still |
| 4988 |
make rsyslog depend on libee (some do this), you should stop doing so now. |
| 4989 |
Libee is dead and no longer been maintained nor hosted by us. Old versions |
| 4990 |
can still be found at github for those in need. |
| 4991 |
|
| 4992 |
GENERAL NOTE: during 8.1907 scheduled release timeframe we changed the ChangeLog |
| 4993 |
format to include the date a change went into master branch. This is to provide |
| 4994 |
an easy way to identify which changes went into the respective daily stable. |
| 4995 |
|
| 4996 |
- 2019-07-05 imuxsock: support FreeBSD 12 out of the box |
| 4997 |
FreeBSD 12 uses RFC5424 on the system log socket by default. This |
| 4998 |
format is not supported by the special parser used in imuxsock. |
| 4999 |
Thus for FreeBSD the default needs to be changed to use the |
| 5000 |
regular parser chain by default. That is all this commit does. |
| 5001 |
closes https://github.com/rsyslog/rsyslog/issues/3694 |
| 5002 |
- 2019-07-05 function bugfix: "ipv42num" misspelled as "ip42mum" (without "v") |
| 5003 |
To fix the issue but keep compatible with existing deployments |
| 5004 |
both function names are now supported. |
| 5005 |
closes https://github.com/rsyslog/rsyslog/issues/3676 |
| 5006 |
- 2019-07-04 fix leading double space in rsyslog startup messages |
| 5007 |
see also https://github.com/rsyslog/rsyslog/issues/2979 |
| 5008 |
- omamqp1: port to latest api, add tests |
| 5009 |
This brings omamqp1 up-to-date with the latest qpid-proton-c |
| 5010 |
api version. This also adds a test for the plugin, to test |
| 5011 |
the basic functionality. The test requires the user to |
| 5012 |
install qdrouterd and the python qpid-proton library in order |
| 5013 |
to use the simple_recv.py test program. |
| 5014 |
Thanks to Richard Megginson for the patch. |
| 5015 |
- omclickhouse bugfix: potential segfault on omclickhouse batchmode |
| 5016 |
segfault happened when the template did not contain the string |
| 5017 |
"VALUES". |
| 5018 |
Thanks to github user wdjwxh for the fix. |
| 5019 |
- core bugfix: message duplication copied incorrect timestamp |
| 5020 |
MsgDup() placed timereported into timegenerated property, resulting |
| 5021 |
in invalid property values. Original timegenerated was lost. This |
| 5022 |
occurred always when a message needed to be duplicated. Most |
| 5023 |
importantly this is the case when queues are used. |
| 5024 |
closes https://github.com/rsyslog/rsyslog/issues/3716 |
| 5025 |
- core bugfix: segfault on startup depending on queue file names |
| 5026 |
rsyslog will segfault on startup when a main queue file name has |
| 5027 |
been set and at least on other queue contains a file name. This |
| 5028 |
was cased by too-early freeing config error-detection data |
| 5029 |
structures. It is a regression caused by commit e22fb205a3. |
| 5030 |
Thanks to Wade Simmons for reporting this issue and providing |
| 5031 |
detailed analysis. That greatly helps fixing it quickly. |
| 5032 |
closes https://github.com/rsyslog/rsyslog/issues/3681 |
| 5033 |
- core "bugfix": alignment issue |
| 5034 |
This was not a hard error on current platforms, but a |
| 5035 |
to-be-considered compiler warning regarding invalid alignment. |
| 5036 |
While it works well on current platforms, alignment issues may |
| 5037 |
turn into real issues in future platforms. So we try to fix them |
| 5038 |
if possible. As not only a side-effect this resolves compiler |
| 5039 |
warnings even on current platforms. |
| 5040 |
This fix has some regression potential. If so, the problems |
| 5041 |
may occur during IP address resolution. |
| 5042 |
see also https://github.com/rsyslog/rsyslog/issues/2608 |
| 5043 |
- omfile bugfix: potential hang/segfault on HUP of dynafile action |
| 5044 |
when omfile was HUPed it did not sufficiently clear all dynafile |
| 5045 |
cache maintenance data structures. This usually lead to misaddressing |
| 5046 |
and could result in various issues, including a hang of rsyslog |
| 5047 |
processing or segfaults. It could also have "no effect" by pure |
| 5048 |
luck of not hitting anything important. This actually seems to |
| 5049 |
have been the most frequent case. |
| 5050 |
This seems to be a long-standing bug, but the likelihood of its |
| 5051 |
appearance seems to have been increased by commit 62fbef7 |
| 5052 |
introduced in 8.1905. Note: the commit itself has no regression, |
| 5053 |
just increases the likelihood to trigger the pre-existing bug. |
| 5054 |
special thanks to Alexandre Guédon for his help in analyzing |
| 5055 |
the issue - without him, we would probably still not know |
| 5056 |
what actually went wrong. |
| 5057 |
closes https://github.com/rsyslog/rsyslog/issues/3686 |
| 5058 |
- imjournal bugfix: potential message duplication |
| 5059 |
When journal was preloaded from previously saved cursor it was not advanced |
| 5060 |
to next entry so reading begun from last message which was therefore |
| 5061 |
duplicated. |
| 5062 |
Thanks to Jiri Vymazal for the patch. |
| 5063 |
- rfc5424 parser bugfix: leading space sometimes lost |
| 5064 |
if structured data is present a leading space in MSG field is lost |
| 5065 |
- queue subsystem bugfix: oversize queue warning message shown as error |
| 5066 |
The warning message was emitted as an error message, which is misleading |
| 5067 |
and may also break some automated procedures. |
| 5068 |
- core bugfix: HUP did not work reliable on all platforms |
| 5069 |
most notably not on FreeBSD, maybe others. The reason was obviously |
| 5070 |
different handling of signals in respect to multiple threads. |
| 5071 |
- build system bugfix: missing files in distribution tarball |
| 5072 |
- testbench |
| 5073 |
* fixed "make distcheck" settings which were missing some modules |
| 5074 |
This lead to incomplete "make distcheck" run; some errors were not |
| 5075 |
detected due to that. |
| 5076 |
* testbench framework: use ip tool instead of outdated ifconfig |
| 5077 |
The framework now first checks if "ip" is available and falls back |
| 5078 |
to "ifconfig" only if this is not the case. |
| 5079 |
Thanks to Michael Biebl for the suggestion. |
| 5080 |
closes https://github.com/rsyslog/rsyslog/issues/3682 |
| 5081 |
------------------------------------------------------------------------------ |
| 5082 |
Version 8.1905.0 (aka 2019.05) 2019-05-28 |
| 5083 |
- templates: add datatype template option for JSON generation |
| 5084 |
The new "datatype" and "onEmpty" template options permits to |
| 5085 |
generate non-string data rather easily. It works together with |
| 5086 |
jsonf formatting, which is what people should use nowadays. |
| 5087 |
closes https://github.com/rsyslog/rsyslog/issues/2827 |
| 5088 |
- config processing: check disk queue file is unique |
| 5089 |
If the same name is specified for multiple queues, the queue files |
| 5090 |
will become corrupted. This commit adds a check during config parsing. |
| 5091 |
If duplicate names are detected the config parser errors out and the |
| 5092 |
related object is not created. |
| 5093 |
Note: this may look to a change-of-behavior to some users. However, |
| 5094 |
this never worked and it was pure luck that these users did not run |
| 5095 |
into big problems (e.g. DA queues were never going to disk at the |
| 5096 |
same time). So it is acceptable to error out in this hard error case. |
| 5097 |
closes https://github.com/rsyslog/rsyslog/issues/1385 |
| 5098 |
- global config: new parameters for ruleset queue defaults |
| 5099 |
specifically: |
| 5100 |
* default.ruleset.queue.timeoutshutdown |
| 5101 |
* default.ruleset.queue.timeoutactioncompletion |
| 5102 |
* default.ruleset.queue.timeoutenqueue |
| 5103 |
* default.ruleset.queue.timeoutworkerthreadshutdown |
| 5104 |
closes https://github.com/rsyslog/rsyslog/issues/3656 |
| 5105 |
- add capability to write full config file (-o cmdline option) |
| 5106 |
Introduces the capability to create an output config file that explodes |
| 5107 |
all "includes" into a single file. This provides a much better overview |
| 5108 |
of how exactly the configuration is crafted. That could often be a great |
| 5109 |
troubleshooting aid. |
| 5110 |
This commit also contains some slight not-really-related cleanup. |
| 5111 |
closes https://github.com/rsyslog/rsyslog/issues/3634 |
| 5112 |
- queue subsystem: permit to disable "light delay mark" |
| 5113 |
New semantic: if lightDelayMark is 0, it is set to the max queue |
| 5114 |
size, effectively disabling the "light delay" functionality. |
| 5115 |
Thanks to Yury Bushmelev to mentioning issues related to light |
| 5116 |
delay mark and proposing the solution (which actually is what |
| 5117 |
this commit does). |
| 5118 |
closes https://github.com/rsyslog/rsyslog/issues/1778 |
| 5119 |
- queue subsystem: provide better user status messages |
| 5120 |
The queue subsystem now provides additional information messages which |
| 5121 |
may help a regular user to maintain system health. Most importantly, |
| 5122 |
DA queues now output when they persist queue data at end of run and |
| 5123 |
when they restart the queue based on persisted data. |
| 5124 |
- core: emit a warning message for ultra-large queue size definitions |
| 5125 |
We see error reports from users who have configured excessively large queues |
| 5126 |
and receive an OOM condition or other problems. |
| 5127 |
With that patch we generate a warning message if a queue is configured very |
| 5128 |
large. "Very large" is defined to be in excess of 500000 messages. |
| 5129 |
see also https://github.com/rsyslog/rsyslog/issues/3314 |
| 5130 |
closes https://github.com/rsyslog/rsyslog/issues/3334 |
| 5131 |
- new global config parameter "internalmsg.severity" |
| 5132 |
permits to specify a severity filter for internal message. Only |
| 5133 |
messages with this severity level or more severe are logged. |
| 5134 |
Originally this was done in rsyslog.conf as usual: you can filter |
| 5135 |
rsyslog messages on severity, just like any other. But with systemd, |
| 5136 |
we now emit primarily to the journal, and this is outside of rsyslog's |
| 5137 |
rule engine and so regular filters do not apply (at least in regard |
| 5138 |
to the journal). Logging to journal is good, because finally |
| 5139 |
folks begin to see the messages (traditional distro configs discard |
| 5140 |
them, for whatever is the reason). |
| 5141 |
This commit implements a global setting for a severity-based filter |
| 5142 |
for internal messages, before submitted to journal. So it's not 100% |
| 5143 |
of what rsyslog can do, but at least some way to customize. |
| 5144 |
see also https://github.com/rsyslog/rsyslog/issues/3639 |
| 5145 |
- config processing bugfix: error messages if config.enabled="off" is used |
| 5146 |
Using config.enabled="off" could lead to error messages on |
| 5147 |
"parameter xxx not known", which were invalid. They occurred |
| 5148 |
because the config handler expected them to be used, which |
| 5149 |
was not the case due to being disabled. |
| 5150 |
This commit fixes that issue. |
| 5151 |
closes https://github.com/rsyslog/rsyslog/issues/2520 |
| 5152 |
- core portability bugfix: harden shutdown processing on FreeBSD |
| 5153 |
On FreeBSD, rsyslog does not always terminate immediately on SIGTERM. |
| 5154 |
Root cause seems to be that SIGTERM is delivered differently under |
| 5155 |
FreeBSD. This causes the main thread to not be awaken, and so it |
| 5156 |
takes until the next janitor interval to come back to life - which |
| 5157 |
can be far too long. Fixed this bug explicitly awaking the main |
| 5158 |
thread. |
| 5159 |
- imtcp bugfix: oversize message truncation causes log to be garbled |
| 5160 |
The actual problem is in the tcpserver component. However, the prime user |
| 5161 |
is imtcp and so users will likely experience this as imtcp problem. |
| 5162 |
When a too-long message is truncated, the byte after the truncation |
| 5163 |
position becomes the first byte of the next message. This will garble |
| 5164 |
the next messages and in almost all cases render it is syslog-noncompliant. |
| 5165 |
The same problem does NOT occur when the message is split. |
| 5166 |
This commit fixes the issue. It also includes a testbench fix. |
| 5167 |
Unfortunately the test for exactly this feature was not properly |
| 5168 |
crafted and so could not detect the problem. |
| 5169 |
closes https://github.com/rsyslog/rsyslog/issues/3580 |
| 5170 |
- omfile bugfix: FlushOnTXEnd does not work reliably with dynafiles |
| 5171 |
The flush was only done to the last dynafile in use at end of |
| 5172 |
transactions. Dynafiles that were also modified during the |
| 5173 |
transaction were not flushed. |
| 5174 |
Special thanks to Duy Nguyen for pointing us to the bug and |
| 5175 |
suggesting a solution. |
| 5176 |
This commit also contains a bit of cosmetic cleanup inside |
| 5177 |
the file stream class. |
| 5178 |
closes https://github.com/rsyslog/rsyslog/issues/2502 |
| 5179 |
- lmcry_gcry build bugfix: was not always properly build |
| 5180 |
Due to an invalid definition in build system this seems to have not |
| 5181 |
been correctly build on at least some platforms (but it worked on |
| 5182 |
others as it passed CI testing). This has now been corrected. |
| 5183 |
Thanks to Remi Locherer for the patch. |
| 5184 |
- dnscache bugfix: very unlikely memory leak |
| 5185 |
This fixes a memory leak that can only occur under OOM conditions. |
| 5186 |
Detected by Coverity Scan, CID 203717 |
| 5187 |
- testbench bugfix: wrong parameter check in diag.sh (tcpflood()) |
| 5188 |
When first parameter is check_only, the tcpflood funtion shall not |
| 5189 |
abort the test itself (The fail is intended if this option is set). |
| 5190 |
closes issue #3625 |
| 5191 |
- testbench bugfix: imfile-symlink test failed w/ parallel test run |
| 5192 |
The test sometimes failed. It used a symlink to a hardcoded name |
| 5193 |
rsyslog-link.*.log. This symlink was created but then disappears. |
| 5194 |
The reason is that upon (every!) test exit, rsyslog-link.*.log is |
| 5195 |
deleted. So a parallel test running the exit procedure just at the |
| 5196 |
"right" time can removed that file. |
| 5197 |
The bug is that the file name should be created using the tests's |
| 5198 |
dynamic name. This is done now. |
| 5199 |
closes https://github.com/rsyslog/rsyslog/issues/3550 |
| 5200 |
------------------------------------------------------------------------------ |
| 5201 |
Version 8.1904.0 (aka 2019.04) 2019-04-16 |
| 5202 |
- omfile: provide more helpful error message on file write errors |
| 5203 |
now contains actual file name plus a link to probable causes for this type |
| 5204 |
of problem |
| 5205 |
- imfile: emit error on startup if no working directory is set |
| 5206 |
When the work directory has not been set or is invalid, state files |
| 5207 |
are created in the root of the file system. This is neither expected |
| 5208 |
nor desirable. We now complain loudly about this fact. For backwards |
| 5209 |
compatibility reasons, we still need to support running imfile in |
| 5210 |
this case. |
| 5211 |
closes https://github.com/rsyslog/rsyslog/issues/1296 |
| 5212 |
- dnscache: add global parameter dnscache.default.ttl |
| 5213 |
This permits to control default TTL for cache entries. If set |
| 5214 |
to 0, the DNS cache is effectively disabled. |
| 5215 |
closes https://github.com/rsyslog/rsyslog/issues/49 |
| 5216 |
closes https://github.com/rsyslog/rsyslog/issues/1487 |
| 5217 |
- omelasticsearch: new parameter rebindinterval |
| 5218 |
Thanks to Richard Megginson for the patch. |
| 5219 |
- omelasticsearch: new parameter skipverifyhost |
| 5220 |
Add ability to specify the libcurl CURLOPT_SSL_VERIFYHOST |
| 5221 |
option to skip verification of the hostname in the peer cert. |
| 5222 |
WARNING: This option is insecure, and should only be used |
| 5223 |
for testing. The default value is off, meaning, the hostname |
| 5224 |
will be verified by default. |
| 5225 |
Thanks to Richard Megginson for the patch. |
| 5226 |
- omelasticsearch: set rawmsg to data from original request |
| 5227 |
Previously, when constructing the message to submit for a retry |
| 5228 |
for an original request, if the original request did not contain |
| 5229 |
the field `message`, the system property `rawmsg` was set to |
| 5230 |
the entire metadata + data from the original request. This was |
| 5231 |
causing problems with Elasticsearch. This patch changes |
| 5232 |
the code so that the `rawmsg` will be set to only the data part |
| 5233 |
of the original request if there is no `message` field. |
| 5234 |
closes https://github.com/rsyslog/rsyslog/issues/3573 |
| 5235 |
Thanks to Richard Megginson for the patch. |
| 5236 |
- mmkubernetes - support for metadata cache expiration |
| 5237 |
New parameters for mmkubernetes (module and action): |
| 5238 |
* `cacheexpireinterval` |
| 5239 |
If `cacheexpireinterval` is -1, then do not check for cache expiration. |
| 5240 |
If `cacheexpireinterval` is 0, then check for cache expiration. |
| 5241 |
If `cacheexpireinterval` is greater than 0, check for cache expiration |
| 5242 |
if the last time we checked was more than this many seconds ago. |
| 5243 |
* `cacheentryttl` - maximum age in seconds for cache entries |
| 5244 |
New statistics counters: |
| 5245 |
* `podcachenumentries` - the number of entries in the pod metadata cache. |
| 5246 |
* `namespacecachenumentries` - the number of entries in the namespace |
| 5247 |
metadata cache. |
| 5248 |
* `podcachehits` - the number of times a requested entry was found in the |
| 5249 |
pod metadata cache. |
| 5250 |
* `namespacecachehits` - the number of times a requested entry was found |
| 5251 |
in the namespace metadata cache. |
| 5252 |
* `podcachemisses` - the number of times a requested entry was not found |
| 5253 |
in the pod metadata cache, and had to be requested from Kubernetes. |
| 5254 |
* `namespacecachemisses` - the number of times a requested entry was not |
| 5255 |
found in the namespace metadata cache, and had to be requested from |
| 5256 |
Kubernetes. |
| 5257 |
- imdocker: new contributed module |
| 5258 |
imdocker will get (docker) container logs from a host as well as filling |
| 5259 |
out some basic container metadata as id, name, image, labels. |
| 5260 |
Thanks to Nelson Yen for the contribution. |
| 5261 |
- mmtaghostname: new contributed module |
| 5262 |
This module allows one to force hostname after parsing to the localhostname of |
| 5263 |
rsyslog and/or add a tag to messages received from input modules without |
| 5264 |
tag parameter. |
| 5265 |
Thanks to Philippe Duveau for the contribution. |
| 5266 |
- imbatchreport: new contributed input module |
| 5267 |
This input module manage batches' reports : complete file as a single log. |
| 5268 |
Thanks to Philippe Duveau for the contribution. |
| 5269 |
- imtuxedolog: new contributed input module for Tuxedo ULOG |
| 5270 |
Thanks to Philippe Duveau for the contribution. |
| 5271 |
- openssl network driver: Added support setting openssl configcommands |
| 5272 |
We are using the gnutlsPriorityString setting variable, to pass |
| 5273 |
configuration commands to openssl. |
| 5274 |
closes: https://github.com/rsyslog/rsyslog/issues/3605 |
| 5275 |
- omkafka: drop messages rejected due to being too large |
| 5276 |
Drop messages that were rejected due to |
| 5277 |
'RD_KAFKA_RESP_ERR_MSG_SIZE_TOO_LARGE' error |
| 5278 |
Thanks to Nelson Yen for the patch |
| 5279 |
- core/action: implement capability to resume/suspend via external file |
| 5280 |
It has been reported that some TCP receivers exists that accept syslog tcp |
| 5281 |
messages at any rate, even if they do not manage to actually process them. |
| 5282 |
Instead, they silently drop the message. This behavior is not configurable. |
| 5283 |
All in all, it can lead to considerate message loss. |
| 5284 |
To support such use cases, we need to provide an ability to externally |
| 5285 |
trigger actions suspension and resumption. |
| 5286 |
We do this via a configured file which contains the status of the action. |
| 5287 |
Rsyslog periodically reads the file and if it contains "SUSPEND", it |
| 5288 |
suspend the action (and likewise for resume). |
| 5289 |
closes https://github.com/rsyslog/rsyslog/issues/2924 |
| 5290 |
- improg bugfix: some memory leaks |
| 5291 |
Thanks to Philippe Duveau for the contribution. |
| 5292 |
- msg object bugfix: regression from 1255a67 |
| 5293 |
closes https://github.com/rsyslog/rsyslog/issues/3570 |
| 5294 |
- pmnormalize: fix memory leaks, improve tests |
| 5295 |
This patch fixes a set of problems plus provides more and enhanced |
| 5296 |
tests for the module. |
| 5297 |
Most important problem was a memory leak that occurred when a message |
| 5298 |
could not be passed at all. For each message that could not be parsed |
| 5299 |
memory of at least the size the message is leaked. Depending on |
| 5300 |
traffic pattern this can quickly lead to OOM. Note, however, that |
| 5301 |
this leak was never reported - it was discovered as part of code |
| 5302 |
review. |
| 5303 |
closes https://github.com/rsyslog/rsyslog/issues/2007 |
| 5304 |
- omkafka bugfix: build failure due to inconsistent type |
| 5305 |
fails depending on platform and settings; was somehow undetected by CI |
| 5306 |
- imjournal bugfix: potential segfault on some API failure returns |
| 5307 |
In one case there was possibility of free()'d value of journal |
| 5308 |
cursor not being reset, causing double-free and crash later on. |
| 5309 |
closes https://github.com/rsyslog/rsyslog/issues/3537 |
| 5310 |
- openssl subsystem bugfix: better error handling |
| 5311 |
Handling of SSL_ERROR_SYSCALL has been hardened. |
| 5312 |
Handling for SSL_Shutdown errors has been corrected. |
| 5313 |
Also fixed SSL Shutdown handling in tcpflood (openssl code). |
| 5314 |
If SSL_Shutdown returns error, we call SSL_read as described in |
| 5315 |
the documentation to do a bidirectional shutdown. |
| 5316 |
Closes https://github.com/rsyslog/rsyslog/issues/3561 |
| 5317 |
- imjournal bugfix: Fetching journal cursor only for valid journal |
| 5318 |
The sd_journal_get_cursor() got called regardless of previous |
| 5319 |
retcodes from other journal calls which flooded logs with journald |
| 5320 |
errors. Now skipping the call in case of previous journal call |
| 5321 |
non-zero result. Fixed success checking of get_cursor() call |
| 5322 |
to eliminate double-free possibility. |
| 5323 |
Also, making WorkAroundJournalBug true by default, as there were no |
| 5324 |
confirmed performance regressions for a quite long time. |
| 5325 |
Thanks to Jiri Vymazal for the patch. |
| 5326 |
- omamqp: fix build errors |
| 5327 |
They occur on some, newer, platforms. We do not really fix them, but rather |
| 5328 |
make the compiler ignore them. This is not really good, but the module is |
| 5329 |
contributed and so that's for now the best thing we can do. |
| 5330 |
- testbench: change manytcp.sh to use a larger connection count again |
| 5331 |
not sure why it was reduced, maybe related to |
| 5332 |
https://github.com/rsyslog/rsyslog/issues/1108 |
| 5333 |
also, modernize this and another test |
| 5334 |
- tcpflood bugfix: make soft connection limit work again |
| 5335 |
It looks like the soft limit became defunct when tcpflood was enhanced to |
| 5336 |
request more open file handles from OS. |
| 5337 |
closes https://github.com/rsyslog/rsyslog/issues/1108 |
| 5338 |
- testbench bugfix: omhttp tests were not run during "make distcheck" |
| 5339 |
- build system bugfix: omhttp test files were not included in dist tarball |
| 5340 |
Thanks to Thomas D. (whissi) for the patch. |
| 5341 |
------------------------------------------------------------------------------ |
| 5342 |
Version 8.1903.0 (aka 2019.03) 2019-03-05 |
| 5343 |
- omrabbitmq: add features (RabbitMQ HA management, templatize routing_key, |
| 5344 |
populate amqp message headers, delivery_mode and expiration parameters) |
| 5345 |
- improg: create input module to use external program as input datas |
| 5346 |
- imtuxedoulog: create input module to consume Tuxedo ULOG files |
| 5347 |
- omhttp: rewritten with large feature enhancements |
| 5348 |
Many thanks to Gabriel Intrator for this work. Gabriel also has adopted the |
| 5349 |
module and plans to support it in the future. |
| 5350 |
- pmdb2diag: create parser module for DB2 diag logs |
| 5351 |
- TLS subsystem: add support for certless communication |
| 5352 |
both openssl and GnuTLS drivers have been updated to support certless |
| 5353 |
communications. In this case e.g. Diffie-Helman is used. |
| 5354 |
NOTE: this is an insecure mode, as it does NOT guard against |
| 5355 |
man-in-the-middle attacks. We implemented it because of the large demand, |
| 5356 |
not because we think it makes sense to use this mode. We strongly recommend |
| 5357 |
against it. |
| 5358 |
closes https://github.com/rsyslog/rsyslog/issues/1068 |
| 5359 |
- imrelp/omrelp: add capability to specify tlslib for librelp |
| 5360 |
closes https://github.com/rsyslog/rsyslog/issues/3451 |
| 5361 |
- build system: introduce a better way to handle compiler pragmas |
| 5362 |
we now use macros and _Pragma(). This requires less code lines and is more |
| 5363 |
portable. |
| 5364 |
- omkafka: add support for dynamic keys |
| 5365 |
A new configuration property "dynaKey" is added that, when "on", changes the |
| 5366 |
value of property "key" to a template names instead of a constant value. |
| 5367 |
This is similar in approach to the DynaTopic implementation. |
| 5368 |
Thanks to Ludo Brands for the patch. |
| 5369 |
- AIX port: add AIX linking extensions on many plugins and contributions to |
| 5370 |
allow building them on this os. |
| 5371 |
- template: add Time-Related System Property $wday which is the day of week |
| 5372 |
This allows one to get a week based rotation of log as AIX does. |
| 5373 |
- ksi subsystem: add high availability mode |
| 5374 |
Note: ksi subsystem now REQUIRES libksi 3.19.0 or above |
| 5375 |
Thanks to Allan Park for the patch. |
| 5376 |
closes https://github.com/rsyslog/rsyslog/issues/3338 |
| 5377 |
- imfile bugfix: file reader could get stuck |
| 5378 |
State file handling was invalid. When a file was moved and re-created |
| 5379 |
rsyslog could use the file_id if the new file to write the old files' |
| 5380 |
state file. This could make the file reader stuck until it reached the |
| 5381 |
previous offset. Depending on file sizes this could never happen AND |
| 5382 |
would cause large message loss. This situation was timing dependent |
| 5383 |
(a race) and most frequently occurred under log rotation. In polling |
| 5384 |
mode the bug was less likely, but could also occur. |
| 5385 |
closes: https://github.com/rsyslog/rsyslog/issues/3465 |
| 5386 |
closes: https://github.com/rsyslog/rsyslog/issues/3468 |
| 5387 |
- imfile bugfix: potential segfault when working with directories or symlinks |
| 5388 |
see also https://github.com/rsyslog/rsyslog/pull/3496 |
| 5389 |
Thanks to Nelson Yen for the patch |
| 5390 |
- omhttp bugfix: header items could not have spaces in them |
| 5391 |
Thanks to Nathan Brown for the patch. |
| 5392 |
- core bugfix: enlarged msg offset types for bigger structured messages |
| 5393 |
using a large enough (dozens of kBs) structured message |
| 5394 |
it is possible to overflow the signed short type which leads |
| 5395 |
to rsyslog crash. (applies to msg.c, the message object) |
| 5396 |
Thanks to Jiri Vymazal for the patch. |
| 5397 |
- core bugfix for AIX: timeval2syslogTime now handle the bias according to |
| 5398 |
local time zone as documented by IBM. |
| 5399 |
- imfile feature: add configuration parameter to force parsing of read logs |
| 5400 |
- imczmq bugfix: |
| 5401 |
Release zframe following read from socket |
| 5402 |
Make the 0MQ frame pointer local to the receive loop and destroy the |
| 5403 |
frame as soon as the contents have been copied. This avoids: |
| 5404 |
* a memory leak should the receive loop execute more than once |
| 5405 |
* referencing an un-initialized value during cleanup (finalize_it) |
| 5406 |
Thanks to Mark Gillott for the patch. |
| 5407 |
- omclickhouse bugfix: default template unusable |
| 5408 |
STDSQL option added to the default template used in output module of clickhouse |
| 5409 |
Thanks to gagandeep trivedi for the patch. |
| 5410 |
- omclickhouse "bugfix": work-around failed error detection |
| 5411 |
omclickhouse uses a questionable method to check if a request generated |
| 5412 |
an error. We have seen the method to fail when we slightly upgraded clickhouse |
| 5413 |
server in CI testing. |
| 5414 |
This commit makes the method a bit more reliable without really fixing it. |
| 5415 |
But it's at least a short-term solution. |
| 5416 |
This should be changed to a proper status check. I assume such is possible. |
| 5417 |
see also https://github.com/rsyslog/rsyslog/issues/3485 |
| 5418 |
- imptcp bugfix: overly long socket bind path can lead to segfault |
| 5419 |
if the `path` input parameter is overly long (e.g. more than 108 |
| 5420 |
characters on some platforms) a non-terminated string is generated |
| 5421 |
and then passed to OS API. This can lead to all sorts of problems |
| 5422 |
including segfault. |
| 5423 |
We detected that based on gcc-8 warnings during code inspection. |
| 5424 |
No real-world problem case is known. |
| 5425 |
- ommongodb bugfix: improper stpncpy() calls |
| 5426 |
- testbench tcpflood: add new transport option relp-tls |
| 5427 |
Tcpflood can now send messages via relp with tls support. |
| 5428 |
closes https://github.com/rsyslog/rsyslog/issues/3448 |
| 5429 |
- testbench: mmdb valgrind tests failed is srcdir env was not set |
| 5430 |
- testbench: add omclickhouse tests |
| 5431 |
- testbench bugfix: some long-running tests had too low runtime allowance |
| 5432 |
closes https://github.com/rsyslog/rsyslog/issues/3493 |
| 5433 |
- testbench bugfix: daqueue-dirty-shutdown test |
| 5434 |
This test occasionally failed with left-over spool files. As far as we |
| 5435 |
have analyzed, this is due to the use of an invalid shutdown timeout |
| 5436 |
(very short) in the second phase of the test. It looks like this is |
| 5437 |
actually a copy&paste error from phase one. Behavior of rsyslog was |
| 5438 |
correct, but the test itself created a false positive. |
| 5439 |
We have corrected the timeout now and also modernized the test |
| 5440 |
a bit. |
| 5441 |
closes https://github.com/rsyslog/rsyslog/issues/2122 |
| 5442 |
- testbench bugfix: some omhttp tests had compatibility issues with Python 3 |
| 5443 |
Thanks to Thomas D. (whissi) for the patch. |
| 5444 |
------------------------------------------------------------------------------ |
| 5445 |
Version 8.1901.0 (aka 2019.01) 2019-01-22 |
| 5446 |
- new version scheme: 8.yymm.0 - version now depends on release date |
| 5447 |
see also https://rainer.gerhards.net/2018/12/rsyslog-version-numbering-change.html |
| 5448 |
- queue: add support for minimum batch sizes |
| 5449 |
closes https://github.com/rsyslog/rsyslog/issues/495 |
| 5450 |
- change queue.timeoutshutdown default to 10 for action queues |
| 5451 |
The previous default of 0 gave action queues no real chance to |
| 5452 |
shutdown - at the time they were applied, they were usually already |
| 5453 |
expired (computing the absolute timeout took a small amount of time). |
| 5454 |
So we change this now to 10ms, which still is very quick but gives |
| 5455 |
the queue at least a chance to shutdown itself. That in turn |
| 5456 |
smoothes the whole shutdown process. |
| 5457 |
If a very large number of action queues is used this may lead |
| 5458 |
to a very slightly longer shutdown time, albeit this is very |
| 5459 |
improbable. |
| 5460 |
- omclickhouse: new output module for clickhouse |
| 5461 |
This output module adds the possibility to send |
| 5462 |
INSERT querys to a Clickhouse database. See doc for details. |
| 5463 |
The messages are sent via a REST interface. |
| 5464 |
This commit also adds support of the testbench |
| 5465 |
for clickhouse tests, as well as various tests. |
| 5466 |
Closes https://github.com/rsyslog/rsyslog/issues/2272 |
| 5467 |
- omkafka: Add ability to dump librdkafka statistics to a file |
| 5468 |
Use statsFile to specify statistics output file; also requires |
| 5469 |
setting statistics.interval.ms confparam to a non-zero value. |
| 5470 |
Thanks to github user pcullen65 for the contribution. |
| 5471 |
- tls(ossl/gtls): add new Option "StreamDriver.PermitExpiredCerts" |
| 5472 |
The new Option can have one of the following values: |
| 5473 |
on = Expired certificates are allowed |
| 5474 |
off = Expired certificates are not allowed |
| 5475 |
warn = Expired certificates are allowed but warning will be logged (Default) |
| 5476 |
Includes necessary tests to validate new code. |
| 5477 |
closes https://github.com/rsyslog/rsyslog/issues/3364 |
| 5478 |
- action: add "action.resumeIntervalMax" parameter |
| 5479 |
This parameter permits to set an upper limit on the growth of the |
| 5480 |
retry interval. This is most useful when a target has extended |
| 5481 |
outage, in which case retries can happen very infrequently. |
| 5482 |
closes https://github.com/rsyslog/rsyslog/issues/3401 |
| 5483 |
- report child process exit status according to config parameter |
| 5484 |
Add new global setting 'reportChildProcessExits' with possible values |
| 5485 |
'none|errors|all' (default 'errors'), and new global function |
| 5486 |
'glblReportChildProcessExit' to report the exit status of a child |
| 5487 |
process according to the setting. |
| 5488 |
Invoke the report function whenever rsyslog reaps a child, namely in: |
| 5489 |
- rsyslogd.c (SIGCHLD signal handler) |
| 5490 |
- omprog |
| 5491 |
- mmexternal |
| 5492 |
- srutils.c (execProg function, invoked from stream.c and omshell) |
| 5493 |
Remove redundant "reaped by main loop" info log in omprog. |
| 5494 |
Promote debug message in mmexternal indicating that the child has |
| 5495 |
terminated prematurely to a warning log, like in omprog. |
| 5496 |
closes https://github.com/rsyslog/rsyslog/issues/3281 |
| 5497 |
Thanks to Joan Sala for contributing this. |
| 5498 |
- build system: add capability to turn off helgrind tests |
| 5499 |
we add configure switch --enable-helgrind. We need to turn helgrind off |
| 5500 |
when we use clang coverage instrumentation. The instrumentation injects |
| 5501 |
mt-unsafe counter updates which we seem to be unable to suppress. |
| 5502 |
Note: for gcc this was possible, because they all occurred in a utility |
| 5503 |
function. For clang, they are inlined so we get many -and changing- violations. |
| 5504 |
see also https://github.com/rsyslog/rsyslog/issues/3361#issuecomment-450502569 |
| 5505 |
- imzmq3/omzmq3: remove modules |
| 5506 |
according to @brianknox (their author) these modules are outdated: |
| 5507 |
https://twitter.com/taotetek/status/931860786959540224 |
| 5508 |
They are replaced by imczmq/omczmq and are no longer maintained. We put a |
| 5509 |
depreciation notice into the modules a year ago, and now it finally is time |
| 5510 |
to remove them. They do NOT build in any case, except if very old versions |
| 5511 |
of the 0mq ecosystem are used. |
| 5512 |
see also https://github.com/rsyslog/rsyslog/issues/2100 |
| 5513 |
closes https://github.com/rsyslog/rsyslog/issues/2103 |
| 5514 |
- bugfix omusrmsg: don't overwrite previous set _PATH_DEV value |
| 5515 |
Since commit 56ace5e418d149af27586c7c1264fccfbc6badf1, omusrmsg was broken |
| 5516 |
because "memcpy()" is not a suitable substitute for "strncat()" in this |
| 5517 |
context, it is actually replacing the previous added content. |
| 5518 |
Bug: https://bugs.gentoo.org/673004 |
| 5519 |
Closes: https://github.com/rsyslog/rsyslog/issues/3346 |
| 5520 |
Thanks to Thomas D. (whissi) for the patch. |
| 5521 |
- bugfix ossl TLS driver: fixed authentication mode anon |
| 5522 |
authentication mode "anon" was not properly supported in ossl TLS |
| 5523 |
driver; if selected, did still require a full certificate. |
| 5524 |
closes: https://github.com/rsyslog/rsyslog/issues/3037 |
| 5525 |
- bugfix tls subsystem: Receiver hang due to insufficient TLS buffersize. |
| 5526 |
gtls and ossl driver used a default buffersize of 8KiB to store received |
| 5527 |
TLS packets. When tls read returned more than buffersize, the additional |
| 5528 |
buffer was not processed until new data arrived on the socket again. |
| 5529 |
TLS RFCs require up to 16KiB+1 buffer size for a single TLS record. |
| 5530 |
closes https://github.com/rsyslog/rsyslog/issues/3325 |
| 5531 |
- bugfix pmpanngfw: build issue due to non-matching data types in comparison |
| 5532 |
Thanks to Narasimha Datta for the patch. |
| 5533 |
- omfile: work-around for "Bad file descriptor" errors |
| 5534 |
This works-around an issue we can reproduce e.g. via the |
| 5535 |
imtcp-tls-ossl-x509fingerprint.sh test. Here, omfile gets a write |
| 5536 |
error with reason EBADF. So far, I was not able to see an actual |
| 5537 |
coding error. However I traced this down to a multithreaded race |
| 5538 |
on open and close calls. I am very surprised to see this type |
| 5539 |
of issue, as I think the kernel guarantees that it does not happen. |
| 5540 |
Here is what I see in strace -f: |
| 5541 |
openssl accepts a socket: |
| 5542 |
[pid 66386] accept(4, {sa_family=AF_INET, sin_port=htons(59054), sin_addr=inet_addr("127.0.0.1")}, [128->16]) = 10 |
| 5543 |
then, it works a bit with that socket, detects a failure and shuts it down. Sometimes, at the very same instant omfile on another thread tries to open on output file. Then the following happens: |
| 5544 |
[pid 66386] close(10) = 0 |
| 5545 |
[pid 66389] openat(AT_FDCWD, "./rstb_356100_31fa9d20.out.log", O_WRONLY|O_CREAT|O_NOCTTY|O_APPEND|O_CLOEXEC, 0644 <unfinished ...> |
| 5546 |
[pid 66386] close(10 <unfinished ...> |
| 5547 |
[pid 66389] <... openat resumed> ) = 10 |
| 5548 |
[pid 66386] <... close resumed> ) = 0 |
| 5549 |
[pid 66386] poll([{fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1 <unfinished ...> |
| 5550 |
[pid 66389] write(2, "file './rstb_356100_31fa9d20.out"..., 66file './rstb_356100_31fa9d20.out.log' opened as #10 with mode 420 |
| 5551 |
) = 66 |
| 5552 |
[pid 66389] ioctl(10, TCGETS, 0x7f59aeb89540) = -1 EBADF (Bad file descriptor) |
| 5553 |
This is **literally** from the log, without deleting or reordering |
| 5554 |
lines. I read it so that there is a race between `open` and `close` |
| 5555 |
where fd 10 is reused, but seemingly closed - resulting in the `EBADF` |
| 5556 |
While it smells like a kernel issue, it may be a well-hidden program |
| 5557 |
bug - if so, one I currently do not find. HOWEVER, this commit |
| 5558 |
works around the issue by reopening the file when we receive EBADF. |
| 5559 |
That's the best thing to do in that case, especially if it really is |
| 5560 |
a kernel bug. Data loss should not occur, as the previous writes |
| 5561 |
succeeded in that case. |
| 5562 |
The backdraw of this work-around is that it only "fixes" omfile. In |
| 5563 |
theory every part of rsyslog can be affected by this issues (queue |
| 5564 |
files, for example). So this is not to be considered a final solution |
| 5565 |
of the root issues (but a big step forward for known problem cases). |
| 5566 |
see also https://github.com/rsyslog/rsyslog/issues/3404 |
| 5567 |
- omhttp bugfix: segfault due to NULL pointer access |
| 5568 |
many thanks to Gerardo Puerta for the patch |
| 5569 |
- omkafka bugfix: segfault when running in debug mode using dynamic topics |
| 5570 |
This should only affect test environments, as debug mode is not |
| 5571 |
suitable for production (and really does not work when running for |
| 5572 |
extended period of time). |
| 5573 |
- testbench bugfix: TLS syslog tests for "anon" mode were broken |
| 5574 |
They did not detect when "anon" mode was not properly supported by the |
| 5575 |
drivers. |
| 5576 |
- test tooling bugfix: correct tcpflood error messages |
| 5577 |
it looks like tcpflood's openssl code stems partly back to tcpdump, at |
| 5578 |
least the error messages indicate this. Thankfully tcpdump is BSD licensed, |
| 5579 |
so this should not be a big issue. Nevertheless, the incorrect program name |
| 5580 |
in error messages needs to be corrected, and this is what this commit does. |
| 5581 |
- tcpflood bugfix: tool did not terminate on certificate error |
| 5582 |
when tcpflood detected a certificate error, it reported an |
| 5583 |
error message but did not abort. This could make errors undetectable |
| 5584 |
during CI runs. |
| 5585 |
also fix tests which did not properly provide CA cert (which than |
| 5586 |
caused the error). |
| 5587 |
- testbench: fix issues with journal testing |
| 5588 |
The configure/Makefile checks were not correct, leading to the |
| 5589 |
build of journal components when not necessary, even if not |
| 5590 |
supported by the platform. Thus lead to invalid build and test |
| 5591 |
failures. |
| 5592 |
- testbench: add tests for "certless" tcp/tls |
| 5593 |
This adds a test to ensure that a client without certificate can |
| 5594 |
connect to a server with certificates. So it is not exactly |
| 5595 |
"certless". |
| 5596 |
The prime intent of this test is to match config suggestions given |
| 5597 |
by log hosting companies (like loggly) and so ensure that we do |
| 5598 |
not accidentally break them. This is especially important as the |
| 5599 |
capability for certless clients was not properly documented and |
| 5600 |
also become forgotten by the rsyslog team. |
| 5601 |
see also https://github.com/rsyslog/rsyslog/issues/3413 |
| 5602 |
- CI |
| 5603 |
- further improve testbench robustness against slow machines |
| 5604 |
- testbench: add tests for parser.EscapeControlCharacterTab global option |
| 5605 |
- testbench: Updated all expired x.509 certs |
| 5606 |
Closes https://github.com/rsyslog/rsyslog/issues/3348 |
| 5607 |
- fix a potential race in CI debug mode which can lead to segfault |
| 5608 |
only when instructed to do so, rsyslog may emit a "final worker thread shutdown" |
| 5609 |
messages. This is usually only enabled in CI and/or other testing. If enabled, |
| 5610 |
the code has a race on the pWti object which can lead to segfault or abort. |
| 5611 |
Only system which explicitly enable this CI aid are affected (running in debug |
| 5612 |
mode alone is NOT sufficient). |
| 5613 |
This is a regression from 8.40.0. |
| 5614 |
- testbench: improve robustness against slow CI, gen. improvements |
| 5615 |
* add an overall timeout value for tests - if running longer, |
| 5616 |
testbench framework tries to FAIL and end test. Note that |
| 5617 |
this is not bullet-proof and not intended to be so. |
| 5618 |
* guard against hanging rsyslog instances via a new imdiag |
| 5619 |
feature to abort after n number of seconds; among others, |
| 5620 |
this guards as against timeout-cancel in CI, which is always |
| 5621 |
pretty hard to diagnose - now we see these errors in test-suite.log |
| 5622 |
* fix a bug in tcp zip test, which actually did not use zip mode |
| 5623 |
* experimentally add debug output to better understand |
| 5624 |
shutdown_when_empty operation; goal is to improve understanding |
| 5625 |
and then remove that code again. |
| 5626 |
* improve shutdown predicate for a couple of tests |
| 5627 |
* made travis run make check with two parallel threads, for which |
| 5628 |
we seem ready now. Nevertheless, it's still experimental and we |
| 5629 |
may roll this back if required. |
| 5630 |
* testbench: disable omprog tests that hang under coverage instrumentation |
| 5631 |
When gcc coverage instrumentation is used, these tests hang. They work |
| 5632 |
with clang coverage instrumentation, but for some reason clang does not |
| 5633 |
give us full reports (at least not when used together with CodeCov.io). |
| 5634 |
We have tried to troubleshoot this for hours and hours - now is time to |
| 5635 |
give up until someone comes up with a bright idea. So we make the affected |
| 5636 |
tests skip themselves when they detect gcc with coverage instrumentation. |
| 5637 |
* testbench: add new test for imfile and logrotate in copytruncate mode |
| 5638 |
* testbench: add new omkafka tests for dynamic topics |
| 5639 |
* travis: do no longer run 0mq tests |
| 5640 |
This often causes trouble when the packages are rebuild by the 0mq project |
| 5641 |
(which happens frequently). We already do intensive testing of the 0mq |
| 5642 |
components in the buildbot infrastructure, where we use dedicated containers. |
| 5643 |
This is reliable, as the containers already contain everything needed and so |
| 5644 |
do not need to reach out to the 0mq package archives. In the light of this, |
| 5645 |
let's save us the trouble of Travis failures. The only downside is that |
| 5646 |
users cannot pre-test with their local Travis when modifying 0mq modules, |
| 5647 |
which is quite acceptable. |
| 5648 |
------------------------------------------------------------------------------ |
| 5649 |
Version 8.40.0 [v8-stable] 2018-12-11 |
| 5650 |
- mmkubernetes: add support for sslpartialchain for openssl |
| 5651 |
If `"on"`, this will set the OpenSSL certificate store flag |
| 5652 |
`X509_V_FLAG_PARTIAL_CHAIN`. This will allow you to verify the Kubernetes API |
| 5653 |
server cert with only an intermediate CA cert in your local trust store, rather |
| 5654 |
than having to have the entire intermediate CA + root CA chain in your local |
| 5655 |
trust store. See also `man s_client` - the `-partial_chain` flag. |
| 5656 |
This option is only available if rsyslog was built with support for OpenSSL and |
| 5657 |
only if the `X509_V_FLAG_PARTIAL_CHAIN` flag is available. If you attempt to |
| 5658 |
set this parameter on other platforms, you will get an `INFO` level log |
| 5659 |
message. This was done so that you could use the same configuration on |
| 5660 |
different platforms. |
| 5661 |
- openssl driver: improved error messages |
| 5662 |
also fixes misleading wording of some error messages |
| 5663 |
closes https://github.com/rsyslog/rsyslog/issues/3238 |
| 5664 |
- imfile: disable file vs directory error on symlinks |
| 5665 |
The file/directory node-object alignment now ignores symlinks. Previously |
| 5666 |
it reported error on each directory symlink spamming user error logs. |
| 5667 |
Thanks to Jiri Vymazal for the patch. |
| 5668 |
- cleanup: remove no longer needed --enable-rtinst code |
| 5669 |
configure option --enable-rtinst is gone-away since a while, but there were |
| 5670 |
still some supporting code left. It required careful analysis what could |
| 5671 |
actually be removed. This is now done and the code fully cleaned up. This |
| 5672 |
greatly simplifies the code and also makes it better readable for |
| 5673 |
developers which are not deep inside the rsyslog code base. |
| 5674 |
As a positive side effect, we could eliminate mutex calls inside |
| 5675 |
the debug system. This means we are more likely to reproduce race |
| 5676 |
conditions in runs with debugging enabled. |
| 5677 |
closes https://github.com/rsyslog/rsyslog/issues/2211 |
| 5678 |
- bugfix imfile: rsyslog re-sends data for files larger 2GiB |
| 5679 |
This occurs always if and only if |
| 5680 |
- reopenOnTruncate="on" is set |
| 5681 |
- file grows over 2GiB in size |
| 5682 |
Then, the data is continuously re-sent until the file becomes smaller |
| 5683 |
2GiB (due to truncation) or is deleted. |
| 5684 |
It is a regression introduced by 2d15cbc8221e385c5aa821e4a851d7498ed81850 |
| 5685 |
closes https://github.com/rsyslog/rsyslog/issues/3249 |
| 5686 |
- config: fix segfault in backticks "echo" expansion of undefined variables |
| 5687 |
The bug was introduced in commit abe0434 (config: enhance backticks "echo" |
| 5688 |
capability). The getenv() result passed to strlen() and es_addBuf() may be |
| 5689 |
NULL if the environment variable does not exist, resulting in a segfault. |
| 5690 |
Thanks to Julien Thomas for the patch. |
| 5691 |
fixes https://github.com/rsyslog/rsyslog/issues/3006 |
| 5692 |
- bugfix imsolaris: message timestamps on Solaris |
| 5693 |
On Solaris messages don't have their time directly in the raw body but in |
| 5694 |
a separate log_ctl structure which is currently not used. |
| 5695 |
When message is logged and processed, rsyslogd gives it current time because |
| 5696 |
it ignores the actual one. That means that old messages (e.g. from system |
| 5697 |
reboot) get timestamp of processing instead of the reboot itself (it is |
| 5698 |
not a problem for live logging where now is used anyway). |
| 5699 |
Thanks to Jakub Kulik for the patch. |
| 5700 |
- bugfix build system: "make distcheck" did not work for mysql tests |
| 5701 |
- bugfix build system: don't link liblogging-stdlog when available but not enabled |
| 5702 |
When liblogging-stdlog was available but configure option "--disable-liblogging-stdlog" |
| 5703 |
was set, rsyslog was still linking against liblogging-stdlog. |
| 5704 |
This commit will ensure that rsyslog will only link against liblogging-stdlog when |
| 5705 |
"--enable-liblogging-stdlog" was set. |
| 5706 |
see also: https://bugs.gentoo.org/667836 |
| 5707 |
- bugfix RainerScript: abs() could return negative value, now in range [0..max] |
| 5708 |
Thanks to Harshvardhan Shrivastava for providing the patch |
| 5709 |
- bugfix debug output: date property options output wrongly |
| 5710 |
inside debug logging, the date property options were not all |
| 5711 |
properly converted into strings. Some of the newer ones were |
| 5712 |
invalidly flagged as "UNKNOWN". This is primarily a cosmetic |
| 5713 |
problem and has no effect other than puzzling folks looking at |
| 5714 |
the debug log. |
| 5715 |
- bugfix omhttp: did not compile on some platforms |
| 5716 |
- CI |
| 5717 |
* made mysql-based tests (ommysql and omlibdbi) work inside containers |
| 5718 |
* bugfix testbench: do not execute libgcrypt tests if disabled |
| 5719 |
closes https://github.com/rsyslog/rsyslog/issues/3228 |
| 5720 |
* testbench: grep failed when string starting with "-" was used |
| 5721 |
The search term was mistakenly interpreted as an option. |
| 5722 |
* testbench: support auto-start/-stop of mysqld |
| 5723 |
This is required to run mysql/mariadb tests inside containers. |
| 5724 |
closes https://github.com/rsyslog/rsyslog/issues/3223 |
| 5725 |
* improve bash coding style and fix a some bug in testbench |
| 5726 |
- duplicate diag.sh init call was not detected due to typo |
| 5727 |
- queue-persists test did not work correctly |
| 5728 |
- some general testbench framework improvements |
| 5729 |
issues found be shellcheck, fixes brought up other work to do |
| 5730 |
* testbench: improve journal tests and testbench framework |
| 5731 |
improving both style and reliability of journal tests; along that way |
| 5732 |
also improve testbench framework: |
| 5733 |
- do cleanup on error_exit and skip |
| 5734 |
- explicit skip handler (vs exit 77) |
| 5735 |
this permits us to do better cleanup |
| 5736 |
- new testbench functions for journal-specific functionality |
| 5737 |
reduce code duplication and make things easier to maintain in the |
| 5738 |
future |
| 5739 |
- provide a way to do valgrind and non-valgrind tests with a single |
| 5740 |
test file |
| 5741 |
see also https://github.com/rsyslog/rsyslog/issues/2564 |
| 5742 |
* testbench: improve framework, harden rscript http test |
| 5743 |
- the test now tries to detect unavailable http server, which |
| 5744 |
should not result in test failure |
| 5745 |
- equivalent valgrind test changed to new method, removing code |
| 5746 |
duplication |
| 5747 |
- testbench supports |
| 5748 |
* new exit code 177, which indicates environment error, makes |
| 5749 |
test SKIP but still reports the failure |
| 5750 |
* new exitcode, logurl stats reporting fields |
| 5751 |
* report buildbot builder (if provided) in failure report |
| 5752 |
* testbench: add test for mmjsonparse with unparsable data |
| 5753 |
* testbench: make es-bulk-retry test more reliable |
| 5754 |
We now no longer depend on a fixed 'sleep' command but rather |
| 5755 |
check the output file for what we expect. This is much more |
| 5756 |
robust on slow test machines. |
| 5757 |
We believe this closes the below-mentioned issue. If not, it |
| 5758 |
should be re-opened. |
| 5759 |
closes https://github.com/rsyslog/rsyslog/issues/3104 |
| 5760 |
* testbench: suppress valgrind error caused by pthreads lib |
| 5761 |
finally I give up and honestly think this is a problem in pthreads and |
| 5762 |
not in rsyslog code. See issue below and previous commit for more |
| 5763 |
information. |
| 5764 |
Unfortunately, this will also mask off cases where we do not properly |
| 5765 |
call pthread_join() albeit it is needed. Nevertheless, this bug is |
| 5766 |
causing so much CI grief that it is definitely worth it. |
| 5767 |
closes https://github.com/rsyslog/rsyslog/issues/2902 |
| 5768 |
* testbench: made a couple of (unnamed due to too many) test more robust |
| 5769 |
against slow (CI) machines |
| 5770 |
------------------------------------------------------------------------------ |
| 5771 |
Version 8.39.0 [v8-stable] 2018-10-30 |
| 5772 |
- imfile: improve truncation detection |
| 5773 |
previously, truncation was only detected at end of file. Especially with |
| 5774 |
busy files that could cause loss of data and possibly also stall imfile |
| 5775 |
reading. The new code now also checks during each read. Obviously, there |
| 5776 |
is some additional overhead associated with that, but this is unavoidable. |
| 5777 |
It still is highly recommended NOT to turn on "reopenOnTruncate" in imfile. |
| 5778 |
Note that there are also inherent reliability issues. There is no way to |
| 5779 |
"fix" these, as they are caused by races between the process(es) who truncate |
| 5780 |
and rsyslog reading the file. But with the new code, the "problem window" |
| 5781 |
should be much smaller and, more importantly, imfile should not stall. |
| 5782 |
see also https://github.com/rsyslog/rsyslog/issues/2659 |
| 5783 |
see also https://github.com/rsyslog/rsyslog/issues/1605 |
| 5784 |
- imjournal: work around journald excessive reloading behavior |
| 5785 |
This is workaround for possible imjournal interaction with systemd |
| 5786 |
where journal invalidate fix is not present. The code tries to |
| 5787 |
detect SD_JOURNAL_INVALIDATE loop and not reload after each call. |
| 5788 |
Thanks to Jiri Vymazal for the patch. |
| 5789 |
- errmsg: remove no longer needed code |
| 5790 |
refactored code (over a long time) so that object-ish style is no longer |
| 5791 |
needed and could now finally be removed; We also refactored the last |
| 5792 |
component (omhttp contrib module) that used the old interface. |
| 5793 |
closes https://github.com/rsyslog/rsyslog/issues/1684 |
| 5794 |
- queue bugfix: invalid error message on queue startup |
| 5795 |
due to some old regression (commit not exactly identified, but for |
| 5796 |
sure a regression, 9 years ago it was correct) an error message |
| 5797 |
is emitted when no .qi file exists on startup of the queue, which |
| 5798 |
is a normal condition. |
| 5799 |
Actually, the code should not have tried to open the .qi file in |
| 5800 |
the first place because it detected that it did not exist. That |
| 5801 |
(necessary) shortcut had been removed a while ago. |
| 5802 |
closes https://github.com/rsyslog/rsyslog/issues/3117 |
| 5803 |
- bugfix imrelp: regression with legacy configuration startup fail |
| 5804 |
Startup of a relp listener failed if legacy configuration was used. |
| 5805 |
caused by commit: 32b71daa8aadb8f16fe0ca2945e54d593f47a824 |
| 5806 |
closes https://github.com/rsyslog/rsyslog/issues/3106 |
| 5807 |
- bugfix imudp: stall of connection and/or potential segfault |
| 5808 |
There was a regression in 493279b790a8cdace8ccbc2c5136985e820dd2fa. |
| 5809 |
This regression may cause stop (or delay) of reception from some systems |
| 5810 |
and may also cause a segfault. Triggering condition is that at least |
| 5811 |
one listener could not be created. |
| 5812 |
Thanks to Jens Låås for the patch. |
| 5813 |
- bugfix gcry crypto driver: small memleak |
| 5814 |
If a crypto key is specified directly via the key="" parameter, |
| 5815 |
the storage for that key is not freed, causing a small memleak. |
| 5816 |
Note that the problem occurs only once per context, so this |
| 5817 |
should not cause real issues. Even more so, as specifying a |
| 5818 |
key directly is meant only for testing purposes and is strongly |
| 5819 |
discouraged for production use. |
| 5820 |
Detected by internal testing, no actual fail case known. |
| 5821 |
- fix potential misaddressing in encryption subsystem |
| 5822 |
could happen if e.g. disk queues were encrypted |
| 5823 |
not seen in practice but caught by testbench test |
| 5824 |
- ksi subsystem changes |
| 5825 |
* enhance debug logging |
| 5826 |
* disable unsafe SHA1 algorithm |
| 5827 |
Thanks to Allan Park for the patch. |
| 5828 |
- bugfix core: regex compile error messages could be incorrect |
| 5829 |
- bugfix core: potential hang on rsyslog termination |
| 5830 |
The root cause was a deadlock during worker startup. This could |
| 5831 |
happen for example when a DA queue needed to persist data during |
| 5832 |
shutdown. |
| 5833 |
Fail condition: |
| 5834 |
* startup request for a new worker |
| 5835 |
* initialization of that worker |
| 5836 |
* immediate detection that the worker can or must shutdown |
| 5837 |
* main thread waiting for worker running state, which it skips, |
| 5838 |
and so the main thread hangs inside a loop |
| 5839 |
closes https://github.com/rsyslog/rsyslog/issues/3094 |
| 5840 |
- bugfix imkafka: system hang when backgrounded |
| 5841 |
imkafka initializes librdkafka too early (before the fork). This leads |
| 5842 |
to hangs in various parts of the system - not only im imkafka but |
| 5843 |
other functions as well (e.g. getaddrinfo() calls). |
| 5844 |
closes https://github.com/rsyslog/rsyslog/issues/3180 |
| 5845 |
- bugfix imfile: file change was not reliably detected |
| 5846 |
A change in the inode was not detected under all circumstances, |
| 5847 |
most importantly not in some logrotate cases. |
| 5848 |
Includes new tests made by Andre Lorbach. They now use the |
| 5849 |
logrotate tool natively to reproduce the issue. |
| 5850 |
closes https://github.com/rsyslog/rsyslog/issues/2659 |
| 5851 |
closes https://github.com/rsyslog/rsyslog/issues/1605 |
| 5852 |
- bugfix imrelp: do not fail build if librelp does not have relpSrvSetLstnAddr |
| 5853 |
closes https://github.com/rsyslog/rsyslog/issues/2938 |
| 5854 |
- bugfix queue subsystem: DA queue did ignore encryption settings |
| 5855 |
closes https://github.com/rsyslog/rsyslog/issues/3066 |
| 5856 |
closes https://github.com/rsyslog/rsyslog/issues/2575 |
| 5857 |
- bugfix KSI: lmsig-ksils12 module skips signing the last block |
| 5858 |
Thanks to Allan Park for the patch. |
| 5859 |
closes https://github.com/rsyslog/rsyslog/issues/3105 |
| 5860 |
- bugfix fmhash: function hash64mod sometimes returned wrong result |
| 5861 |
Thanks to Harshvardhan Shrivastava for providing the patch |
| 5862 |
closes https://github.com/rsyslog/rsyslog/issues/3025 |
| 5863 |
- bugfix core/debug: data written to random fd 2 under some debug settings |
| 5864 |
This happens only during auto-backgrounding, where we cannot any longer |
| 5865 |
access stderr. Whatever is opened with fd2 receives some debug messages. |
| 5866 |
Note that the specific feature is usually turned on only in CI runs. |
| 5867 |
- cleanup: removed no longer needed code |
| 5868 |
Code that was unused for quite a while or did not really belong to the |
| 5869 |
project identified and removed. |
| 5870 |
- overall code cleanup |
| 5871 |
e.g. remove unused code, replace bad bash constructs, etc... |
| 5872 |
- CI: |
| 5873 |
* some small improvements in testbench plumbing |
| 5874 |
e.g. (`cmd` replaced by $(cmd), removed useless use of cat, ...) |
| 5875 |
* testbench: improve plumbing for kafka tests |
| 5876 |
- Removed all sleeps where possible. |
| 5877 |
- Moved all kafka start/stop/download logic into functions. |
| 5878 |
- Moved kafka/zookeeper stop into error_exit and exit_test. |
| 5879 |
- Kafka/Zookeeper cleanup only done on success now. |
| 5880 |
- Kafka/Zookeeper logfiles automatically dumped on error_exit only now. |
| 5881 |
- Added cleanup for Kafka/Zookeeper instances into CI/buildbot_cleanup.sh |
| 5882 |
- added new tests |
| 5883 |
* testbench: fix incompatibility of one omprog test with Python3 |
| 5884 |
Python3 writes to stderr immediately, and this caused the |
| 5885 |
captured output to differ with respect to Python2. Simplified |
| 5886 |
the test to do a single write to stderr. Also a cast to int |
| 5887 |
was needed when calculating 'numRepeats'. |
| 5888 |
closes https://github.com/rsyslog/rsyslog/issues/3030 |
| 5889 |
* testbench: fixed imfile parallel issues |
| 5890 |
- Fixed timing issues in some imfile wildcard/regex tests |
| 5891 |
- Added touch command in imfile wildcard tests to make sure directories |
| 5892 |
exist before files are created in it if IO is under stress. |
| 5893 |
- changed content checking in some tests to use "content_check_with_count" |
| 5894 |
with check timeouts instead of using fixed sleeptimes. |
| 5895 |
* testbench: new basic tests |
| 5896 |
These ensure that for some modules that did not have any tests at all |
| 5897 |
we have at least a minimal coverage (module loads, activates, is able |
| 5898 |
to emit error messages). Of course, further improvements would make |
| 5899 |
much sense. Modules: |
| 5900 |
- ommail |
| 5901 |
- testbench: new tests for disk queue encryption |
| 5902 |
- testbench: improved auto-diagnostics for hanging instance |
| 5903 |
- testbench: hardened kafka test against failing kafka subsystem, |
| 5904 |
not in 100% of the cases, but at least in some that frequently occur |
| 5905 |
- failing tests now report failure status so that we can get stats |
| 5906 |
on unreliable tests |
| 5907 |
- testbench tooling: fix incorrect tcpflood TLS parameter check |
| 5908 |
could lead to segfault when started |
| 5909 |
- bugfix testbench tooling: tcpflood invalid type in calloc (openssl mode) |
| 5910 |
It is unlikely that this has caused a real issue, as long as pointers |
| 5911 |
are all of the same size (what is highly probable). |
| 5912 |
detected by cppcheck via Codacy.com |
| 5913 |
------------------------------------------------------------------------------ |
| 5914 |
Version 8.38.0 [v8-stable] 2018-09-18 |
| 5915 |
- AIX: make basic modules work again |
| 5916 |
- make rsyslog build on AIX again |
| 5917 |
... at least for a limited set of default modules |
| 5918 |
- imfile: support for endmsg.regex |
| 5919 |
This adds support for endmsg.regex. It is similar to |
| 5920 |
startmsg.regex except that it matches the line that denotes |
| 5921 |
the end of the message, rather than the start of the next message. |
| 5922 |
This is primarily for container log file use cases such as this: |
| 5923 |
date stdout P start of message |
| 5924 |
date stdout P middle of message |
| 5925 |
date stdout F end of message |
| 5926 |
The `F` means this is the line which contains the final part of |
| 5927 |
the message. The fully assembled message should be |
| 5928 |
`start of message middle of message end of message`. |
| 5929 |
`startmsg.regex="^[^ ]+ stdout F "` will match. |
| 5930 |
Thanks to Richard Megginson for the patch. |
| 5931 |
- imkafka: add parameter "parseHostName" |
| 5932 |
This enables imkafka to parse the hostname from log message. |
| 5933 |
Previously that was not possible. It was most likely a bug, but |
| 5934 |
one that users may count on. The new parameter "ParseHostName" |
| 5935 |
(default is off) controls this behavior. Default is to NOT |
| 5936 |
parse the hostname. |
| 5937 |
Thanks to github user snaix for the contribution. |
| 5938 |
- im[p]tcp: improve error message on connect failure |
| 5939 |
Now a message with the actual OS error is emitted, making things far |
| 5940 |
easier to troubleshoot. |
| 5941 |
- imkafka: implement multithreading support for kafka consumers. |
| 5942 |
Each consumer runs in it's own consumer thread now. New tests have also |
| 5943 |
been added for this. |
| 5944 |
- omelasticsearch: write all header metadata to $.omes for retries |
| 5945 |
Write all of the original request metadata fields to $.omes for |
| 5946 |
the retry, if present. This may include all of the following: |
| 5947 |
_index, _type, _id, _parent, pipeline |
| 5948 |
This is in addition to the fields from the response. If the same |
| 5949 |
field name exists in the request metadata and the response, the |
| 5950 |
field from the request will be used, in order to facilitate |
| 5951 |
retrying the exact same request. |
| 5952 |
Thanks to Richard Megginson for the patch. |
| 5953 |
- core: improve error message on module load fail |
| 5954 |
The error message now lists all dlopen() errors in depth. This is |
| 5955 |
especially useful if the error is due to missing symbols or file |
| 5956 |
format errors. |
| 5957 |
- core/queue: add error message if queue file cannot be accessed |
| 5958 |
When having a disk-assisted queue without permission to write to the specified |
| 5959 |
queue file an error will now be generated. |
| 5960 |
closes https://github.com/rsyslog/rsyslog/issues/323 |
| 5961 |
- imtcp/imudp: new option preservecase for managing the case of FROMHOST value |
| 5962 |
default is left at current behavior |
| 5963 |
see also https://github.com/rsyslog/rsyslog/pull/2774 |
| 5964 |
see also https://bugzilla.redhat.com/show_bug.cgi?id=1309698 |
| 5965 |
- omprog: add feedback timeout and keep-alive feature |
| 5966 |
- Restart the program if it does not respond within timeout. |
| 5967 |
- New setting 'confirmTimeout' (default 10 seconds). |
| 5968 |
- Allow the program to provide keep-alive feedback when a |
| 5969 |
message requires long-running processing. |
| 5970 |
- Improve efficiency when reading feedback line (use buffer). |
| 5971 |
Retry interrupted writes/reads to/from pipe. |
| 5972 |
- New setting 'reportFailures' for reporting error messages |
| 5973 |
from the program. |
| 5974 |
- Report child termination when writing to pipe. |
| 5975 |
- Minor refactor: renamed writePipe function to sendMessage, |
| 5976 |
renamed readPipe to readStatus. |
| 5977 |
Thanks to Joan Sala for contributing this. |
| 5978 |
- omprog: fix forceSingleInstance configuration option |
| 5979 |
The forceSingleInstance option did not work as intended. Even |
| 5980 |
if set multiple instances were spawned. This most probably |
| 5981 |
was a regression from 0453b1670fc34c96d31ee7c9a370f0f5ec24744a |
| 5982 |
The code was broken roughly 3.5yrs ago, so it looks like the |
| 5983 |
issue was little-noticed. This also means that potentially some users |
| 5984 |
may see the bugfix as change of behavior. If so, just remove |
| 5985 |
the option. |
| 5986 |
closes https://github.com/rsyslog/rsyslog/issues/2813 |
| 5987 |
closes https://github.com/rsyslog/rsyslog/issues/2468 |
| 5988 |
Thanks to Joan Sala for contributing this. |
| 5989 |
- imfile: implement file-id, used in state file |
| 5990 |
This ensures that files with the same inodes are not accidentally treated |
| 5991 |
as equal, at least within the limits of the file id hash (see doc for |
| 5992 |
details). |
| 5993 |
We use the siphash reference implementation to generate our non-cryptographic |
| 5994 |
hash. |
| 5995 |
closes https://github.com/rsyslog/rsyslog/issues/2530 |
| 5996 |
closes https://github.com/rsyslog/rsyslog/issues/2231 |
| 5997 |
- imfile: experimental input throttling feature |
| 5998 |
The new input parameter delay.message has been added. It specifies |
| 5999 |
a delay in microseconds after each line read. |
| 6000 |
closes https://github.com/rsyslog/rsyslog/issues/2960 |
| 6001 |
- core: emit TZ warning on startup not on Linux non-container |
| 6002 |
On Linux it seems common that the TZ variable is NOT properly set. |
| 6003 |
There are some concerns that the warning related to rsyslog correcting |
| 6004 |
this confuses users. It also seems that the corrective action rsyslog |
| 6005 |
takes is right, and so there is no hard need to inform users on that. |
| 6006 |
In Linux containers, however, the warning seems to be useful as the |
| 6007 |
timezone setup there seems to be frequently-enough different and |
| 6008 |
rsyslog's corrective action may not be correct. |
| 6009 |
So we now check if we are running under Linux and not within a container. |
| 6010 |
If so, we do not emit the warning. In all other case, we do. This is |
| 6011 |
based on the assumption that other unixoid systems still should have |
| 6012 |
TZ properly set. |
| 6013 |
closes https://github.com/rsyslog/rsyslog/issues/2994 |
| 6014 |
- omkafka: |
| 6015 |
* better debug information |
| 6016 |
* Fixed minor issue in omkafka producing wrong kafka timestamps when |
| 6017 |
msgTimestamp was NULL. |
| 6018 |
* Setting RD_KAFKA_V_KEY(NULL, 0) in rd_kafka_producev now when KEY is not |
| 6019 |
configured. |
| 6020 |
* Fixed minor issue when rsyslog is compiled with --enable-debug and |
| 6021 |
librdkafka is too old. |
| 6022 |
- omfile bugfix: errant error message when dynafile param needed |
| 6023 |
also fixes related message in contributed module omfile-hardened |
| 6024 |
closes https://github.com/rsyslog/rsyslog/issues/2975 |
| 6025 |
Thanks to Frank Bicknell for the patch |
| 6026 |
- omhttp: new contributed module |
| 6027 |
Thanks to Christian Tramnitz for contributing it. |
| 6028 |
Some more info at https://github.com/rsyslog/rsyslog/pull/2782 |
| 6029 |
- mmkubernetes: action fails preparation cycle if kubernetes API ... |
| 6030 |
... destroys resource during bootup sequence |
| 6031 |
The plugin was not handling 404 Not Found correctly when looking |
| 6032 |
up pods and namespaces. In this case, we assume the pod/namespace |
| 6033 |
was deleted, annotate the record with whatever metadata we have, |
| 6034 |
and cache the fact that the pod/namespace is missing so we don't |
| 6035 |
attempt to look it up again. |
| 6036 |
In addition, the plugin was not handling error 429 Busy correctly. |
| 6037 |
In this case, it should also annotate the record with whatever |
| 6038 |
metadata it has, and _not_ cache anything. By default the plugin |
| 6039 |
will retry every 5 seconds to connect to Kubernetes. This |
| 6040 |
behavior is controlled by the new config param `busyretryinterval`. |
| 6041 |
This commit also adds impstats counters so that admins can |
| 6042 |
view the state of the plugin to see if the lookups are working |
| 6043 |
or are returning errors. The stats are reported per-instance |
| 6044 |
or per-action to facilitate using multiple different actions |
| 6045 |
for different Kubernetes servers. |
| 6046 |
This commit also adds support for client cert auth to |
| 6047 |
Kubernetes via the two new config params `tls.mycert` and |
| 6048 |
`tls.myprivkey`. |
| 6049 |
Thanks to Richard Megginson for the patch. |
| 6050 |
- bugfix pmnormalize/core: several memory leaks, invld property handling |
| 6051 |
- major memory leak which occurred once per message processed |
| 6052 |
So this could lead to OOM. Caused by improper free of json |
| 6053 |
structure |
| 6054 |
- another two major leaks of similar magnitude could occur if |
| 6055 |
"fromhost-ip" and/or "fromhost" properties were set |
| 6056 |
- minor leaks upon termination. these were unproblematic as |
| 6057 |
static and only occurred immediately before shutdown. |
| 6058 |
But they triggered memory debugger errors. |
| 6059 |
- fixed test which did not check for mem leaks albeit it should |
| 6060 |
- core invalid handling of the "fromhost" property, if set via |
| 6061 |
the MsgSetPropsViaJSON() call. This was primarily of concern |
| 6062 |
for pmnormalize and mmexternal, and only if these properties |
| 6063 |
were used by either the rulebase or the external program |
| 6064 |
response. |
| 6065 |
Actually, most of the leaks go back to rsyslog core, but that |
| 6066 |
core functionality was not used by other modules in the same |
| 6067 |
way. But if some other would have used it, the effects would |
| 6068 |
have been the same (so be aware if you wrote custom modules). |
| 6069 |
- bugfix imptcp: fixed pointers for session counting |
| 6070 |
imptcp open, failedopen, and closed pstats counters were assigned the wrong |
| 6071 |
name, thus pstats values did provide a totally wrong picture of what was |
| 6072 |
going on. |
| 6073 |
Thanks to github user jeverakes for the patch. |
| 6074 |
- bugfix omprog: invalid memory access on partial writes to pipe |
| 6075 |
When sending logs to the program, in case of a partial write to the pipe, |
| 6076 |
invalid data was sent, or an invalid memory access could occur. (A |
| 6077 |
partial write can occur if the syscall is interrupted or the pipe is full.) |
| 6078 |
Thanks to Joan Sala for contributing this. |
| 6079 |
- bugfix omprog: rsyslog's environment was not passed to script |
| 6080 |
closes https://github.com/rsyslog/rsyslog/issues/2921 |
| 6081 |
- bugfix omprog: severity of some log messages in waitForChild corrected |
| 6082 |
Log some messages related to child process termination as info/warn |
| 6083 |
instead of error. |
| 6084 |
- bugfix imfile: files which were loaded via symlink were not always followed |
| 6085 |
They were stopped watching after being rotated. |
| 6086 |
closes https://github.com/rsyslog/rsyslog/issues/2229 |
| 6087 |
Thanks to Jiri Vymazal for the patch. |
| 6088 |
- bugfix imfile: potential misaddressing when processing symlinks |
| 6089 |
Fixed parent name when processing symlinks. Detected during code review. |
| 6090 |
There was a garbage byte left before which could cause errors down the |
| 6091 |
road. |
| 6092 |
Thanks to Jiri Vymazal for the patch. |
| 6093 |
- bugfix ommongodb: build issue if mongo-c-driver is not compiled with TLS |
| 6094 |
Let ommongodb module works even if mongo-c-driver is not compiled with SSL support. |
| 6095 |
Thanks to Jérémie Jourdin for the patch. |
| 6096 |
closes https://github.com/rsyslog/rsyslog/issues/2907 |
| 6097 |
- CI: |
| 6098 |
* many changes with the goal to support parallel test execution, e.g. |
| 6099 |
use dynamic ports and file names, changes to testing tools, etc. |
| 6100 |
* kafka tests re-enabled, as they should now no longer be racy. However, |
| 6101 |
this has yet to be proven in practice. |
| 6102 |
* upgrading kafka server version to current |
| 6103 |
* Fixed server configuration issues holding the kafka tests back from working |
| 6104 |
* Fixed some config issues in all sndrcv kafka tests. |
| 6105 |
* Generating dynamically kafka topics now for each kafka test. |
| 6106 |
* Reenabled kafka_multi test which runs a test on 3 kafka/zookeeper instances |
| 6107 |
------------------------------------------------------------------------------ |
| 6108 |
Version 8.37.0 [v8-stable] 2018-08-07 |
| 6109 |
- build system: add --enable-default-tests ./configure option |
| 6110 |
This permits to control the "default tests" in testbench runs. These |
| 6111 |
are those tests that do not need a special configure option. There are |
| 6112 |
some situations where we really want to turn them of so that we can |
| 6113 |
run tests only for a specific component (e.g. ElasticSearch). |
| 6114 |
This commit also removes the --enable-testbench[12] configure switches, |
| 6115 |
which were introduced just to work-around travis runtime restrictions. |
| 6116 |
With the new CI setup and new options we could reduce the Travis runtime |
| 6117 |
dramatically and so we do not need them any longer. |
| 6118 |
- overall adaptation to gcc 8 which emits new warnings |
| 6119 |
- fix some build warnings on 32bit systems, namely armhf architecture |
| 6120 |
- ommail change of behavior: "enable.body" default now "on" |
| 6121 |
This was always documented to be "on", but actually was "off". Usually, we |
| 6122 |
fix the doc, but after long discussion the agreement was that in this |
| 6123 |
specific case it was actually better to change the default. |
| 6124 |
see also: https://github.com/rsyslog/rsyslog/pull/2791 |
| 6125 |
- core/omfile: race in async writing mode |
| 6126 |
mutex was not properly locked at all times when the async writing buffer |
| 6127 |
was flushed |
| 6128 |
Thanks to Radovan Sroka for the patch. |
| 6129 |
- core: provide a somewhat better default action name |
| 6130 |
We now include the module name (e.g. "omelasticsearch" or "builtin:omfile") |
| 6131 |
as part of the name. This is still not perfect, but hopefully a bit |
| 6132 |
easier to grasp. |
| 6133 |
see also https://github.com/rsyslog/rsyslog/issues/342 |
| 6134 |
- new global() parameter "abortOnUncleanConfig" |
| 6135 |
This provides a new-style alternative to $AbortOnUncleanConfig. |
| 6136 |
closes https://github.com/rsyslog/rsyslog/issues/2744 |
| 6137 |
- tcpflood no longer links with -lgrcypt |
| 6138 |
as this is no longer necessary for GnuTLS |
| 6139 |
Thanks to Michael Biebl for the patch. |
| 6140 |
- imjournal: add journal-specific impstats counters |
| 6141 |
these provide some additional insight into journal operations |
| 6142 |
Thanks to Abdul Waheed for the patch. |
| 6143 |
- imjournal: fixed startup on missing state file |
| 6144 |
When starting rsyslog with imjournal for first time it outputs |
| 6145 |
an error and plugin does not run because no state file exists yet. |
| 6146 |
Now it skips the loading and creates state file on first persist. |
| 6147 |
Thanks to Jiri Vymazal for the patch. |
| 6148 |
- imjournal: fetching cursor on readJournal() and simplified pollJournal() |
| 6149 |
Fetching journal cursor in persistJournal could cause us to save |
| 6150 |
invalid cursor leading to duplicating messages further on, when new |
| 6151 |
WorkAroundJournalBug option is set we are saving it on each |
| 6152 |
readJournal() where we now that the state is good. |
| 6153 |
pollJournal() is now cleaner and faster, correctly handles INVALIDATE |
| 6154 |
status from journald and is able to continue polling after journal |
| 6155 |
flush. Also reduced POLL_TIMEOUT a bit as it caused rsyslog to exit |
| 6156 |
with error in corner cases for some ppc when left at full second. |
| 6157 |
re-factored imjournal CI tests with journal_print tool to have more |
| 6158 |
detailed error reporting. |
| 6159 |
Thanks to Jiri Vymazal for the patch. |
| 6160 |
- config: enhance backticks "echo" capability |
| 6161 |
This is now more along the lines of what bash does. We now support |
| 6162 |
multiple environment variable expansions as well as constant text |
| 6163 |
between them. |
| 6164 |
example: |
| 6165 |
env SOMEPATH is set to "/var/log/custompath" |
| 6166 |
config is: param=`echo $SOMEPATH/myfile` |
| 6167 |
param than is expanded to "/var/log/custompath/myfile" |
| 6168 |
among others, this is also needed inside the testbench to properly |
| 6169 |
support "make distcheck". |
| 6170 |
Note: testbench tests follows via separate commit. There will be |
| 6171 |
no special test, as the testbench itself requires the functionality |
| 6172 |
at several places, so the coverage will be very good even without |
| 6173 |
a dedicated test. |
| 6174 |
- imrelp: add support for setting address to bind to (#894) |
| 6175 |
This adds a new optional `address` parameter to `imrelp` inputs in order |
| 6176 |
to specify an address to bind to. |
| 6177 |
Based on support added by rsyslog/librelp@96eb5be |
| 6178 |
Thanks to Simon Wachter for the patch. |
| 6179 |
- omrelp: permit all authmodes; updated tests |
| 6180 |
omrelp for some time limited authentication modes to those |
| 6181 |
that were known. While this was OK, it prevented the easy |
| 6182 |
introduction of new auth modes into librel. |
| 6183 |
This has now been changed; omrelp now checks the validity of |
| 6184 |
the authmode directly via librelp by doing some librelp calls |
| 6185 |
upon processing the configuration. |
| 6186 |
Also, some tests have been updated to check this feature and |
| 6187 |
also ensure that the new librelp mode "certvalid" works |
| 6188 |
(if it is available). |
| 6189 |
- regexp.c: reduce lock contention when using glibc. |
| 6190 |
When using glibc, we enable per-thread regex to avoid lock contention. |
| 6191 |
See: |
| 6192 |
- https://github.com/rsyslog/rsyslog/issues/2759 |
| 6193 |
- https://github.com/rsyslog/rsyslog/pull/2786 |
| 6194 |
- https://sourceware.org/bugzilla/show_bug.cgi?id=11159 |
| 6195 |
This should not affect BSD as they don't seem to take a lock in regexec. |
| 6196 |
NOTE: it is assumed that we can craft an even better solution than |
| 6197 |
this patch, but it improves the situation and we do not have time to |
| 6198 |
craft more. So we decided to merge. For details see |
| 6199 |
https://github.com/rsyslog/rsyslog/pull/2786 |
| 6200 |
- mmpstrucdata: better error message, support $! in var names |
| 6201 |
see also https://github.com/rsyslog/rsyslog/issues/1262#issuecomment-404773495 |
| 6202 |
- more explicit error msg with message modification mod on queue |
| 6203 |
Message modification modules do not work if used with a non-direct queue. |
| 6204 |
We now make this more explicit in the config parsing error message. |
| 6205 |
closes https://github.com/rsyslog/rsyslog/issues/1323 |
| 6206 |
- omrabbitmq: improve high-load performance |
| 6207 |
A different pthread mutex is created for each connection (action) |
| 6208 |
instead of a single one shared by all connections. This will |
| 6209 |
improve performance when using multiple concurrent connections |
| 6210 |
to a single (or multiple) RabbitMQ instance(s) (e.g. for load balancing) |
| 6211 |
Thanks to github user micoq for contributing the patch. |
| 6212 |
- imudp: replace select() calls by poll() |
| 6213 |
This improves reliability in extreme cases (more than 1024 fds open when |
| 6214 |
imudp begins to listen) and potentially improves performance a little. |
| 6215 |
- ommysql: support mysql unix domain socket: |
| 6216 |
via action(.. socket="/tmp/mysqld.sock" ..) |
| 6217 |
Thanks to JoungKyun Kim for contributing this. |
| 6218 |
- impstats: emit warning if log.syslog="off" and ruleset name given |
| 6219 |
With this config, "ruleset" is silently ignored, what probably is |
| 6220 |
not obvious to a user. |
| 6221 |
closes https://github.com/rsyslog/rsyslog/issues/2821 |
| 6222 |
- build system cleanup: remove no longer needed --enable-memcheck |
| 6223 |
This was used for a very old testing capability, no longer functional but |
| 6224 |
causes build to fail if enabled. Replaced by ASAN/valgrind. |
| 6225 |
Issue detected while testing some other CI settings. |
| 6226 |
- tools: Updated python based statslog analyzer sample scripts |
| 6227 |
- developer tools: make devcontainer tool more developer friendly |
| 6228 |
slight improvement for easy interactive use |
| 6229 |
- enable better testing via "make distcheck" |
| 6230 |
Also a couple of changes to testbench worth mentioning: |
| 6231 |
* use cp -f to ensure files can be overwritten in VBUILD |
| 6232 |
* fix issue of missing include test file in EXTRA_DIST |
| 6233 |
* new suppressions |
| 6234 |
* testbench: try to use local system dependency cache |
| 6235 |
avoid going to Internet repos if not absolutely necessary. For |
| 6236 |
development containers, they should be pre-populated with the |
| 6237 |
important dependencies. |
| 6238 |
* do not enable libfaketime if ASAN is selected |
| 6239 |
unfortunately, libfaketime does not work in that case |
| 6240 |
Note: for modules with non-standard dependencies (e.g. databases), |
| 6241 |
"make distcheck" only enables what on the original ./configure line |
| 6242 |
was enabled. This is done in order to ensure that "distcheck" adapts |
| 6243 |
to what is actually available on the system in question. Rsyslog's |
| 6244 |
own CI system installs the maximum set of possible dependencies and |
| 6245 |
so tries the maximum set "make distcheck" can support on a platform. |
| 6246 |
see also https://github.com/rsyslog/rsyslog/issues/174 |
| 6247 |
- add new global config parameter "inputs.timeout.shutdown" |
| 6248 |
- omusrmsg: do not fall back to max username length of 8 |
| 6249 |
This happens if utmp.h and friends are not available and stems back to |
| 6250 |
the original syslogd. Nowadas, 32 is more appropriate and now being used |
| 6251 |
in that (now very unlikely) case. The detection logic for UT_NAMESIZE has |
| 6252 |
also been streamlined. |
| 6253 |
closes https://github.com/rsyslog/rsyslog/issues/2834 |
| 6254 |
- bugfix build system: fix race in parallel builds |
| 6255 |
If libgcry.la is built later than lmcry_gcry.la, there is a failure: |
| 6256 |
[snip] |
| 6257 |
|../aarch64-wrs-linux-libtool --tag=CC --mode=link aarch64-wrs-linux-gcc |
| 6258 |
-o lmcry_gcry.la lmcry_gcry_la-lmcry_gcry.lo libgcry.la -lgcrypt |
| 6259 |
|aarch64-wrs-linux-libtool: error: cannot find the library 'libgcry.la' |
| 6260 |
or unhandled argument 'libgcry.la' |
| 6261 |
|Makefile:1049: recipe for target 'lmcry_gcry.la' failed |
| 6262 |
|make[2]: *** [lmcry_gcry.la] Error 1 |
| 6263 |
[snip] |
| 6264 |
The LIBADD of lmcry_gcry.la contains libgcry.la, we should also add libgcry.la |
| 6265 |
to lmcry_gcry.la's DEPENDENCIES. |
| 6266 |
Thanks to Hongxu Jia for the patch. |
| 6267 |
- bugfix imfile: memory leak upon shutdown (cosmetic) |
| 6268 |
When rsyslog shuts down and imfile is inside a change polling loop, |
| 6269 |
it does not properly free memory returned by glob(). This is a cosmetic |
| 6270 |
bug as the process terminates within the next few milliseconds. However, |
| 6271 |
it causes memory analyzer reports and thus makes CI fail. |
| 6272 |
- bugfix core msg: potential deadlock (and rsyslog hang) |
| 6273 |
can happen e.g. with headerless messages when app-name |
| 6274 |
property is used |
| 6275 |
closes https://github.com/rsyslog/rsyslog/issues/3135 |
| 6276 |
- bugfix core: do not abort startup on problems setting scheduling policy |
| 6277 |
rsyslog creates a default scheduling policy on startup. This code |
| 6278 |
invalidly used CHKiRet (our exception handler) to check pthreads |
| 6279 |
return codes, what this macro cannot do. This lead to hard to |
| 6280 |
diagnose startup problems in cases where there were problems |
| 6281 |
setting the scheduling defaults (e.g. when rsyslog is set to run |
| 6282 |
at idle priority). Even more so, this blocked startup altogether, |
| 6283 |
which is not the right thing to do. Actually, this can be considered |
| 6284 |
a regression from commit 7742b21. That commit was 8 years ago, so |
| 6285 |
in general this cannot be a big issues ;-) |
| 6286 |
The code now emits proper error messages (to stderr, as at this point |
| 6287 |
no other output is available as it is during the initial state of |
| 6288 |
rsyslog initialization) and continues the startup. |
| 6289 |
closes https://github.com/rsyslog/rsyslog/issues/2855 |
| 6290 |
- bugfix core: input shutdown timeout not properly applied |
| 6291 |
The timeout could be reduced by mutex wait time, which was not the |
| 6292 |
intended behavior and could lead the the input thread being |
| 6293 |
cancelled while it would have been perfectly legal to shut it down |
| 6294 |
cleanly. |
| 6295 |
Noticed during working on the CI system. May explain some testbench |
| 6296 |
instability and may have caused trouble with state files (not) |
| 6297 |
properly being written by inputs. |
| 6298 |
- bugfix config optimizer: error in constant folding |
| 6299 |
did not work properly if a string and a number were to be folded. |
| 6300 |
Detected by gcc 8. |
| 6301 |
- build: fix improper function casts |
| 6302 |
no real issue, but generated warnings under gcc 8 and thus |
| 6303 |
broke CI |
| 6304 |
- bugfix omlibdbi: fix potential small memory leak |
| 6305 |
detected by clang static analyzer |
| 6306 |
- bugfix ommysql: unsafe use of strncpy() |
| 6307 |
also now reports oversize names as user error vs. silent truncation |
| 6308 |
overly long names only could affect config load phase |
| 6309 |
- bugfix omhttpfs: fix insecure usage if strncmp() |
| 6310 |
consequences not evaluated as this is a contributed module. |
| 6311 |
Detected by gcc 8. |
| 6312 |
- bugfix mmgrok: cosmetic build issue - compiler warnings |
| 6313 |
caused build under gcc 7 to fail with warning |
| 6314 |
- bugfix mmkubernetes: stops working with non-kubernetes container names |
| 6315 |
When mmkubernetes encounters a record with a CONTAINER_NAME field, |
| 6316 |
but the value does not match the rulebase, mmkubernetes returns |
| 6317 |
an error, and mmkubernetes does not do any further processing |
| 6318 |
of any records. |
| 6319 |
The fix is to check the return value of ln_normalize to see if |
| 6320 |
it is a "hard" error or a "does not match" error. |
| 6321 |
This also adds a test for pod names with dots in them. |
| 6322 |
Thanks to Richard Megginson for the patch. |
| 6323 |
- bugfix mmkubernetes: potential NULL pointer access |
| 6324 |
If token file could not be opened, fclose() was passed a NULL pointer. |
| 6325 |
Thanks to github user jvymazal for finding and Richard Megginson |
| 6326 |
for fixing the issue. |
| 6327 |
- bugfix omsnmp: invalid traptype was not detected |
| 6328 |
this could leave config errors unreported and cause unexpected |
| 6329 |
behavior |
| 6330 |
- bugfix mmkubernetes: default rules use container_name_and_id |
| 6331 |
also include rulebase files in dist and fix rule so that dot inside |
| 6332 |
pod name is supported. |
| 6333 |
Thanks to Richard Megginson for fixing the issue. |
| 6334 |
- bugfix omelasticsearch: build regression |
| 6335 |
Commit 6d4635efbb13907bf651b1a6e5a545effe84d9d9 introduced some compile |
| 6336 |
problems, which were only detected on CentOS6, which unfortunately did |
| 6337 |
not compile omelasticsearch during CI runs |
| 6338 |
- bugfix ommongodb: do not force MongoDB to use "PLAIN" auth mechanism |
| 6339 |
... which also seems not to be handled by current MongoDB. |
| 6340 |
Remove ?authMechanism=PLAIN URI part to let the mongo library chooses the |
| 6341 |
default mechanism. One can force a specific authentication mechanism by |
| 6342 |
adding ?authMechanism=XXX into the uristr argument of the module |
| 6343 |
Thanks to Jérémie Jourdin for the fix. |
| 6344 |
closes https://github.com/rsyslog/rsyslog/issues/2753 |
| 6345 |
- build system: do not disable tests via --disable-liblogging-stdlog |
| 6346 |
This setting controlled both the actual rsyslog functionality as well |
| 6347 |
as some testbench tests, which use liblogging-stdlog to provide some |
| 6348 |
specific functionality. This meant those tests were not run since |
| 6349 |
changing the default. Now untangling the dependency. |
| 6350 |
- CI: |
| 6351 |
* most test refactored to use newer testbench plumbing |
| 6352 |
while no functional change, this permits further enhancements |
| 6353 |
* ElasticSearch startup timeout in tests increased to care for |
| 6354 |
slower test systems |
| 6355 |
* imjournal: fixed tests to actually test plugin functionality |
| 6356 |
Thanks to Jiri Vymazal for the patch. |
| 6357 |
* new test for gnutls priority string in librelp |
| 6358 |
Thanks to github user jvymazal for the patch |
| 6359 |
* testbench: relax hanging instance detection |
| 6360 |
This does not work reliably if multiple instances of rsyslog |
| 6361 |
builds run on a single machine. We need to improve, but this |
| 6362 |
commit makes conflict less likely and provides some diagnostic |
| 6363 |
info to help guide us towards a final solution. |
| 6364 |
* testbench: fix tests that look awfully wrong |
| 6365 |
These tests indicated they terminate rsyslog forcefully without |
| 6366 |
draining the queues, but then checked if they were drained (all |
| 6367 |
messages processed). That does not make sense, and we cannot |
| 6368 |
envision why this was written the first place. So we assume some |
| 6369 |
copy&paste problem was the root of that. |
| 6370 |
* testbench: refactor tests which used "nettester" tool |
| 6371 |
Some old tests are carried out via the nettester tool. This was |
| 6372 |
our initial shot at a testbench a couple of years ago. While it |
| 6373 |
worked back then, the testbench framework has been much enhanced. |
| 6374 |
These old tests are nowadays very hard to handle, as they miss |
| 6375 |
debug support etc. So it is time to refactor them to new style. |
| 6376 |
As a side-activity, the testbench plumbing has been enhanced to |
| 6377 |
support some operations commonly needed by these tests. Contrary |
| 6378 |
to pre-existing plumbing, these new operations are now crafted |
| 6379 |
using bash functions, which we consider superior to the current |
| 6380 |
method. So this is also the start of converting the older-style |
| 6381 |
functionality into bash functions. We just did this now because |
| 6382 |
it was required and we entangled it into the test refactoring |
| 6383 |
because it was really needed. Else we had to write old-style |
| 6384 |
operations and convert them in another commit, which would |
| 6385 |
have been a waste of time. |
| 6386 |
Special thanks to Pascal Withopf for the initial step of taking |
| 6387 |
old tests and putting config as well as test data together into |
| 6388 |
the refactored tests, on which Rainer Gerhards than could build |
| 6389 |
to create the new tests and update testbench plumbing. |
| 6390 |
* testbench: ensure uxsock test leaves no dangling listener instances |
| 6391 |
..in case the test aborts. We utilize the timeout utility for now |
| 6392 |
to prevent this. |
| 6393 |
* testbench: make port for imdiag dynamic |
| 6394 |
This is prep work to support parallel test runs |
| 6395 |
------------------------------------------------------------------------------ |
| 6396 |
Version 8.36.0 [v8-stable] 2018-06-26 |
| 6397 |
- build system change: |
| 6398 |
Liblogging-stdlog was introduced to provide a broader ability to send rsyslog |
| 6399 |
internal logs to different sources. However, most distros did not pick up |
| 6400 |
that capability and so instead we do a regular syslog() call. We assume that |
| 6401 |
the actual functionality is never used in practice, so we plan to retire it. |
| 6402 |
That makes building rsyslog from source easier. |
| 6403 |
The plan is to disable use of liblogging-stdlog by default during |
| 6404 |
configure. So users (and distros!) can still opt-in to have it enabled if |
| 6405 |
they desire. |
| 6406 |
A couple of releases later, we want to completely remove the functionality, |
| 6407 |
except if there has desire been shown in the meantime which justifies to keep |
| 6408 |
liblogging-stdlog. |
| 6409 |
This version disabled liblogging-stdlog by default. We now also |
| 6410 |
emit a warning message ("liblogging-stdlog will go away") so that users |
| 6411 |
know what is going on and my react. |
| 6412 |
closes https://github.com/rsyslog/rsyslog/issues/2705 |
| 6413 |
see also https://github.com/rsyslog/rsyslog/issues/2706 |
| 6414 |
- add openssl driver alongside GnuTLS one for TLS communication |
| 6415 |
The openssl driver is currently experimental. It will become the new preferred |
| 6416 |
driver as it permits us to provide much better end-user error message than |
| 6417 |
we could provide with GnuTLS. It is also less picky with certificate files |
| 6418 |
and provides specific error messages if there are certificate problems. |
| 6419 |
closes: https://github.com/rsyslog/rsyslog/issues/1390 |
| 6420 |
closes: https://github.com/rsyslog/rsyslog/issues/1840 |
| 6421 |
closes: https://github.com/rsyslog/rsyslog/issues/1352 |
| 6422 |
closes: https://github.com/rsyslog/rsyslog/issues/1702 |
| 6423 |
closes: https://github.com/rsyslog/rsyslog/issues/2547 |
| 6424 |
- GnuTLS TLS driver: support intermediate certificates |
| 6425 |
this is necessary for certificate chains |
| 6426 |
Thanks to Arne Nordmark for providing the patch. |
| 6427 |
closes https://github.com/rsyslog/rsyslog/issues/2762 |
| 6428 |
- omelasticsearch: write op types; bulk rejection retries |
| 6429 |
* Add support for a 'create' write operation type in addition to |
| 6430 |
the default 'index'. Using create allows specifying a unique id |
| 6431 |
for each record, and allows duplicate document detection. |
| 6432 |
* Add support for checking each record returned in a bulk index |
| 6433 |
request response. Allow specifying a ruleset to send each failed |
| 6434 |
record to. Add a local variable `omes` which contains the |
| 6435 |
information in the error response, so that users can control how |
| 6436 |
to handle responses e.g. retry, or send to an error file. |
| 6437 |
* Add support for response stats - count successes, duplicates, and |
| 6438 |
different types of failures. |
| 6439 |
* Add testing for bulk index rejections. |
| 6440 |
Thanks to Richard Megginson for the patch. |
| 6441 |
- lookup tables: reload message now with "info" severity (was "error") |
| 6442 |
thanks to Adam Chalkley for the patch |
| 6443 |
- imptcp: add support for regex-based framing |
| 6444 |
for complex multi-line messages (XML in particular), the multiLine method |
| 6445 |
does not work well. We now have a capability to specify via a regex when |
| 6446 |
a frame starts (and the previous thus ends). |
| 6447 |
adds imptcp input parameter "framing.delimiter.regex" |
| 6448 |
- imjournal: add statistics counter |
| 6449 |
following statistics counter are now supported by imjournal |
| 6450 |
- submitted = total number of messages submitted for processing |
| 6451 |
closes https://github.com/rsyslog/rsyslog/issues/2549 |
| 6452 |
- config: permit 4-digit file creation modes |
| 6453 |
permit 4-digit file creation modes (actually 5 with the leading zero) so |
| 6454 |
that the setgid bit can also be set (and anything else on that position. |
| 6455 |
closes https://github.com/rsyslog/rsyslog/issues/1092 |
| 6456 |
- ommongodb: add possibility to ignore some insertion error code |
| 6457 |
new config parameter "allowed_error_codes", which will be ignored if |
| 6458 |
they happen. For example, 11000 DuplicateKey in case of collection |
| 6459 |
containing a unique field. |
| 6460 |
Thanks to Hugo Soszynski for contributing this work |
| 6461 |
- omprog: simplify 'plugin-with-feedback.py' example |
| 6462 |
Make the skeleton easier to understand by removing transaction support. |
| 6463 |
Also, transaction failures did not work as explained in the skeleton, |
| 6464 |
because of issue #2420. In the future, a 'plugin-with-transactions.py' |
| 6465 |
example can be added, ideally once the issue is solved. |
| 6466 |
Thanks to Joan Sala for contributing this. |
| 6467 |
- core: misaddressing when writing disk queue files |
| 6468 |
when writing disk queue files during shutdown, access to freed |
| 6469 |
memory can occur under these circumstances: |
| 6470 |
- action A is processing data, but could not complete it |
| 6471 |
most importantly, the current in-process batch needs not to |
| 6472 |
be totally completed. Most probable cause for this scenario |
| 6473 |
is a suspended action in retry mode. |
| 6474 |
- action A is called from a ruleset RA which |
| 6475 |
- does not have a queue assigned |
| 6476 |
- where RA is called from a ruleset RO which is bound |
| 6477 |
to the input from which the message originated |
| 6478 |
- RO must be defined before RA inside the expanded config |
| 6479 |
- Disk queues (or the disk part of a DA queue) must be utilized by A |
| 6480 |
When re-injecting the unprocessed messages from A into the disk queue, the |
| 6481 |
name of ruleset RO is accessed (for persisting to disk). However, RO is |
| 6482 |
already destructed at this point in time. |
| 6483 |
The patch changes the shutdown processing of rulesets, so that all |
| 6484 |
shutdown processing is done before any ruleset data is destructed. This |
| 6485 |
ensures that all data items which potentially need to be accessed |
| 6486 |
remain valid as long as some part may potentially try to access them. |
| 6487 |
This follows a the approach used in |
| 6488 |
https://github.com/rsyslog/rsyslog/pull/1857 |
| 6489 |
where obviously that part of the problem was not noticed. |
| 6490 |
see also https://github.com/rsyslog/rsyslog/issues/1122 |
| 6491 |
closes https://github.com/rsyslog/rsyslog/issues/2742 |
| 6492 |
- core: fix message loss on target unavailability during shutdown |
| 6493 |
Triggering condition: |
| 6494 |
- action queue in disk mode (or DA) |
| 6495 |
- batch is being processed by failed action in retry mode |
| 6496 |
- rsyslog is shut down without resuming action |
| 6497 |
In these cases messages may be lost by not properly writing them |
| 6498 |
back to the disk queue. |
| 6499 |
closes https://github.com/rsyslog/rsyslog/issues/2760 |
| 6500 |
- imrelp bugfix: error message "librelp too old" is always emitted ... |
| 6501 |
... even if librelp is current. The condition check was actually missing. |
| 6502 |
This commit adds it. |
| 6503 |
closes https://github.com/rsyslog/rsyslog/issues/2712 |
| 6504 |
- imrelp: segfault on startup when cert without priv key is configured |
| 6505 |
closes https://github.com/rsyslog/rsyslog/issues/2747 |
| 6506 |
- omrelp bugfix: segfault on first message sent when authmode was wrong |
| 6507 |
A segfault could occur if the authmode was configured to an invalid value. |
| 6508 |
This is now caught during config processing and an error is reported. |
| 6509 |
closes https://github.com/rsyslog/rsyslog/issues/2743 |
| 6510 |
- imfile bugfix: double-free on module shutdown |
| 6511 |
detected by code review, not seen in practice |
| 6512 |
- imfile/core bugfix: potential misaddressing in string copy routine |
| 6513 |
This can be exposed via imfile, as follows: |
| 6514 |
- use a regex to process multiline messages |
| 6515 |
- configure timeouts |
| 6516 |
- make sure imfile reads a partial message |
| 6517 |
- wait so that at least one timeout occurs |
| 6518 |
- add the message termination sequence |
| 6519 |
This leads to a misaddressing, which may have no obvious effects potentially |
| 6520 |
up to a segfault. |
| 6521 |
closes https://github.com/rsyslog/rsyslog/issues/2661 |
| 6522 |
- imfile bugfix: if freshStartTail is set some initial file lines missing |
| 6523 |
When the option is set and a new file is created after rsyslog startup, |
| 6524 |
freshStartTail is also applied to it. That is data written quickly to it |
| 6525 |
(before rsyslog can process it) will potentially be discarded. If so, |
| 6526 |
and how much, depends on the timing between rsyslog and the logging process. |
| 6527 |
This problem is most likely to be seen in polling mode, where a relatively |
| 6528 |
long time may be required for rsyslog to find the new file. |
| 6529 |
This is changed so that now freshStartTail only applies to files that |
| 6530 |
are already-existing during rsyslog's initial processing of the file |
| 6531 |
monitors. HOWEVER, depending on the number and location (network?) of |
| 6532 |
existing files, this initial startup processing may take some time as |
| 6533 |
well. If another process creates a new file at exactly the time of |
| 6534 |
startup processing and writes data to it, rsyslog might detect this |
| 6535 |
file and it's data as prexisting and may skip it. This race is inevitable. |
| 6536 |
So when freshStartTail is used, some risk of data loss exists. The same |
| 6537 |
holds true if between the last shutdown of rsyslog and its restart log |
| 6538 |
file content has been added. This is no rsyslog bug if it occurs. |
| 6539 |
As such, the rsyslog team advises against activating the freshStartTail |
| 6540 |
option. |
| 6541 |
closes https://github.com/rsyslog/rsyslog/issues/2464 |
| 6542 |
- core: fix undefined behavior (unsigned computation may lead to value < 0) |
| 6543 |
This was detected by LLVM UBSAN. On some platforms re-setting the rawmsg |
| 6544 |
inside the message object could lead to invalid computation due to the |
| 6545 |
fact the the computation was carried out as unsigned and only then |
| 6546 |
converted to integer. |
| 6547 |
No known problem in practice. |
| 6548 |
- CI/QA: |
| 6549 |
- improved Elasticsearch tests so they can now be run without system- |
| 6550 |
installed ES service; also enables us to specify specific ES versions |
| 6551 |
and should now make the tests executable inside a container |
| 6552 |
------------------------------------------------------------------------------ |
| 6553 |
Version 8.35.0 [v8-stable] 2018-05-15 |
| 6554 |
- imptcp: add ability to configure socket backlog |
| 6555 |
this can be useful under heavy load. |
| 6556 |
For a detailed discussion see https://github.com/rsyslog/rsyslog/pull/2561 |
| 6557 |
Thanks to Maxime Graff for implementing this. |
| 6558 |
- omfile: do not permit filename that only consists of whitespace |
| 6559 |
- fmhash: new hash function module |
| 6560 |
implements hash32() and hash64() functions |
| 6561 |
Thanks to Harshvardhan Shrivastava for implementing these |
| 6562 |
- some better error messages |
| 6563 |
- imklog: add ratelimiting capability |
| 6564 |
On Linux kernel logs are ratelimited only for messages using |
| 6565 |
printk_ratelimit(). Some logs do not use this facility, so |
| 6566 |
we ratelimit kernel ourselves. |
| 6567 |
Thanks to Berend De Schouwer for the patch. |
| 6568 |
- omkafka: added impstats counters for librdkafka returned statistics |
| 6569 |
Adds: |
| 6570 |
* statscallback counters |
| 6571 |
* librdkafka failure and error counters |
| 6572 |
* acked message counter |
| 6573 |
Thanks to Abdul Waheed for implementing this. |
| 6574 |
- imudp |
| 6575 |
* use rsyslog message rate-limiter instead of home-grown one |
| 6576 |
imudp introduced it's own (feature-limited) rate-limiting capability for |
| 6577 |
message on disallowed senders before we had central rate-limiters |
| 6578 |
inside rsyslog. Also, that code evolved from running on a single |
| 6579 |
thread to running on multiple threads, which introduced data races |
| 6580 |
and so made unreliable. |
| 6581 |
Now we removed the old rate-limiting capability and depend on the |
| 6582 |
system rate limiter for internal rsyslog messages. |
| 6583 |
closes https://github.com/rsyslog/rsyslog/issues/2467 |
| 6584 |
* add stats counter "disallowed" |
| 6585 |
counts the number of messages discarded due to being received from |
| 6586 |
disallowed senders |
| 6587 |
see also https://github.com/rsyslog/rsyslog/issues/2467 |
| 6588 |
- imrelp: add parameter "oversizeMode" |
| 6589 |
Permits to instruct librelp how to handle oversize messages. The new default |
| 6590 |
is to truncate messages. Previously, the connection was aborted, what often |
| 6591 |
lead to stuck messages at the sender side. Now, there are three options passed |
| 6592 |
down to librelp: |
| 6593 |
* abort - same behavior as previously, connection is aborted on error |
| 6594 |
* truncate - do not abort but instead truncate oversize message to |
| 6595 |
configured max size |
| 6596 |
* accept - accept all oversize messages (note: this can cause security issues, |
| 6597 |
see doc for details) |
| 6598 |
see also https://github.com/rsyslog/rsyslog/pull/1525#issuecomment-384179393 |
| 6599 |
see also https://github.com/rsyslog/rsyslog/issues/2190 |
| 6600 |
closes https://github.com/rsyslog/rsyslog/issues/2633 |
| 6601 |
closes https://github.com/rsyslog/rsyslog/issues/1741 |
| 6602 |
closes https://github.com/rsyslog/rsyslog/issues/1782 |
| 6603 |
closes https://github.com/rsyslog/rsyslog/issues/2496 |
| 6604 |
- core: consistent handling of oversize input messages |
| 6605 |
In the community we frequently discuss handling of oversize messages. |
| 6606 |
David Lang rightfully suggested to create a central capability inside |
| 6607 |
rsyslog core to handle them. |
| 6608 |
We need to make a distinction between input and output messages. Also, |
| 6609 |
input messages frequently need to have some size restrictions done at |
| 6610 |
a lower layer (e.g. protocol layer) for security reasons. Nevertheless, |
| 6611 |
we should have a central capability |
| 6612 |
* for cases where it need not be handled at a lower level |
| 6613 |
* as a safeguard when a module invalidly emits it (imfile is an example, |
| 6614 |
see https://github.com/rsyslog/rsyslog/pull/2632 for a try to fix it |
| 6615 |
on the module level - we will replace that with the new capability |
| 6616 |
described here). |
| 6617 |
The central capability works on message submission, and so cannot be |
| 6618 |
circumvented. It has these capabilities: |
| 6619 |
* oversize message handling modes: |
| 6620 |
- truncate message |
| 6621 |
- split message |
| 6622 |
this is of questionable use, but also often requested. In that mode, |
| 6623 |
the oversize message content is split into multiple messages. Usually, |
| 6624 |
this ends up with message segments where all but the first is lost |
| 6625 |
anyhow as the regular filter rules do not match the other fragments. |
| 6626 |
As it is requested, we still implemented it. |
| 6627 |
- accept message as is, even if oversize |
| 6628 |
This may be required for some cases. Most importantly, it makes |
| 6629 |
quite some sense when writing messages to file, where oversize |
| 6630 |
does not matter (accept from a DoS PoV). |
| 6631 |
* report message to a special "oversize message log file" (not via the |
| 6632 |
regular engine, as that would obviously cause another oversize message) |
| 6633 |
This commit, as the title says, handles oversize INPUT messages. |
| 6634 |
see also https://github.com/rsyslog/rsyslog/issues/2190 |
| 6635 |
closes https://github.com/rsyslog/rsyslog/issues/2681 |
| 6636 |
closes https://github.com/rsyslog/rsyslog/issues/498 |
| 6637 |
Note: this commit adds global parameters: |
| 6638 |
* "oversizemsg.errorfile", |
| 6639 |
is used to specify the location of the oversize message log file. |
| 6640 |
* "oversizemsg.report", |
| 6641 |
is used to control if an error shall be reported when an oversize |
| 6642 |
message is seen. The default it "on". |
| 6643 |
* add global parameter "oversizemsg.input.mode" |
| 6644 |
is used to specify the mode with which oversized messages will |
| 6645 |
be handled. |
| 6646 |
- omfwd: add support for bind-to-address for UDP |
| 6647 |
To allow the same source address to be used regardless of the egress |
| 6648 |
interface taken, an option is added for an address to bind the datagram |
| 6649 |
socket to. Similarly to imudp, it is necessary to add an ipfreebind |
| 6650 |
option which is set by default, so as to avoid an excess of errors at |
| 6651 |
startup before the network interface has come up. This enhancement |
| 6652 |
allows a usecase on networking devices, by which a source interface |
| 6653 |
that is typically a loopback is specified, on which an address to bind |
| 6654 |
to is configured. This is so that the same source address is used for |
| 6655 |
all packets from rsyslog. |
| 6656 |
Thanks to Mike Manning for the patch. |
| 6657 |
- template systemd service file proposes higher permitted file handle limit |
| 6658 |
Especially on busy systems the default are too low. Please keep in mind |
| 6659 |
that on a very busy system even the now-proposed setting may be too low. |
| 6660 |
Thanks to github user jvymazal for the patch. |
| 6661 |
- imuxsock: replace select() call by poll() |
| 6662 |
While extremely unlikely, imuxsock could abort if a file descriptor |
| 6663 |
> 1024 was received during the startup phase (never occurred in |
| 6664 |
practice, but theoretically could if imfile monitored a large number |
| 6665 |
of files and were loaded before imuxsock - and maybe other |
| 6666 |
strange cases). |
| 6667 |
see also https://github.com/rsyslog/rsyslog/issues/2615 |
| 6668 |
- nsdsel_ptcp: replace select() by poll() |
| 6669 |
This removes us of problems with fds > 1024. The performance will |
| 6670 |
probably also increase in most cases. |
| 6671 |
Note this is not a replacement for the epoll drivers, but a general |
| 6672 |
stability improvement when epoll() is not available for some reason. |
| 6673 |
see also https://github.com/rsyslog/rsyslog/issues/2615 |
| 6674 |
closes https://github.com/rsyslog/rsyslog/issues/1728 |
| 6675 |
closes https://github.com/rsyslog/rsyslog/issues/1459 |
| 6676 |
- omprog: refactor tests, fix child closing issues |
| 6677 |
Refactor omprog tests. Fix sync issues in these tests by |
| 6678 |
using the feedback mode (confirmMessages=on) to synchronize |
| 6679 |
the test with the external program. Closes #2403 (I hope) |
| 6680 |
Fix omprog not properly closing child process when |
| 6681 |
signalOnClose=on. Needed for the new tests. Closes #2599 |
| 6682 |
Fix omprog not waiting for the child process to terminate |
| 6683 |
when signalOnClose=off. Needed for the new tests. Closes #2600 |
| 6684 |
Close all fds before executing the child even when valgrind |
| 6685 |
is enabled (--enable-valgrind). Needed for the new tests. |
| 6686 |
Fix memory leak when the xxxTransactionMark parameters were |
| 6687 |
used. |
| 6688 |
Thanks to Joan Sala for the patch. |
| 6689 |
- core: config optimizer did not handle call_indirect |
| 6690 |
This also caused the emission of an "internal error" error message |
| 6691 |
closes https://github.com/rsyslog/rsyslog/issues/2665 |
| 6692 |
- debug support: add capability to print testbench-specific timeout reports |
| 6693 |
done by setting RSYSLOG_DEBUG_TIMEOUTS_TO_STDERR to "on" |
| 6694 |
this is by default activated inside the testbench |
| 6695 |
- mmgrok: fix potential segfault |
| 6696 |
The modules used strtok(), which is not thread-safe. So it will potentially |
| 6697 |
segfault when multiple instances are spawned (what e.g. happens on busy |
| 6698 |
systems). |
| 6699 |
This patch replaces strtok() with its thread-safe counterpart |
| 6700 |
strtok_r(). |
| 6701 |
see also https://github.com/rsyslog/rsyslog/issues/1359 |
| 6702 |
- imrelp bugfix: maxDataSize could be set lower than maxMessageSize |
| 6703 |
maxDataSize specifies the length which will still be accepted |
| 6704 |
It previously could be set to any value, including values lower than the |
| 6705 |
configured rsyslog max message size, which makes no sense. Now this is |
| 6706 |
checked an error message is emitted if the size is set too low. |
| 6707 |
- build system bugfix: build broken if liblogging-stdlog installed in custom path |
| 6708 |
Thanks to Dirk Hörner for the patch. |
| 6709 |
- core bugfix: segfault on queue shutdown |
| 6710 |
if a ruleset queue is in direct mode, a segfault can occur during |
| 6711 |
rsyslog shutdown. The root cause is that a direct queue does not |
| 6712 |
have an associated worker thread pool, but the ruleset destructor |
| 6713 |
does not anticipate that and tries to destruct the worker thread |
| 6714 |
pool. It needs to do this itself, as otherwise we get a race |
| 6715 |
between rulesets on shutdown. |
| 6716 |
This was a regression from |
| 6717 |
https://github.com/rsyslog/rsyslog/commit/3fbd901b3e6300010 |
| 6718 |
closes https://github.com/rsyslog/rsyslog/issues/2480 |
| 6719 |
- imfile bugfix: statefiles contain invalid JSON |
| 6720 |
When imfile rewrites state files, it does not truncate previous |
| 6721 |
content. If the new content is smaller than the existing one, the |
| 6722 |
existing part will not be overwritten, resulting in invalid json. |
| 6723 |
That in turn can lead to some other failures. |
| 6724 |
closes https://github.com/rsyslog/rsyslog/issues/2662 |
| 6725 |
- omfile bugfix: segfault if empty filename was given |
| 6726 |
closes https://github.com/rsyslog/rsyslog/issues/2417 |
| 6727 |
- fix build issues when atomic operations are not present |
| 6728 |
for details, see https://github.com/rsyslog/rsyslog/pull/2604 |
| 6729 |
- lmsig_ksils12 bugfix: build and static analyzer issues |
| 6730 |
The module had a couple of problems building as well as some potential |
| 6731 |
errors detected by clang static analyzer. These have been fixed. |
| 6732 |
Thanks to Allan Park for the patch. |
| 6733 |
closes https://github.com/rsyslog/rsyslog/issues/2517 |
| 6734 |
- impstats bugfix: segfault if bound to non-existing ruleset |
| 6735 |
segfault happens during shutdown; up until unload of impstats, |
| 6736 |
rsyslog works correctly, except that no pstats are emitted. This |
| 6737 |
can be considered to be expected, because the error message |
| 6738 |
indicates the default ruleset is used instead. This is what |
| 6739 |
now actually happens. |
| 6740 |
closes https://github.com/rsyslog/rsyslog/issues/2645 |
| 6741 |
- mmjsonparse bugfix: invalid container name was not detected |
| 6742 |
in debug builds, this will trigger an assertion. In production |
| 6743 |
builds, an rsyslog internal error is logged, but rsyslog |
| 6744 |
continues to run. |
| 6745 |
closes https://github.com/rsyslog/rsyslog/issues/2584 |
| 6746 |
- mmkubernetes bugfixes: fix lnrules, add defaults, add test |
| 6747 |
- Fix lnrules for CONTAINER_NAME |
| 6748 |
- Add pkg check for lognorm >= 2.0.3 so we can set the macro |
| 6749 |
to enable ln_loadSamplesFromString |
| 6750 |
- Add some reasonable default values for parameters, such as |
| 6751 |
kubernetesurl https://kubernetes.default.svc.cluster.local:443 |
| 6752 |
- Clean up sample.conf configuration file |
| 6753 |
Thanks to Richard Megginson for the patch set. |
| 6754 |
- build system bugfix: --enable-atomic-operations did not work |
| 6755 |
closes https://github.com/rsyslog/rsyslog/pull/2604 |
| 6756 |
- bugfix: rsyslog aborts on startup when specific config errors are made |
| 6757 |
The following errors must be made in rsyslog.conf: |
| 6758 |
* no action present |
| 6759 |
* a call statement is used on an undefined ruleset |
| 6760 |
In this case, rsyslog emits an error message on the missing actions and |
| 6761 |
then segfaults. Depending on memory layout, it may also continue to run |
| 6762 |
but do nothing except accepting messages as no action is configured. |
| 6763 |
This patch make rsyslog properly terminate after the error message. It |
| 6764 |
is a change in behavior, but there really is no reason why a defunct |
| 6765 |
instance should be kept running. |
| 6766 |
closes https://github.com/rsyslog/rsyslog/issues/2399 |
| 6767 |
- build system: remove no longer needed --enable-libcurl configure switch |
| 6768 |
The --enable-libcurl switch was added to be able to disable libcurl |
| 6769 |
functionality inside the rsyslog core, see 46f4f43. As libcurl is no |
| 6770 |
longer used inside the core (due to introducing function modules), |
| 6771 |
--enable-libcurl needs to be removed. |
| 6772 |
closes https://github.com/rsyslog/rsyslog/issues/2628 |
| 6773 |
- QA/CI |
| 6774 |
* fixed races in some tests; root cause was that default enq timeout was too |
| 6775 |
low - we may also see in the future that other tests also need adjustment |
| 6776 |
(note that this is not a code problem but rather slow CI environments, |
| 6777 |
so increasing the timeout to get to a stable test state is the absolutely |
| 6778 |
correct thing to do) |
| 6779 |
* enabled some additional useful compiler warnings |
| 6780 |
* new test for diskqueue hitting configured disk space limit |
| 6781 |
* new tests for omfile |
| 6782 |
* added tests for mmkubernetes |
| 6783 |
* added tests for some script functions that were missing them |
| 6784 |
* made far more test compatible with FreeBSD, so that we now have fuller |
| 6785 |
coverage there |
| 6786 |
------------------------------------------------------------------------------ |
| 6787 |
Version 8.34.0 [v8-stable] 2018-04-03 |
| 6788 |
- mmkubernetes: new module |
| 6789 |
Thanks to Richard Megginson and Peter Portante for contributing the module. |
| 6790 |
- rsyslog script: introduce loadable function modules |
| 6791 |
rsyslog scripting can now also be extended via loadable modules - they |
| 6792 |
provides functions (just like loadable input, output, ... modules) |
| 6793 |
see also http://jan.gerhards.net/2018/03/loadable-rainerscript-functions.html |
| 6794 |
- imfile: large refactoring of complete module |
| 6795 |
This commit greatly refactors imfile internal workings. It changes the |
| 6796 |
handling of inotify, FEN, and polling modes. Mostly unchanged is the |
| 6797 |
processing of the way a file is read and state files are kept. |
| 6798 |
This is about a 50% rewrite of the module. |
| 6799 |
Polling, inotify, and FEN modes now use greatly unified code. Some |
| 6800 |
differences still exists and may be changed with further commits. The |
| 6801 |
internal handling of wildcards and file detection has been completely |
| 6802 |
re-written from scratch. For example, previously when multi-level |
| 6803 |
wildcards were used these were not reliably detected. The code also |
| 6804 |
now provides much of the same functionality in all modes, most importantly |
| 6805 |
wildcards are now also supported in polling mode. |
| 6806 |
The refactoring sets ground for further enhancements and smaller |
| 6807 |
refactorings. This commit provides the same feature set that imfile |
| 6808 |
had previously and all existing CI tests pass, as do some newly |
| 6809 |
created tests. |
| 6810 |
Some specific changes: |
| 6811 |
- bugfix: module parameter "sortfiles" ignored |
| 6812 |
This parameter only works in Solaris FEN mode, but is otherwise |
| 6813 |
ignored. Most importantly it is ignored under Linux. |
| 6814 |
fixes https://github.com/rsyslog/rsyslog/issues/2528 |
| 6815 |
- bugfix: imfile did not pick up all files when not present |
| 6816 |
at startup |
| 6817 |
fixes https://github.com/rsyslog/rsyslog/issues/2241 |
| 6818 |
fixes https://github.com/rsyslog/rsyslog/issues/2230 |
| 6819 |
fixes https://github.com/rsyslog/rsyslog/issues/2354 |
| 6820 |
fixes https://github.com/rsyslog/rsyslog/issues/1716 |
| 6821 |
- bugfix: directories only support "*" wildcard, no others |
| 6822 |
fixes https://github.com/rsyslog/rsyslog/issues/2303 |
| 6823 |
- bugfix: parameter "sortfiles" did only work in FEN mode |
| 6824 |
fixes https://github.com/rsyslog/rsyslog/issues/2528 |
| 6825 |
- provides the ability to dynamically add and remove files via |
| 6826 |
multi-level wildcards |
| 6827 |
see also https://github.com/rsyslog/rsyslog/issues/1280 |
| 6828 |
- the state file name currently has been changed to inode number |
| 6829 |
This will further be worked on in upcoming PRs |
| 6830 |
see also https://github.com/rsyslog/rsyslog/issues/2231 |
| 6831 |
- some enhancements were also done to CI tests, most importantly |
| 6832 |
they were made more compatible with BSD |
| 6833 |
Note that most of the mentioned bug fixes cannot be applied to older |
| 6834 |
versions, as they fix design issues which are solved by the refactoring. |
| 6835 |
Thus there are not separate commits for them. |
| 6836 |
There are probably also a number of different issues fixed, which have |
| 6837 |
not yet been full confirmed. Especially anyone having troubles with imfile |
| 6838 |
and wildcards will benefit from the refactoring. |
| 6839 |
closes https://github.com/rsyslog/rsyslog/issues/2359 |
| 6840 |
- omelasticsearch: add support for CA cert, client cert auth |
| 6841 |
This allows omelasticsearch to perform client cert based authentication |
| 6842 |
to Elasticsearch. |
| 6843 |
adds parameters: tls.cacert, tls.mycert, tls.myprivkey |
| 6844 |
Thanks to Richard Megginson for the patch. |
| 6845 |
- omfile-hardening: new contributed module for "omfile hardened operations" |
| 6846 |
This extends omfile with features considered useful for hardening. Comes |
| 6847 |
at the expense of performance loss and changed semantics. |
| 6848 |
Thanks to Mikko Kortelainen for contributing this work. |
| 6849 |
- stream/bugfix: memory leak on stream open if filename as already generated |
| 6850 |
this can happen if imfile reads a state file. On each open, memory for the |
| 6851 |
file name can be lost. |
| 6852 |
We detected this while working on imfile refactoring, so there is no related |
| 6853 |
bug report. No specific test has been crafted, as the refactored imfile |
| 6854 |
tests catch it (as soon as they are merged). |
| 6855 |
- bugfix/omkafka: did not build on platforms without atomic operations |
| 6856 |
Thanks to github user bruce87en for the patch |
| 6857 |
- bugfix/core/ratelimiting: SystemLogRateLimitBurst was limited to 65535 |
| 6858 |
rsyslog uses unsigned short for configuration setting SystemLogRateLimitBurst. |
| 6859 |
Being just 16 bits, unsigned short cannot hold values bigger than 65535. in a |
| 6860 |
practical setting rsyslog misbehaved with SystemLogRateLimitBurst being bigger |
| 6861 |
than 65535. |
| 6862 |
Thanks to github user KaleviKolttonen for the patch. |
| 6863 |
- bugfix imfile: memory leak in readMode 0 |
| 6864 |
closes https://github.com/rsyslog/rsyslog/issues/2421 |
| 6865 |
- bugfix omfile: some error messages had parameters in wrong order |
| 6866 |
which made the message look strange, but still readable |
| 6867 |
Thanks to Hans Rakers for the patch. |
| 6868 |
- bugfix omprog: file handle leak |
| 6869 |
There was a fd leak in the feedback feature added in v8.31.0 (github PR #1753). |
| 6870 |
The leak occurred when omprog was used with the confirmMessages=on setting |
| 6871 |
and no output setting. One fd was leaked every time the external program was |
| 6872 |
started. |
| 6873 |
Thanks to Joan Sala for the patch. |
| 6874 |
- bugfix imuxsock: data alignment problems |
| 6875 |
gcc did rightly complain that the cred and ts pointers would cause |
| 6876 |
alignment problems, so they were converted to structs and the necessary |
| 6877 |
data was memcpy()'ed to them. |
| 6878 |
the aux[] buffer was also potentially misaligned, so making a union |
| 6879 |
out of it and struct cmsghdr insured it was properly aligned. |
| 6880 |
The problems were especially visible on alpha and ia64 machines. |
| 6881 |
Thanks to Jason Duerstock for the fix. |
| 6882 |
- bugfix testbench: some test were accidentally not executed |
| 6883 |
Thanks to Kasumi Hanazuki for the patch. |
| 6884 |
- bugfix tcp subsystem: keepalive settings mixed up |
| 6885 |
TCPKeepAliveIntvl and TPCKeepAliveTime were switched. This is now correct and |
| 6886 |
thus causes a CHANGE OF BeHAVIOR of these settings. We applied this change only |
| 6887 |
after careful consideration of the effect. The contributor Alexandre Pierret |
| 6888 |
explained the situation as such: |
| 6889 |
"From my side, I work with thousands of servers centralizing logs to rsyslog |
| 6890 |
servers in tcp. All of them are running RHEL 6 and 7. The default rsyslog settings |
| 6891 |
in RHEL is TCPKeepAlive off. Since there are thousands of connections on the |
| 6892 |
rsyslog servers, I had to turn the TCPKeepAlive on to setup an aggressive policy |
| 6893 |
regarding ghost connections (following firewall tcp-timeout issue). Basically, |
| 6894 |
I set up: intvl=10 - probe=5 - time=2 If intvl and time are switched, it won't |
| 6895 |
break anything. It will just send 5 more empty tcp packets for 10 seconds (5 |
| 6896 |
probe x 2 seconds), which is painless (any professional grade 100€ router can |
| 6897 |
send more than 1.000.000 PPS). For 3000 servers, it means 3000 pps for 5 |
| 6898 |
seconds (3000 servers x 2 back-and-forth / 2 seconds). Let's take another worst |
| 6899 |
example: intvl=3600 - probe=5 - time=1. It means one keepalive every hour and |
| 6900 |
a 5 retry every 1s after a network issue. If the time and intvl values are |
| 6901 |
switched, it will generate 1 keepalive every seconds, It's a LOT more, but |
| 6902 |
after 5 probe or packet, it will stop. To summarize, I think it won't |
| 6903 |
break anything: |
| 6904 |
* Keepalive is off by default is many linux distribution |
| 6905 |
* When we enable it, it's to set up an aggressive policy. And setting up a |
| 6906 |
10-5-1, 60-5-2, 2-5-60 or 1-20-1 policy is almost the same. |
| 6907 |
Bonus: For people setting up their rsyslog from the documentation, it will |
| 6908 |
now work as expected." |
| 6909 |
This was convincing, and we actually think that the fast majority of users set |
| 6910 |
up keepalive based on the doc and did never verify it actually worked as |
| 6911 |
expected. So we think that in all those cases, rsyslog will finally work as |
| 6912 |
intended. So we consider it justified to "change the behavior" here. |
| 6913 |
full discussion in PR: https://github.com/rsyslog/rsyslog/pull/2367 |
| 6914 |
Thanks to Alexandre Pierret for analyzing the situation and providing the |
| 6915 |
patch. |
| 6916 |
- fix some cosmetic issues found by lgtm.com static code analyzer |
| 6917 |
e.g. header file guard not correctly set - if you really are interested in |
| 6918 |
details, check git log |
| 6919 |
- CI |
| 6920 |
* add build test without atomic operations - now catches missing mutex macros |
| 6921 |
* add lgtm.com static analyzer (automatically called via GitHub PR) |
| 6922 |
* improved stability of global-umask.sh test, which unnecessarily used |
| 6923 |
wildcards for test output file checking. |
| 6924 |
Thanks to Kasumi Hanazuki for the patch. |
| 6925 |
* added some test for omprog with transactional interface |
| 6926 |
Thanks to Joan Sala for the new tests. |
| 6927 |
* fixed some omjournal tests which did not properly check result |
| 6928 |
------------------------------------------------------------------------------ |
| 6929 |
Version 8.33.1 [v8-stable] 2018-03-06 |
| 6930 |
- 8.33.0 tarball release was actually pre-8.33.0 |
| 6931 |
... and so did not contain all features. This alone made a re-release |
| 6932 |
necessary, which is what now happens with 8.33.1. |
| 6933 |
Note: the git 8.33.0 label was correctly applied, "just" the tarball |
| 6934 |
was wrong. |
| 6935 |
- devcontainer: use some more sensible defaults |
| 6936 |
and add ability to specify generic docker run options |
| 6937 |
this makes integration into CI (and other scripting) easier |
| 6938 |
- fix problems with make dist |
| 6939 |
make dist did not package everything that was needed for CI, thus |
| 6940 |
resulting in make check failures if build from tarball. |
| 6941 |
Thanks to Thomas D. (whissi), and Michael Biebl for alerting us on the |
| 6942 |
problem, providing advise and some of the patches. We also added addt'l |
| 6943 |
patches ourselves. The problem occurred as the CI check for tarball |
| 6944 |
completeness was more or less disabled a couple of weeks ago, which |
| 6945 |
unfortunately went unnoticed. We have also applied some more safeguards |
| 6946 |
to detect such problems in the future. |
| 6947 |
------------------------------------------------------------------------------ |
| 6948 |
Version 8.33.0 [v8-stable] 2018-02-20 |
| 6949 |
- auto-detect if running inside a container (as pid 1) |
| 6950 |
adjust defaults in this case to be more container-friendly |
| 6951 |
- config: add include() script object |
| 6952 |
This permits to include files (like legacy $IncludeConfig) via a |
| 6953 |
script object. Needless to say, the script object offers more |
| 6954 |
features: |
| 6955 |
- include files can now be |
| 6956 |
- required, with rsyslog aborting when not present |
| 6957 |
- required, with rsyslog emitting an error message but otherwise |
| 6958 |
continuing when not present |
| 6959 |
- optional, which means non-present include files will be |
| 6960 |
skipped without notice |
| 6961 |
This is controlled by the "mode" parameter. |
| 6962 |
- text can be included form e.g. an environment variable |
| 6963 |
--> ex: include(text=`echo $ENVVAR`) |
| 6964 |
This finally really obsoletes $IncludeConfig. |
| 6965 |
closes https://github.com/rsyslog/rsyslog/issues/2151 |
| 6966 |
- template: add option to generate json "container" |
| 6967 |
This enables easy JSON generation via template. |
| 6968 |
This commit also corrects an issue with the constant "jsonf" |
| 6969 |
format. That was recently added, and the implementation problem |
| 6970 |
only became visible when used inside a larger json object. No |
| 6971 |
officially released code is affected, thought - so it really |
| 6972 |
is just a side-note. |
| 6973 |
closes https://github.com/rsyslog/rsyslog/issues/2347 |
| 6974 |
- core/template: add format jsonf to constant template entries |
| 6975 |
closes https://github.com/rsyslog/rsyslog/issues/2348 |
| 6976 |
- config: add ability to disable config parameter ("config.enabled") |
| 6977 |
For auto-generated configs, it is useful to have the ability to disable some |
| 6978 |
config constructs even though they may be specified inside the config. This |
| 6979 |
can now be done via the ```config.enabled``` parameter, applicable to all |
| 6980 |
script objects. If set to ```on``` or not specified, the construct will be |
| 6981 |
used, if set to any other value, it will be ignored. This can be used |
| 6982 |
together with the backtick functionality to configure enable and disable |
| 6983 |
from either a file or environment variable. |
| 6984 |
closes https://github.com/rsyslog/rsyslog/issues/2431 |
| 6985 |
- script: permit to use environment variables during configuration |
| 6986 |
new constant string type "backticks", inspired by sh |
| 6987 |
(sample: `echo $VARNAME`). |
| 6988 |
- new global config parameter "shutdown.enable.ctlc" |
| 6989 |
permits to shutdown rsyslog via ctl-c; useful e.g. in containers |
| 6990 |
- config optimizer: detect totally empty "if" statements and optimize |
| 6991 |
them out |
| 6992 |
- template: constant entry can now also be formatted as json field |
| 6993 |
This enhancements permits to craft clean templates that generate JSON, |
| 6994 |
e.g. for ElasticSearch consumption (or any other REST API) |
| 6995 |
- omstdout: support for new-style configuration parameters added |
| 6996 |
- core: set TZ on startup if not already set |
| 6997 |
In theory, TZ should be set by the OS. Unfortunately, this seems |
| 6998 |
to be not the case any longer on many Linux distros. We now check |
| 6999 |
it and set it appropriate if not already given. |
| 7000 |
Thanks to github user JPvRiel for providing an excellent explanation |
| 7001 |
of the reasoning for this and how to work around it. |
| 7002 |
closes https://github.com/rsyslog/rsyslog/issues/2054 |
| 7003 |
- imjournal bugfix: file handle leak during journal rotation |
| 7004 |
Thanks to Peter Portante for the patch |
| 7005 |
see also: https://github.com/rsyslog/rsyslog/pull/2437 |
| 7006 |
- lmsig_ksils12 bugfix: dirOwner and dirGroup config was not respected |
| 7007 |
- script bugfix: replace() function worked incorrectly in some cases |
| 7008 |
If the end of the message was similar to the replacement string, parts |
| 7009 |
of the string could (not always) be missing. |
| 7010 |
Thanks to Yaroslav Bo for the patch. |
| 7011 |
- build system bugfix: --disable-libcurl did not work |
| 7012 |
Thanks to Dan Molik, Thomas D. (whissi), and Michael Biebl for the patches. |
| 7013 |
- fixed build issues on Alpine Linux |
| 7014 |
- core bugfix: misaddressing in external command parser |
| 7015 |
This parser is used whenever a module (e.g. omprog) needs to process |
| 7016 |
command lines. If command parameters were given, memory misaddressing |
| 7017 |
occurred. This could lead to a segfault. |
| 7018 |
This is a regression in 8.32.0. |
| 7019 |
closes https://github.com/rsyslog/rsyslog/issues/2408 |
| 7020 |
- core bugfix: small memory leak in external command parser |
| 7021 |
This parser is used whenever a module (e.g. omprog) needs to process |
| 7022 |
command lines. On each action definitions for actions that use the |
| 7023 |
parser a small amount of memory was leaked. It is an uncritical leak |
| 7024 |
as it only occurs during config parsing. So it leaks a couple of |
| 7025 |
KiB during startup but does not grow during actual message processing. |
| 7026 |
This is a regression in 8.32.0. |
| 7027 |
- core bugfix: string not properly terminated when RFC5424 MSGID is used |
| 7028 |
This could lead to misaddressing when the jsonmesg property was used. |
| 7029 |
closes https://github.com/rsyslog/rsyslog/issues/2396 |
| 7030 |
- bugfix: strndup() compatibility layer func copies too much |
| 7031 |
The function did not obey the upper limit, effectively becoming |
| 7032 |
a strdup(). This was only noticed when the compatibility layer |
| 7033 |
was required, most importantly on Solaris 10. |
| 7034 |
- CI system |
| 7035 |
- we now use well-defined containers for parts of the CI runs |
| 7036 |
- now also build test under Alpine Linux |
| 7037 |
- test added for omprog feedback feature |
| 7038 |
------------------------------------------------------------------------------ |
| 7039 |
Version 8.32.0 [v8-stable] 2018-01-09 |
| 7040 |
- NEW BUILD REQUIREMENTs: |
| 7041 |
* libfastjson 0.99.8 is now required; older versions lead to bugs in rsyslog |
| 7042 |
* libczmq >= 3.0.2 is now required for omczmq |
| 7043 |
This was actually required for quite some while, but not properly checked |
| 7044 |
during configure run. If the lib was older, build failed. Now configure |
| 7045 |
detects this and emits the appropriate error message. |
| 7046 |
* libcurl is now needed for rsyslog core |
| 7047 |
due to new script function http_request(). This can be turned off by the |
| 7048 |
new configure option --disable-libcurl. If so, http_request() is not |
| 7049 |
available. |
| 7050 |
- rsyslogd: add capability to specify that no pid file shall be written |
| 7051 |
Command line option -iNONE provides this capability. This utilizes the |
| 7052 |
pre-existing -i option, but uses the special name "NONE" to turn of the |
| 7053 |
pid file check feature. Turning off is useful for systems where this no |
| 7054 |
longer is needed (e.g. systemd based). |
| 7055 |
closes https://github.com/rsyslog/rsyslog/issues/2143 |
| 7056 |
- ompgsql: considerable enhancements |
| 7057 |
The PostgreSQL output module was woefully out-of-date the following |
| 7058 |
list is changes made to update the module to current Rsyslog standards. |
| 7059 |
* allow for v6 configuration syntax |
| 7060 |
* configurable ports |
| 7061 |
* support transactional interface |
| 7062 |
* push db connection into workers (libpq is threadsafe) |
| 7063 |
* enable module testing on travis |
| 7064 |
* ensure configuration syntax backwards compatibility |
| 7065 |
* formatting around postgres core templating |
| 7066 |
* use new test conventions |
| 7067 |
* add new configuration syntax test |
| 7068 |
* add valgrind tests for new and old syntax |
| 7069 |
* add threading tests |
| 7070 |
* add action queue long running tests |
| 7071 |
* add action queue valgrind test |
| 7072 |
Thanks to Dan Molik for contributing this great enhancement! |
| 7073 |
- build system: removed --enable-rtinst configure option |
| 7074 |
This was a historic debugging option which has been superseded by |
| 7075 |
newer tools like valgrind, helgrind, ASAN, TSAN, etc... |
| 7076 |
- pmrfc3164: support for headerless messages |
| 7077 |
pmrfc3164 now detects if the first non-SP, non-HT character is either |
| 7078 |
'{' or '[' and if so assume that no header (TAG, HOSTNAME, DATE) is |
| 7079 |
given. If so, it uses defaults for these values. The full message is |
| 7080 |
used as the MSG part in that case. Note that an initial PRI may still |
| 7081 |
be specified. |
| 7082 |
This follows the trend to send JSON messages via syslog without any |
| 7083 |
header. We use default header values in this case. |
| 7084 |
This right now is a bit experimental; we may roll it back if |
| 7085 |
problems show up in practice. |
| 7086 |
closes https://github.com/rsyslog/rsyslog/issues/2030 |
| 7087 |
- omhiredis: add option to use RPUSH instead of LPUSH |
| 7088 |
see also https://github.com/rsyslog/rsyslog/issues/1625 |
| 7089 |
- mmexternal improvements |
| 7090 |
* better error reporting if to-be-executed script cannot be executed |
| 7091 |
* some general cleanup |
| 7092 |
* better redirection of stdin/out/err for the executed script |
| 7093 |
* bugfix: argv[0] of the script was missing if command line parameters |
| 7094 |
were not specified |
| 7095 |
- omprog: refactored, code shared with mmexternal moved to common object |
| 7096 |
- logctl tool: refactor to support newer rsyslog standards |
| 7097 |
* Made the logctl usertool ISO C90 compliant. |
| 7098 |
* Made the logctl usertool use a homogeneous coding style. |
| 7099 |
Thanks to Hugo Soszynski for contributing this work (as well as |
| 7100 |
suggesting some workarounds related to libmongoc/libbson). |
| 7101 |
- imfile: added support for Solaris File Event notification (FEN) |
| 7102 |
also improves performance under Solaris, with FEN imfile provides |
| 7103 |
features equivalent to inotify mode |
| 7104 |
- core/action: new parameter "action.errorfile" |
| 7105 |
permits to write failed messages to an "error file" so that they |
| 7106 |
can be reviewed and potentially be reprocessed |
| 7107 |
- imfile: added new module parameter "sortFiles" |
| 7108 |
This permits to process newly created files in sorted order. |
| 7109 |
- imuxsock: improved status reporting: socket name received from systemd |
| 7110 |
Providing an indication of what we got from systemd facilitates problem |
| 7111 |
analysis. |
| 7112 |
- build system: added new testbench configure switches |
| 7113 |
now --enable-testbench1 and --enable-testbench2 exists which permit |
| 7114 |
to enable/disable parts of the testbench. By default, both are on |
| 7115 |
when --enable-testbench is given. For full testbench coverage, both |
| 7116 |
options must be given. These options are necessary because under |
| 7117 |
Travis we hit the max runtime for tests and needed to split tests |
| 7118 |
over multiple incarnations. |
| 7119 |
- mmpstrucdata: new parameter "sd_name.lowercase" |
| 7120 |
to permit preserving case for structured data identifiers |
| 7121 |
Special thanks to github user alanrobson for the initial commit that |
| 7122 |
preserves case (on which we based other work). |
| 7123 |
- omfile: add module-global option "dynafile.donotsuspend" |
| 7124 |
this permits to enable SUSPENDing dynafile actions. Traditionally, |
| 7125 |
SUSPEND mode was never entered for dynafiles as it would have blocked |
| 7126 |
overall processing flow. Default is not to suspend (and thus block). |
| 7127 |
closes https://github.com/rsyslog/rsyslog/issues/2236 |
| 7128 |
- testbench: add a capability to turn off libfaketime tests via configure |
| 7129 |
Unfortunately, libfaketime becomes more and more problematic in newer |
| 7130 |
versions and causes aborts on some platforms. This provides the ability |
| 7131 |
to turn it off via --disable-libfaketime. |
| 7132 |
In the longer term, we should consider writing our own replacement. |
| 7133 |
- testbench: name valgrind tests consistently |
| 7134 |
all valgrind tests now end in -vg.sh |
| 7135 |
- RainerScript: add function parse_json() |
| 7136 |
- RainerScript: add function substring() |
| 7137 |
- RainerScript: add function http_request() |
| 7138 |
- RainerScript: add function previous_is_suspended() |
| 7139 |
This function returns a boolean indicating if the previous action is |
| 7140 |
suspended (0 - no, 1 - yes). This is useful if arbitrary processing |
| 7141 |
(other than calling actions) should be made depending on that state. |
| 7142 |
A prime example for this is probably calling a ruleset. |
| 7143 |
closes https://github.com/rsyslog/rsyslog/issues/1939 |
| 7144 |
- Patches from BSD projects have been imported |
| 7145 |
... as far as they still apply. Some patches that patched BSD-specific |
| 7146 |
code were broadened to be more generic. |
| 7147 |
- script bugfix: invalid function names were silently ignored |
| 7148 |
no error message was produced |
| 7149 |
thanks to Matt Ezell for providing the patch. |
| 7150 |
- rainerscript: add int2hex() function |
| 7151 |
- rainerscript: add is_time() function |
| 7152 |
Thanks to Stephen Workman for implementing this. |
| 7153 |
- RainerScript: add function script_error() and error-reporting support |
| 7154 |
This permits script functions that could fail to report errors back, so |
| 7155 |
that the user can handle them if desired. We use an errno-style of |
| 7156 |
interface. That means script_error() needs to be called after functions |
| 7157 |
that supports it. It will return either 0 (all OK) or something else |
| 7158 |
(an error condition). |
| 7159 |
The commit also modifies the parse_time() function to use the new |
| 7160 |
interface. First of all, this is useful for users, and secondly we |
| 7161 |
needed a capability to craft a testbench test. |
| 7162 |
closes https://github.com/rsyslog/rsyslog/issues/1978 |
| 7163 |
- testbench: fixed build problem of testbench tools under Alpine Linux |
| 7164 |
- added --enable-libsystemd configure option to enforce use of libsystemd |
| 7165 |
so we can fail the build on platforms where this is required |
| 7166 |
- core/glbl: remove long-unused option $optimizeforuniprocessor |
| 7167 |
This was still available, but had no effect (for ~10 years or so). The |
| 7168 |
plumbing is now removed. If someone tries to use the option, an |
| 7169 |
error message is generated. |
| 7170 |
closes https://github.com/rsyslog/rsyslog/issues/2280 |
| 7171 |
- core/queue: emit better status messages at rsyslog shutdown |
| 7172 |
this helps to diagnose issue - unfortunately we need more work to ensure |
| 7173 |
that the messages always make it to the user. This is a start and |
| 7174 |
hopefully useful at least for the testbench, possibly more. |
| 7175 |
- fixed a couple of build issues with gcc-7 (in less frequently used modules) |
| 7176 |
- fixed a couple of build issues on the arm platform (actually raspbian) |
| 7177 |
- impstats: fix invalid counter definitions for getrusage() reporting |
| 7178 |
some of the counters were defined as int (32 bit) vs. intctr_t (64 bit). |
| 7179 |
On some platforms "long" seems to be 64bit, and getrusage() provides |
| 7180 |
what we store as int via long. So this caused truncation and/or overflow. |
| 7181 |
This had undefined effects. Most often, everything worked fine |
| 7182 |
for values smaller than 2^31 but sometimes we got negative values. |
| 7183 |
closes https://github.com/rsyslog/rsyslog/issues/1517 |
| 7184 |
- imudp bugfix: potential segfault in ratelimiting |
| 7185 |
The rate-limiter inside imudp was not set to be thread safe, but was |
| 7186 |
used across multiple threads. This worked in default configuration, |
| 7187 |
but failed when RepeatedMsgReduction was set to "on". |
| 7188 |
Note that it in general is a bug to use a rate-limiter in |
| 7189 |
non-threadsafe mode across multiple threads. This also causes invalid |
| 7190 |
rate limiting counts in the default case. |
| 7191 |
closes https://github.com/rsyslog/rsyslog/issues/441 |
| 7192 |
fixes https://github.com/rsyslog/rsyslog/issues/2132 |
| 7193 |
- imptcp bugfix: access to free'ed memory |
| 7194 |
When notifyconnectionclose was on, a string buffer was accessed immediately |
| 7195 |
after it was freed (as part of the connection close operation). |
| 7196 |
Detected by LLVM ASAN. |
| 7197 |
- mmanon bugfix: fix wrong ipv6 embedded recognition |
| 7198 |
mmanon recognized IPv6 with embedded IPv4 that have too few (16 bit) fields. |
| 7199 |
example: 13:abd:45:0.0.0.0 |
| 7200 |
closes https://github.com/rsyslog/rsyslog/issues/2357 |
| 7201 |
- imfile bugfix: not detecting files in directory when wildcards are used. |
| 7202 |
When directories and files are created at the same time, |
| 7203 |
imfile may missed subdirs or file if the machine is on high load. |
| 7204 |
The handling has been enhanced to scan newly created directories ALWAYS for |
| 7205 |
matching files. |
| 7206 |
fixes https://github.com/rsyslog/rsyslog/issues/2271 |
| 7207 |
However there still exist problems with multilevel directory configurations. |
| 7208 |
Details are discussed in https://github.com/rsyslog/rsyslog/issues/2354 |
| 7209 |
Fixes for the remaining issues are expected for 8.33.0. |
| 7210 |
- script bugfix: improper string-to-number conversion for negative numbers |
| 7211 |
- core/action bugfix: 100% CPU utilization on suspension of output module |
| 7212 |
Triggering condition: |
| 7213 |
* output module using the legacy transaction interface |
| 7214 |
(e.g. omelasticsearch, omlibdbi) |
| 7215 |
* output module needs to suspend itself |
| 7216 |
In these cases, rsyslog enters a busy loop trying to resolve the |
| 7217 |
suspend condition. The bug is rooted in rsyslog core action code. |
| 7218 |
This patch fixes it by inserting a 1-second sleep during calls |
| 7219 |
to the resume handler. |
| 7220 |
Note: we cannot sleep exactly as long as tryResume needs. This |
| 7221 |
would require larger refactoring, which probably is not worth for |
| 7222 |
the legacy interface. The current solution is almost as good, as |
| 7223 |
the one second sleep has very little overhead on a real system. |
| 7224 |
Thus we have chosen that approach. |
| 7225 |
This patch now also ensures that failed messages are properly |
| 7226 |
handled and do not cause eternal hang. |
| 7227 |
closes https://github.com/rsyslog/rsyslog/issues/2113 |
| 7228 |
- core/variables bugfix: bare $! cannot be used in set statement |
| 7229 |
fixes https://github.com/rsyslog/rsyslog/issues/326 |
| 7230 |
- core bugfix: auto commit of actions improperly handled |
| 7231 |
The internal state variable bHadAutoCommit was handled in thread-unsafe way |
| 7232 |
and most probably caused (hard to see) issues when action instances were |
| 7233 |
run on multiple worker threads. It looks like the state variable was |
| 7234 |
forgotten to move over to worker state when action workers were introduced. |
| 7235 |
closes https://github.com/rsyslog/rsyslog/issues/2046 |
| 7236 |
- core bugfix: filename length limitation of 199 bytes |
| 7237 |
file names (including path names) longer than 199 bytes could not be |
| 7238 |
handled at many places. This has now been uplifted to 4KiB after careful |
| 7239 |
review for the largest size supported among all relevant platforms. |
| 7240 |
- core bugfix: undefined behavior due to integer overflow |
| 7241 |
when searching strings, we may have an (unsigned) integer overflow |
| 7242 |
which can lead to misaddressing. |
| 7243 |
Detected by clang ubsan. |
| 7244 |
- core bugfix: race on LocalHostIP property during startup |
| 7245 |
The way the default was set could lead to a race if e.g. two internal |
| 7246 |
messages were emitted at startup when the property was not yet set. This |
| 7247 |
has been seen to happen in practice. It had no bad effect except a very |
| 7248 |
small stationary memory leak, but made using thread analyzers unreliable |
| 7249 |
(as it was rightfully detected as a problem). |
| 7250 |
closes https://github.com/rsyslog/rsyslog/issues/2012 |
| 7251 |
- bugfix: potential segfault on startup |
| 7252 |
timezone info table was "sorted" even though it may be NULL. There is |
| 7253 |
no practical case known where this lead to an actual abort, but in |
| 7254 |
theory it would be possible. If so, it would happen immediately on |
| 7255 |
startup. |
| 7256 |
Detected by clang ubsan. |
| 7257 |
- omhiredis bugfix: rsyslog segfault on startup if no template is specified |
| 7258 |
- omprog bugfix: argv[0] not set when using binary without arguments |
| 7259 |
When using the omprog plugin with a binary without arguments, argv[0] (the |
| 7260 |
name of the binary) is not set, causing binaries that depend on this value |
| 7261 |
being set to crash or misbehave. |
| 7262 |
This patch also mildly refactors omprog argv[] creations, albeit some more |
| 7263 |
refactoring would be useful. |
| 7264 |
closes https://github.com/rsyslog/rsyslog/issues/1858 |
| 7265 |
- core: refactoring of rsyslog's cstr "class" |
| 7266 |
Function cstrGetSzStrNoNULL shall modified the string buffer on each call, |
| 7267 |
albeit it is considered a "read-only" function. It currently adds a '\0' |
| 7268 |
at the end. This is bad, especially when multiple threads access the same |
| 7269 |
string. As always the same data is written, it was not causing real issues |
| 7270 |
(except unnecessary cache writes), but it polluted the thread debugger and |
| 7271 |
as such prevent more elaborate automated tests. |
| 7272 |
- parent directory creation function refactored |
| 7273 |
This should not cause any change of behavior, but is worth noting in case |
| 7274 |
we see a regression not caught by the CI system. |
| 7275 |
- mmsnmptrapd bugfix: potential misaddressing |
| 7276 |
This only occurred in situations when the system was totally out of memory. |
| 7277 |
- imkafka: fix potential small resource leak |
| 7278 |
If rdkafka handle cannot fully populated, cleanup is added. Previously, we |
| 7279 |
could leak a handle if e.g. no brokers were available. Note that this was |
| 7280 |
a cosmetic leak, as proper processing is not possible in any case and the |
| 7281 |
leak is once per listener, so not growing. But we now also ensure that |
| 7282 |
proper error reporting and handling is done in any case. Previously, we |
| 7283 |
may have some misleading error messages if the defunct kafka handle was |
| 7284 |
used. |
| 7285 |
closes https://github.com/rsyslog/rsyslog/issues/2084 |
| 7286 |
- imkafka bugfix: do not emit error message on regular state |
| 7287 |
This was misunderstood as an error state and could spam the system |
| 7288 |
log considerably. Regression from 8.31.0. |
| 7289 |
- omkafka: expose operational status to user where useful |
| 7290 |
omkafka emits many useful operational status messages only to the debug |
| 7291 |
log. After careful review, we have exposed many of these as user error |
| 7292 |
and warning message (ex: librdkafka queue full, so user knows why we |
| 7293 |
suspend the plugin temporarily). This may have made the module too |
| 7294 |
chatty. If so, one can always filter out messages via configuration. And |
| 7295 |
if we really went overboard, we can undo those parts with the next |
| 7296 |
release. So it's better to give a bit more than less, as this definitely |
| 7297 |
eases troubleshooting for users. |
| 7298 |
closes https://github.com/rsyslog/rsyslog/pull/2334 |
| 7299 |
- omkafka bugfix: potential message duplication |
| 7300 |
If a message that already failed in librdkafka was resubmitted and that |
| 7301 |
resubmit also failed, it got duplicated. |
| 7302 |
- omkafka: fix multithreading |
| 7303 |
omkafka has several issue if multiple worker instances are used. This commit |
| 7304 |
actually make the module use a single worker thread at max. Reasoning: |
| 7305 |
Librdkafka creates background threads itself. So omkafka basically needs to move |
| 7306 |
memory buffers over to librdkafka, which then does the heavy hauling. As such, we |
| 7307 |
think that it is best to run max one wrkr instance of omkafka -- otherwise we just |
| 7308 |
get additional locking (contention) overhead without any real gain. As such, |
| 7309 |
we use a global mutex for doAction which ensures only one worker can be active |
| 7310 |
at any given time. That mutex is also used to guard utility functions (like |
| 7311 |
tryResume) which may also be accessed by multiple workers in parallel. |
| 7312 |
Note: shall this method be changed, the kafka connection/suspension handling needs |
| 7313 |
to be refactored. The current code assumes that all workers share state information |
| 7314 |
including librdkafka handles. |
| 7315 |
closes https://github.com/rsyslog/rsyslog/issues/2313 |
| 7316 |
- omkafka bugfix: potential misaddressing |
| 7317 |
The failed message list is improperly cleaned. This is a regression |
| 7318 |
from recent commit 4eae19e089b5a83da679fe29398c6b2c10003793, which |
| 7319 |
was introduced in 8.31.0. |
| 7320 |
This problem is more likely to happen under heavy load or bad |
| 7321 |
connectivity, when the local librdkafka queue overruns or message |
| 7322 |
delivery times out. |
| 7323 |
closes https://github.com/rsyslog/rsyslog/issues/2184 |
| 7324 |
closes https://github.com/rsyslog/rsyslog/issues/2067 |
| 7325 |
- omkafka bugfix: build fails with older versions of librdkafka |
| 7326 |
closes https://github.com/rsyslog/rsyslog/issues/2168 |
| 7327 |
- omgssapi bugfix: fix compiler warnings with gcc-7 |
| 7328 |
closes https://github.com/rsyslog/rsyslog/issues/2097 |
| 7329 |
- dnscache bugfix: entries were cached based on IP AND port number |
| 7330 |
That hash key which is used to find out already cached dns entry gets |
| 7331 |
incorrectly computed from the whole sockaddr_storage |
| 7332 |
(sockaddr_in/sockaddr_in6) structure including a sin_port (which doesn't |
| 7333 |
have a static value) instead of only an address, thus creating redundant |
| 7334 |
dns cache entries/consuming more space. This lead to potentially high memory |
| 7335 |
usage and ineffectiveness of the case. It could be considered a memory leak. |
| 7336 |
Thanks to Martin Osvald for the patch. |
| 7337 |
see also: https://github.com/rsyslog/rsyslog/pull/2160 |
| 7338 |
- omkafka bugfix: fixed memory leak |
| 7339 |
a memory leak occurred when librdkafka communicated error/status information |
| 7340 |
to omkafka. this seems to happen relatively frequently, so this leak |
| 7341 |
could be pretty problematic. |
| 7342 |
- mmdblookup bugfix: replace thread-unsafe strtok() by thread-safe counterpart |
| 7343 |
Many thanks to Will Storey (github user @horgh) for mentioning this and |
| 7344 |
his phantastic help in debugging this rsyslog problem! |
| 7345 |
- pmnormalize bugfix: remove unsave "strcat" implementation |
| 7346 |
- rainerscript bugfix: ltrim() and rtrim function misaddressing |
| 7347 |
This could lead to a segfault and was triggered by certain input data |
| 7348 |
schemes. For example, a ltrim(" a") could lead to the fault. |
| 7349 |
- imklog bugfix: local host IP was hardcoded to 127.0.0.1 |
| 7350 |
This is now taken from the global localHostIP setting, which is used |
| 7351 |
consistent across all modules. |
| 7352 |
Also, the removed (2012?) directive $klogLocalIPIF has been added |
| 7353 |
again but directly marked as removed. That way, an informative error |
| 7354 |
message is generated if someone tries to use it. |
| 7355 |
closes https://github.com/rsyslog/rsyslog/issues/2276 |
| 7356 |
- cleanup: remove obsolete pre-KSI GuardTime signature interface |
| 7357 |
this is no longer functional starting Jan 2018 as it reached end of life |
| 7358 |
closes https://github.com/rsyslog/rsyslog/issues/2128 |
| 7359 |
- cleanup: obsolete definition SOL_TCP replaced by newer IPPROTO_TCP |
| 7360 |
this should not have any effect at all except better portability, but is |
| 7361 |
worth mentioning in the ChangeLog nevertheless. |
| 7362 |
- lookup tables: fixed undefined behavior detected by UBSan |
| 7363 |
- CI testing |
| 7364 |
- ARM (via Raspberry PI) added to CI system |
| 7365 |
- Debian 9 added to CI system |
| 7366 |
- omgssapi and usertools components are now also tested in Travis |
| 7367 |
- test coverage on BSD has been enhanced |
| 7368 |
------------------------------------------------------------------------------ |
| 7369 |
Version 8.31.0 [v8-stable] 2017-11-28 |
| 7370 |
- NEW BUILD DEPENDENCY: ommongodb now requires libmongo-c |
| 7371 |
instead of deprecated libmongo-client. |
| 7372 |
- remove systemd embedded code, use libsystemd instead |
| 7373 |
Since the early days rsyslog used the original systemd embedded |
| 7374 |
interface code. This version now uses libsystemd where available. |
| 7375 |
If we do not find libsystemd, we assume the system does not use |
| 7376 |
systemd, which is a safe assumption nowadays. This ensures we use the |
| 7377 |
fresh interface code and also removes bloat from our project. |
| 7378 |
closes https://github.com/rsyslog/rsyslog/issues/1933 |
| 7379 |
- mmanon: add support for IPv6 addresses with embedded IPv4 address |
| 7380 |
While this format is uncommon, it may still be present in logs and as |
| 7381 |
such should be supported. It is configurable via individual settings, |
| 7382 |
though. Especially the number of bits to anonymize may be desired to |
| 7383 |
be different than in pure IPv6. |
| 7384 |
- ommongodb: big refactoring, more or less a feature-enhanced rewrite |
| 7385 |
New features are : |
| 7386 |
* Handle TLS connection to mongodb |
| 7387 |
* Handle MongoDB Replicasets |
| 7388 |
* Added the 'ssl_ca' and 'ssl_cert' directives to configure tls connection |
| 7389 |
* Added 'uristr' directive to configure the connection uri in the form |
| 7390 |
of 'mongodb://...' |
| 7391 |
Now uses the official mongo-c-driver library instead of the deprecated |
| 7392 |
mongo-client library |
| 7393 |
Special thanks to Hugo Soszynski and Jérémie Jourdin for there hard work |
| 7394 |
to make this a reality! |
| 7395 |
See also: https://github.com/rsyslog/rsyslog/pull/1917 |
| 7396 |
- rainerscript: add parse_time() function |
| 7397 |
Thanks to Stephen Workman for implementing this. |
| 7398 |
- omelasticsearch: add LF to every elastic response for error file |
| 7399 |
error file content was written without LF after each message, making |
| 7400 |
it hard to work with and monitor. |
| 7401 |
Thanks to Yaroslav Bo for the patch. |
| 7402 |
- omelasticsearch: add pipeline support |
| 7403 |
supports static and dynamic ElasticSearch pipeline parameter. |
| 7404 |
closes https://github.com/rsyslog/rsyslog/issues/1411 |
| 7405 |
Thanks to github users scibi and WaeCo for the implementation. |
| 7406 |
- lmsig_ksi_ls12: support asynchronous mode of libksi |
| 7407 |
- omprog: added error handling and transaction support for external plugins |
| 7408 |
This permits much better integration of external output modules. |
| 7409 |
Special thanks to Joan Sala for providing this work! |
| 7410 |
- imzmq3/omzmq3: marked as deprecated, modules will be remove in v8.41 |
| 7411 |
see also: https://github.com/rsyslog/rsyslog/issues/2100 |
| 7412 |
- imzmq3/omzmq3: fixed build issues with gcc-7 |
| 7413 |
- core: emit error message on abnormal input thread termination |
| 7414 |
This indicates a serious issue of which the user should be notified. |
| 7415 |
Was not done so far and caused grief when troubleshooting issues. |
| 7416 |
- core: refactored locking for json variable access |
| 7417 |
refactored the method so that it consistent in all functions and easier |
| 7418 |
to follow. Most importantly, now an as simple as possible locking paradigm |
| 7419 |
of lock ... unlock within the function. Hopefully easier to understand |
| 7420 |
both for humans and static code analyzers. |
| 7421 |
- core: refactored creation of UDP sockets |
| 7422 |
was very old, hard to follow code; streamlined that a bit |
| 7423 |
- core/dnscache: refactor locking |
| 7424 |
keep a simple lock ... unlock scheme within the function. That is |
| 7425 |
easier to follow for both humans as well as static analyzers. |
| 7426 |
Also removes Coverity scan CID 185419 |
| 7427 |
- rainerscript: use crypto-grade random number generator for random() function |
| 7428 |
We now use /dev/urandom if available. If not, we fall back to the weak PRNG. |
| 7429 |
- imkafka: improve error reporting and cleanup refactoring |
| 7430 |
- imkafka bugfix: segfault if "broker" parameter is not specified |
| 7431 |
Now emits warning message instead and uses hardcoded default |
| 7432 |
(which usually matches where the kafka broker can be found). |
| 7433 |
fixes https://github.com/rsyslog/rsyslog/issues/2085 |
| 7434 |
- omkafka: improve error reporting |
| 7435 |
- omkafka: slight speedup do to refactoring of LIST class |
| 7436 |
double-linked list was used for temporarily undeliverable message tracking |
| 7437 |
where singly-linked list was sufficient. Changed that. |
| 7438 |
- TCP syslog: support SNI when connecting as a client |
| 7439 |
This is done if a hostname is configured and turned off if an IP is used. |
| 7440 |
Thanks to Art O Cathain for the patch. |
| 7441 |
see also https://github.com/rsyslog/rsyslog/pull/1393 |
| 7442 |
- msg variable bugfix: potential segfault on variable access |
| 7443 |
A segfault is likely to happen if during processing a variable with |
| 7444 |
more than one path component is accessed (e.g. $!path!var) and NO |
| 7445 |
variables oft hat kind (local, message, global) are defined at all. |
| 7446 |
closes https://github.com/rsyslog/rsyslog/issues/1920 |
| 7447 |
- ratelimiting bugfix: data race in Linux-like ratelimiter |
| 7448 |
access to the Linux-like ratelimiter was not properly synchronized, and |
| 7449 |
the system rate-limiter was not using it in any case. |
| 7450 |
This could lead to the rate-limit settings not being properly |
| 7451 |
respected, but no "hard error". |
| 7452 |
- core/template bugfix: potential NULL pointer access at config load |
| 7453 |
could happen if the config was loaded and the parameters could not properly |
| 7454 |
be processed. If so, this occurred only during the startup phase. |
| 7455 |
Detected by Coverity scan, CID 185318 |
| 7456 |
- core/json var subsystem bugfix: segfault in MsgSetPropsViaJSON |
| 7457 |
Invalid libfastjson API use lead to double-free. This was most importantly |
| 7458 |
triggered by mmexternal (but could potentially be triggered by other |
| 7459 |
uses as well) |
| 7460 |
closes https://github.com/rsyslog/rsyslog/issues/1822 |
| 7461 |
- core/wrkr threads bugfix: race condition |
| 7462 |
During e.g. shutdown it could happen that a worker thread was started |
| 7463 |
and immediately be requested to terminate. In such situations there was |
| 7464 |
a race the prevented proper initialization. This could lead to follow-on |
| 7465 |
problems. |
| 7466 |
We believe (but could not proof) that this also could lead to a hang of |
| 7467 |
the termination process. Thus we claim to close an issue tracker down |
| 7468 |
here below, but are not 100% certain it really closes it (we hope for |
| 7469 |
user feedback on this). In any case, the thread debugger showed invalid |
| 7470 |
operations and this has been fixed, so it is useful in any case. |
| 7471 |
closes https://github.com/rsyslog/rsyslog/issues/1959 |
| 7472 |
- core/wtp: potential hang during shutdown |
| 7473 |
when the wtp worker is cancelled in the final stage of shutting down |
| 7474 |
while the mutex is locked and there is one worker left, the system |
| 7475 |
will hang. The reason is that the cancelled thread could not free the |
| 7476 |
mutex that the other needs in order to shut down orderly. |
| 7477 |
Detected with clang thread sanitizer. |
| 7478 |
- omfwd bugfix: generate error message on connection failure |
| 7479 |
- imtcp bugfix: "streamdriver.mode" parameter could not be set to 0 |
| 7480 |
- imjournal bugfix: module was defunctional |
| 7481 |
The open function was broken by commit 92ac801, resulting in |
| 7482 |
no data being ever read from the journal. |
| 7483 |
patch bases on the idea of Radovan Sroka given here: |
| 7484 |
https://github.com/rsyslog/rsyslog/issues/1895#issuecomment-339017357 |
| 7485 |
but follows the current imjournal-paradigm of having the journal |
| 7486 |
handle inside a global variable. |
| 7487 |
see also https://github.com/rsyslog/rsyslog/issues/1895 |
| 7488 |
closes https://github.com/rsyslog/rsyslog/issues/1897 |
| 7489 |
- imjournal: refactor error handling, fix error messages |
| 7490 |
imjournal did not try to recover from errors and used the error state |
| 7491 |
returned by journal functions incorrectly, resulting in misleading |
| 7492 |
error messages. Fixed this and also increased the number of error |
| 7493 |
messages so that it now is easier to diagnose problems with this module. |
| 7494 |
Also a little bit of internal brush-up. |
| 7495 |
-mmdblookup bugfix: fix potential segfault due to threading issues |
| 7496 |
libmaxminddb seems to have issues when running under multiple threads. As |
| 7497 |
a first measure, we prevent mmdblookup now from running on more than one |
| 7498 |
thread concurrently. |
| 7499 |
see also: https://github.com/rsyslog/rsyslog/issues/1885#issuecomment-344882616 |
| 7500 |
- omelasticsearch bugfix: operational error messages not passed to user |
| 7501 |
This lead to sometimes hard to diagnose problem. Note that for obvious |
| 7502 |
reasons the amount of messages from omelasticsearch has increased; this |
| 7503 |
is not a sign of a problem in itself -- but it may reveal problems that |
| 7504 |
existed before and went unnoticed. Also note that too-verbose messages |
| 7505 |
can be filtered out via regular rsyslog methods (e.g. message discarding |
| 7506 |
based on content). |
| 7507 |
- omkafka bugfixes |
| 7508 |
* statistics counter maxoutqsize could not be reset |
| 7509 |
Thanks to github user flisky for the patch. |
| 7510 |
* potential hang condition |
| 7511 |
omkafka did not release a mutex under some error conditions (most |
| 7512 |
notably out of memory on specific alloc calls). This lead to a hang |
| 7513 |
during actively processing messages or during shutdown (at latest). |
| 7514 |
This could happen only if dynamic topics were configured. |
| 7515 |
Detected by Coverity Scan, CID 185781 (originally 185721, detected |
| 7516 |
as a different issue by Coverity after code refactoring done in regard |
| 7517 |
to 185721 -- then the problem became more obvious). |
| 7518 |
* file handle leak, which could occur when local buffering |
| 7519 |
of messages was needed |
| 7520 |
* invalid load of failedmsg file on startup if disabled |
| 7521 |
error "rsyslogd: omkafka: could not load failed messages from " |
| 7522 |
"file (null) error -2027 - failed messages will not be resend." |
| 7523 |
occurs because, despite `keepFailedMessages="off"` as a default, |
| 7524 |
omkafka still tries to check for and load a `(none)` file which |
| 7525 |
triggers an IO error of sorts according to the 2027 link above. |
| 7526 |
Obviously, it probably shouldn't try load the file if |
| 7527 |
`keepFailedMessages` is not enabled. |
| 7528 |
Thanks to github user JPvRiel for a very good error report and |
| 7529 |
analysis. |
| 7530 |
closes https://github.com/rsyslog/rsyslog/issues/1765 |
| 7531 |
* various config parameters did not work |
| 7532 |
These were not even recognized when used and lead to a config startup |
| 7533 |
error message: |
| 7534 |
~ closeTimeout |
| 7535 |
~ reopenOnHup |
| 7536 |
~ resubmitOnFailure |
| 7537 |
~ keepFailedMessages |
| 7538 |
~ failedMsgFile |
| 7539 |
closes https://github.com/rsyslog/rsyslog/issues/2052 |
| 7540 |
* considerable memory leak |
| 7541 |
Whenever a message could (temporarily) not be delivered to kafka, |
| 7542 |
a non-trivial amount of memory was leaked. This could sum up to |
| 7543 |
quite a big memory leak. |
| 7544 |
fixes https://github.com/rsyslog/rsyslog/issues/1991 |
| 7545 |
* some small memory leaks fixed |
| 7546 |
most of them cosmetic or a few bytes statically (not growing as |
| 7547 |
omkafka was used) -- thus we do not mention each one explicitly. |
| 7548 |
For more details, see git commit log or this pull request: |
| 7549 |
https://github.com/rsyslog/rsyslog/pull/2051 |
| 7550 |
- kafka bugfix: problem on invalid kafka configuration values |
| 7551 |
omkafka ended up in an endless loop and high cpu. |
| 7552 |
imkafka tried to subscribe to a not connected kafka server. |
| 7553 |
closes https://github.com/rsyslog/rsyslog/issues/1806 |
| 7554 |
- [io]mgssapi: fix build problems (regression from 8.30.0) |
| 7555 |
- [io]czmq: fix build problems on some platforms (namely gcc 7, clang 5) |
| 7556 |
- tcpsrv bugfix: potential hang during shutdown |
| 7557 |
- queue bugfix: potential hang during shutdown |
| 7558 |
- queue bugfix: NULL pointer dereference during config processing |
| 7559 |
If the queue parameters were incorrectly given, a NULL pointer dereference |
| 7560 |
could happen during config parsing. Once post that stage, no problem could |
| 7561 |
occur. |
| 7562 |
Detected by Coverity scan, CID 185339 |
| 7563 |
- imczmq bugfix: segfault |
| 7564 |
happened in a call to |
| 7565 |
371: zcert_destroy(&serverCert) called from rcvData(). |
| 7566 |
Thanks to ~achiketa Prachanda for the patch. |
| 7567 |
- imfile: some small performance enhancements |
| 7568 |
Thanks to Peter Portante for the patch |
| 7569 |
- omfile: handle file open error via SUSPEND mode |
| 7570 |
For a while, an open file error lead to suspension as the error was |
| 7571 |
not detected by the rule engine. This has changed with fixes |
| 7572 |
in 8.30.0. I asked users what they prefer (and expect) and |
| 7573 |
everyone meant it should still be handled via suspension. See |
| 7574 |
github tracker below for more details. |
| 7575 |
closes https://github.com/rsyslog/rsyslog/issues/1832 |
| 7576 |
- omfile bugfix: race during directory creation can lead to loop |
| 7577 |
There was a race where two threads were competing for directory creation |
| 7578 |
which could lead to none succeeding and a flood of error message like this |
| 7579 |
"error during config processing: omfile: creating parent directories for |
| 7580 |
file". This has been solved. |
| 7581 |
Thanks to Niko Kortström for the patch. |
| 7582 |
- imudp: improve error reporting |
| 7583 |
When udp listener cannot be created, an error message containing |
| 7584 |
the ip-address and port is put out. |
| 7585 |
closes https://github.com/rsyslog/rsyslog/issues/1899 |
| 7586 |
- omrelp bugfix: incorrect error handling |
| 7587 |
if librelp with TLS but without Authentication was included, librelp |
| 7588 |
did not emit the correct error message due to invalid error code |
| 7589 |
check. It also did not err-out but instead suspended itself. |
| 7590 |
Detected by Coverity scan, CID 185362 |
| 7591 |
- [io]mrelp bugfix: segfault on startup if configured cert not readable |
| 7592 |
When the certificate file specified in the omrelp/imrelp configuration |
| 7593 |
can't be accessed, e.g. because it doesn't exist or you don't have |
| 7594 |
permission to do so, a Segmentation Fault will appear when you start |
| 7595 |
Rsyslog. This commit fixes that problem. |
| 7596 |
closes https://github.com/rsyslog/rsyslog/issues/1869 |
| 7597 |
- mmanon fix: make build under gcc 7 |
| 7598 |
Thanks to William Dauchy for the patch |
| 7599 |
- mmpstrucdata bugfix: formatting error of ']' char |
| 7600 |
This was invalidly formatted as '"'. Thanks to github user |
| 7601 |
wu3396 for the error report including the patch idea. |
| 7602 |
closes https://github.com/rsyslog/rsyslog/issues/1826 |
| 7603 |
- mmexternalb bugfix: memory leak |
| 7604 |
- core/stats bugfix: memory leak if sender stats or tracking are enabled |
| 7605 |
- core bugfix: potential segfault during startup |
| 7606 |
A NULL pointer could be accessed if there was a problem with the |
| 7607 |
timezone parameters. Affects only startup, once started, no problem |
| 7608 |
existed. |
| 7609 |
Detected by Coverity scan; CID 185414 |
| 7610 |
- core bugfix: potential race in variable handling |
| 7611 |
Root of variable tree is accessed prior to locking access to it. |
| 7612 |
This introduces a race that may result in various kinds of |
| 7613 |
misaddressing. |
| 7614 |
Found while reviewing code, no bug report exists. |
| 7615 |
- core bugfix: potential segfault when shutting down rsyslog |
| 7616 |
when rulesets are nested a segfault can occur when shutting down |
| 7617 |
rsyslog. the reason is that rule sets are destructed in load order, |
| 7618 |
which means a "later" ruleset may still be active when an "earlier" |
| 7619 |
one was already destructed. In these cases, a "call" can invalidly |
| 7620 |
call into the earlier ruleset, which is destructed and so leads to |
| 7621 |
invalid memory access. If a segfault actually happens depends on the |
| 7622 |
OS, but it is highly probable. |
| 7623 |
The cure is to split the queue shutdown sequence. In a first step, |
| 7624 |
all worker threads are terminated and the queue set to enqOnly. |
| 7625 |
While some are terminated, it is still possible that the others |
| 7626 |
enqueue messages into the queue (which are then just placed into the |
| 7627 |
queue, not processed). After this happens, a call can no longer |
| 7628 |
be issued (as there are no more workers). So then we can destruct |
| 7629 |
the rulesets in any order. |
| 7630 |
closes https://github.com/rsyslog/rsyslog/issues/1122 |
| 7631 |
- core/action bugfix: potential misaddressing when processing hard errors |
| 7632 |
For batches that did fail in an output module, the rsyslog core |
| 7633 |
tries to find offending messages that generate hard (non-recoverable) |
| 7634 |
errors. During this process, the action templates for each message |
| 7635 |
are copied into a temporary buffer. That copy was invalidly sized, |
| 7636 |
actually copying only the first template string. As such, outputs |
| 7637 |
that requested more template strings AND had errors in batch submission |
| 7638 |
received uninitialized pointers. This could lead to all sorts of |
| 7639 |
problems. |
| 7640 |
see also https://github.com/rsyslog/rsyslog/issues/1885 |
| 7641 |
closes https://github.com/rsyslog/rsyslog/issues/1906 |
| 7642 |
- template object bugfix: NULL pointer access on invalid parameters |
| 7643 |
could happen only during startup |
| 7644 |
Detected by Coverity scan, CID 185376 |
| 7645 |
- omjournal bugfix: NULL pointer access on invalid parameters |
| 7646 |
could happen only during startup |
| 7647 |
- omelasticsearch bugfix: configured credentials not used during health check |
| 7648 |
Authentication credentials were not applied during health check, |
| 7649 |
permission to use unsigned CERTS was not applied to regular data post. |
| 7650 |
closes https://github.com/rsyslog/rsyslog/issues/1949 |
| 7651 |
- omelasticsearch bugfix: abort on unavailable ES server |
| 7652 |
Depending on the state of unavailability (libcurl return code), |
| 7653 |
omelasticsearch tries to process a NULL return message, what |
| 7654 |
leads to a segfault. |
| 7655 |
This fixes the problem and introduces better error handling and |
| 7656 |
better error messages. |
| 7657 |
see also https://github.com/rsyslog/rsyslog/issues/1885 |
| 7658 |
- omelasticsearch: fix memory leak and potential misaddressing |
| 7659 |
Commit 96b5fce introduced regressions, leading to potential misaddressing |
| 7660 |
and a very probable memory leak. This commit fixes the issues and |
| 7661 |
hardens the module to better detect some error cases in the |
| 7662 |
future. |
| 7663 |
It also adds valgrind-based testbench tests which ensure that no |
| 7664 |
pointer errors exist. If they had been in place, the regressions |
| 7665 |
would never have been undetected. |
| 7666 |
Note that commit 96b5fce was introduced in 8.23.0 on Nov, 15th 2016. |
| 7667 |
Many thanks to Yaroslav Bo for alerting me on the root problem and |
| 7668 |
providing a very good analysis and guidance. |
| 7669 |
see also https://github.com/rsyslog/rsyslog/issues/1906 |
| 7670 |
see also https://github.com/rsyslog/rsyslog/issues/1964 |
| 7671 |
closes https://github.com/rsyslog/rsyslog/issues/1962 |
| 7672 |
- omelasticsearch bugfix: output from libcurl to stdout |
| 7673 |
omelasticsearch made libcurl output messages to stdout. This |
| 7674 |
commit fixes that. It also automatically enables libcurl verbose |
| 7675 |
mode during debug runs - it needs to be seen if this is smart or |
| 7676 |
not (previously, code needed to be commented in). |
| 7677 |
closes https://github.com/rsyslog/rsyslog/issues/1909 |
| 7678 |
- iczmq bugfix: potential memory leak |
| 7679 |
- imptcp bugfix: potential misaddressing |
| 7680 |
When during a connection request the remote peer could not be |
| 7681 |
identified, imptcp could misaddress memory if it is configured |
| 7682 |
to emit messages on connection open. |
| 7683 |
Detected by clang 5.0 static analyzer. |
| 7684 |
- imptcp: potential buffer overflow |
| 7685 |
if the local hostname or IP is larger than NI_MAXHOST-1, an internal |
| 7686 |
buffer is overflowed. This is irrespective of any input data. |
| 7687 |
Detected by Coverity scan, CID 185390 |
| 7688 |
- core/nsd_gtls: fix potential uninitialized data access |
| 7689 |
could occur during certificate check |
| 7690 |
found by clang 5.0 static analyzer |
| 7691 |
- stats bugfix: potential program hang |
| 7692 |
due to missing unlock. This could only occur if pstats was set to |
| 7693 |
CEE-format logging (very uncommon) AND if the system runs out of |
| 7694 |
memory (in which case other things go pretty bad as well). |
| 7695 |
found by Coverity scan |
| 7696 |
- omfwd bugfix: memory leak if network namespaces are used |
| 7697 |
very seldom used feature, occurs only during error case |
| 7698 |
found by Coverity scan. |
| 7699 |
- core: potential misaddressing when accessing JSON properties |
| 7700 |
When a JSON property is accessed in template processing, memory may |
| 7701 |
have been misaddressed or a double-free may occur while obtaining the |
| 7702 |
property. |
| 7703 |
This was detected by a Coverity scan. |
| 7704 |
- gcry crypto provider bugfixes: potential misaddressing and memory leak |
| 7705 |
If the config parameters were invalid, a misaddressing could occur. If so, |
| 7706 |
this happens only during startup. |
| 7707 |
Also, a memory leak existed when the crypto provider errored out. This could |
| 7708 |
build up if it were used in frequently-changing dynafiles. This was |
| 7709 |
detected by Coverity scan, CID 185360. |
| 7710 |
- core/file stream object bugfix: memory leak |
| 7711 |
If a multiline read errored out, a line buffer could be leaked. |
| 7712 |
Detected by Coverity scan, CID 185328 |
| 7713 |
- imdiag bugfix: double mutex unlock when working with stats |
| 7714 |
Note: while this could potentially lead to a program hang, it affected |
| 7715 |
only testbench execution as imdiag is a testbench-only tool. |
| 7716 |
Detected by Coverity scan, CID 185348 and 185350 |
| 7717 |
- fixed several minor and cosmetic issues found by Coverity scan |
| 7718 |
including false positives. For details see "$ git log". All noteworthy |
| 7719 |
issues are separately mentioned in this ChangeLog. The ones not mentioned |
| 7720 |
are for example problems that can only occur during out of memory |
| 7721 |
conditions, under which it is extremely likely tha the rsyslog process |
| 7722 |
will be killed in any case |
| 7723 |
- testbench: |
| 7724 |
* added compile-check for [io]mgssapi, mmcount |
| 7725 |
* harden tests against hanging previous instances |
| 7726 |
* re-enable RELP tests on Solaris |
| 7727 |
* added basic test for imjournal |
| 7728 |
* added threading tests via valgrind's helgrind tool |
| 7729 |
* added valgrind test for kafka modules |
| 7730 |
* added capability to run elasticsearch tests with |
| 7731 |
a) different ElasticSearch versions |
| 7732 |
b) independently from OS-installed version |
| 7733 |
This also sets base to enable more elaborate ES tests |
| 7734 |
* further relaxed timing of dynstats tests, as they tend to create |
| 7735 |
false positives on slow machines |
| 7736 |
- CI: improved test coverage on FreeBSD |
| 7737 |
- Travis: clang static analyzer 5.0 now run over all source files |
| 7738 |
- build: make compile warning-free under gcc 7 |
| 7739 |
------------------------------------------------------------------------------ |
| 7740 |
Version 8.30.0 [v8-stable] 2017-10-17 |
| 7741 |
- NEW BUILD REQUIREMENTS |
| 7742 |
* libfastjson 0.99.7 is now mandatory |
| 7743 |
the new version is required to support case-insensitive variable |
| 7744 |
comparisons, which are now the default |
| 7745 |
* when building imjournal, libsystemd-journal >= 234 is now recommended |
| 7746 |
This is to support the imjournal enhancement. Note that it is possible |
| 7747 |
to build with lower version, but this will degrade imjournal functionality. |
| 7748 |
- CHANGE OF BEHAVIOR: all variables are now case-insensitive by default |
| 7749 |
Formerly, JSON based variables ($!, $., $/) were case-sensitive. |
| 7750 |
Turn old default back on: global(variables.casesensitive="on") |
| 7751 |
See ChangeLog entry below for more details. |
| 7752 |
- core: handle (JSON) variables in case-insensitive way |
| 7753 |
The variable system inside rsyslog is JSON based (for easy consumption |
| 7754 |
of JSON input, the prime source of structured data). In JSON, keys |
| 7755 |
("variable names") are case-sensitive. This causes constant problems |
| 7756 |
inside rsyslog configurations. A major nit is that case-insensitivity |
| 7757 |
option inside templates (even if turned on) does not work with JSON |
| 7758 |
keys because they of inner workings*1. |
| 7759 |
It is much more natural to treat keys in a case-INsensitive way (e.g. |
| 7760 |
"$!Key" and "$!key" are the same). We do not expect any real problems |
| 7761 |
out of this, as key names only differing in case is highly unlikely. |
| 7762 |
However, as it is possible we provide a way to enable case-sensitivity |
| 7763 |
via the global(variables.casesensitive="on") global config object. |
| 7764 |
Note that the default is to do case-insensitive matches. The reason |
| 7765 |
is that this is the right thing to do in almost all cases, and we do |
| 7766 |
not envision any problems at all in existing deployments. |
| 7767 |
*1 Note: case-insensitivity in rsyslog is achieved by converting all |
| 7768 |
names to lower case. So that the higher speed of strcmp() can be used. |
| 7769 |
The template option does actually that, convert the template keys to |
| 7770 |
lower case. Unfortunately, this does not work with JSON, as JSON keys |
| 7771 |
are NOT converted to lower case. |
| 7772 |
closes https://github.com/rsyslog/rsyslog/issues/1805 |
| 7773 |
- imjournal: made switching to persistent journal in runtime possible |
| 7774 |
with this patch imjournal can continue logging after switch to |
| 7775 |
persistent journal without need to restart rsyslog service |
| 7776 |
Thanks to github user jvymazal for the patch |
| 7777 |
- mmanon: complete refactor and enhancements |
| 7778 |
- add pseudonymization mode |
| 7779 |
- add address randomization mode |
| 7780 |
- add support for IPv6 (this also supports various replacement modes) |
| 7781 |
closes https://github.com/rsyslog/rsyslog/issues/1614 |
| 7782 |
also fixes bugs |
| 7783 |
- in IPv4 address recognition |
| 7784 |
closes https://github.com/rsyslog/rsyslog/issues/1720 |
| 7785 |
- in IPv4 simple mode to-be-anonymized bits can get wrong |
| 7786 |
closes https://github.com/rsyslog/rsyslog/issues/1717 |
| 7787 |
- imfile: add "fileoffset" metadata |
| 7788 |
This permits to send the offset from which the message was read together |
| 7789 |
with the message text. |
| 7790 |
Thanks to github user derekjsonar for the initial implementation which |
| 7791 |
we extended to use the message start offset. |
| 7792 |
- RainerScript: add ltrim and rtrim functions |
| 7793 |
closes https://github.com/rsyslog/rsyslog/issues/1711 |
| 7794 |
- core: report module name when suspending action |
| 7795 |
Thanks to Orion Poplawski for the patch. |
| 7796 |
- core: add ability to limit number of error messages going to stderr |
| 7797 |
This permits to put a hard limit on the number of messages that can |
| 7798 |
go to stderr. If for nothing else, this capability is helpful for the |
| 7799 |
testbench. It permits to reduce spamming the test log while still |
| 7800 |
providing the ability to see initial error messages. Might also be |
| 7801 |
useful for some practical deployments. |
| 7802 |
global parameter: global(errorMessagesToStderr.maxNumber) |
| 7803 |
- tcpsrv subsystem: improve clarity of some error messages |
| 7804 |
operating system error message are added to some messages, providing |
| 7805 |
better advise of what actually is the error cause |
| 7806 |
- imptcp: include module name in error msg |
| 7807 |
- imtcp: include module name in error msg |
| 7808 |
- tls improvement: better error message if certificate file cannot be read |
| 7809 |
- omfwd: slightly improved error messages during config parsing |
| 7810 |
They now contain config file/line number information where this was missing. |
| 7811 |
- ommysql improvements |
| 7812 |
* Return specific code for unrecoverable errors. This makes retry processing |
| 7813 |
more performant and robust. |
| 7814 |
* error messages improved |
| 7815 |
* Update to utilize native v8 transactional interface. Previously, it used |
| 7816 |
the v7 interface with v8 emulation. |
| 7817 |
* treat server and client-generated messages differently |
| 7818 |
Server-generated error messages are considered non-recoverable, while |
| 7819 |
client generated once point into connection problems (which simply can |
| 7820 |
be retried). This is part of the improvements towards better |
| 7821 |
message-induced errors. Previous commits did only handle SQL parsing |
| 7822 |
errors, now we aim to address all of the message-induced error. We assume |
| 7823 |
that all server-generated errors are such - mysql API unfortunately does |
| 7824 |
not provide a clear indication of what type if error this is and it is |
| 7825 |
out of question to check for hundreds of error codes. |
| 7826 |
closes https://github.com/rsyslog/rsyslog/issues/1830 |
| 7827 |
- ommysql bugfix: do not duplicate entries on failed transaction |
| 7828 |
If a multi-message batch contains data errors, messages may be |
| 7829 |
duplicated as connection close is implicit commit (not rollback). |
| 7830 |
This patch introduces a specific rollback request in those cases. |
| 7831 |
closes https://github.com/rsyslog/rsyslog/issues/1829 |
| 7832 |
- imtcp bugfix: parameter priorityString was ignored |
| 7833 |
defaults were always used |
| 7834 |
- template/bugfix: invalid template option conflict detection |
| 7835 |
This prevented "option.casesensitive" to be used with the SQL and JSON |
| 7836 |
options. |
| 7837 |
- core/actions: fix handling of data-induced errors |
| 7838 |
Rsyslog core should try to detect data-induced (unrecoverable) errors |
| 7839 |
during action processing. An example of such is invalid SQL statements. |
| 7840 |
If the action returns a data error, rsyslog shall retry individual |
| 7841 |
messages from a batch in an effort to log those without errors. The others |
| 7842 |
shall be dropped. |
| 7843 |
This logic was temporarily disabled after the switch to the new v8 |
| 7844 |
transaction interface. Now this bug is fixed and the testbench has been |
| 7845 |
amended to detect problems in the future. |
| 7846 |
closes https://github.com/rsyslog/rsyslog/issues/974 |
| 7847 |
- core/action bugfix: no "action suspended" message during retry processing |
| 7848 |
The action engine does not emit "action suspended" messages but "resumed" |
| 7849 |
ones in retry processing. This is wrong, as they are a strong indication |
| 7850 |
that something does not work correctly. Nevertheless, "resumed" messages |
| 7851 |
were emitted, which was very puzzling for the user. |
| 7852 |
This patch fixes it so that "suspend" messages are given during retry |
| 7853 |
processing. These do not contain a retry timestamp, providing evidence |
| 7854 |
that a retry is currently being tried. |
| 7855 |
closes https://github.com/rsyslog/rsyslog/issues/1069 |
| 7856 |
- core/ratelimit bugfix: race can lead to segfault |
| 7857 |
There was a race in iminternalAddMsg(), where the mutex is |
| 7858 |
released and after that the passed message object is accessed. |
| 7859 |
If the mainloop iterates in between, the msg may have already |
| 7860 |
been deleted by this time, resulting in a segfault. |
| 7861 |
Most importantly, there is no need to release the mutex lock |
| 7862 |
early, as suggested by current code. Inside mainloop the mutex |
| 7863 |
is acquired when it is time to do so, so at worst we'll have a |
| 7864 |
very slight wait there (which really does not matter at all). |
| 7865 |
This only happens if a large number of internal messages are emitted. |
| 7866 |
closes https://github.com/rsyslog/rsyslog/issues/1828 |
| 7867 |
- core bugfix: rsyslog aborts if errmsg is generated in early startup |
| 7868 |
Note that the segfault can occur only during early startup. Once |
| 7869 |
rsyslog has started, everything works reliably. This condition can |
| 7870 |
especially be triggered by specifying invalid TLS default certificates. |
| 7871 |
closes https://github.com/rsyslog/rsyslog/issues/1783 |
| 7872 |
closes https://github.com/rsyslog/rsyslog/issues/1786 |
| 7873 |
- core bugfix: informational messages was logged with error severity |
| 7874 |
When the main loop reaped a child process (a normal action), this was |
| 7875 |
reported as an error. This caused user confusion. Now it is reported as |
| 7876 |
an informational message. |
| 7877 |
- core bugfix: --enable-debugless build was broken |
| 7878 |
This was a regression from the v8.29.0 debug enhancements |
| 7879 |
Thanks to Stephen Workman for the patch. |
| 7880 |
- queue bugfix: file write error message was incorrect |
| 7881 |
when a queue was restarted from disk file, it almost always |
| 7882 |
emitted a message claiming |
| 7883 |
"file opened for non-append write, but already contains xxx bytes" |
| 7884 |
This message was wrong and did not indicate a real error condition. |
| 7885 |
The predicate check was incorrect. |
| 7886 |
closes https://github.com/rsyslog/rsyslog/issues/170 (kind of) |
| 7887 |
- omrelp bugfix: segfault when rebindinterval parameter is used |
| 7888 |
- imudp bugfix: UDP oversize message not properly handled |
| 7889 |
When a message larger than supported by the UDP stack is to be sent, |
| 7890 |
EMSGSIZE is returned, but not specifically handled. That in turn |
| 7891 |
will lead to action suspension. However, this does not make sense |
| 7892 |
because messages over the UDP max message size simply cannot be sent. |
| 7893 |
closes https://github.com/rsyslog/rsyslog/issues/1654 |
| 7894 |
- core bugfix: memory corruption during configuration parsing |
| 7895 |
when omfwd is used with the $streamdriverpermittedpeers legacy |
| 7896 |
parameter, a memory corruption can occur. This depends on the |
| 7897 |
length of the provided strings and probably the malloc subsystem. |
| 7898 |
Once config parsing succeeds, no problem can happen. |
| 7899 |
Thanks to Brent Douglas for initially reporting this issue and |
| 7900 |
providing great analysis. |
| 7901 |
Thanks to github user bwdoll for analyzing this bug and providing |
| 7902 |
a suggested fix (which is almost what this commit includes). |
| 7903 |
closes https://github.com/rsyslog/rsyslog/issues/1408 |
| 7904 |
closes https://github.com/rsyslog/rsyslog/issues/1474 |
| 7905 |
- core bugfix: race on worker thread termination during shutdown |
| 7906 |
The testbench got some occasionally failing tests. Review of |
| 7907 |
them brought up the idea that there is a race during worker |
| 7908 |
threat termination. Further investigation showed that this |
| 7909 |
might be a long-standing issue, but so far did not really |
| 7910 |
surface as the timing was almost always correct. However, |
| 7911 |
with the new functionality to emit a message on worker |
| 7912 |
shutdown (v8.29), the timing got more complex and now this |
| 7913 |
seemed to occasionally surface. |
| 7914 |
closes https://github.com/rsyslog/rsyslog/issues/1754 |
| 7915 |
- omelasticsearch: avoid ES5 warnings while sending json in bulkmode |
| 7916 |
do this by adding proper content type header to ES request |
| 7917 |
Thanks to William Dauchy for the patch |
| 7918 |
- omelasticsearch bugfix: incompatibility with newer ElasticSearch version |
| 7919 |
ElasticSearch changed its API in newer versions. When "bulkmode" is enabled |
| 7920 |
in omelasticsearch, rsyslog seems to consider all responses from Elasticsearch |
| 7921 |
as errors, even the successful ones. As a consequence, every single request |
| 7922 |
ends up being logged into the error file. |
| 7923 |
closes https://github.com/rsyslog/rsyslog/issues/1731 |
| 7924 |
Thanks to Vincent Quéméner for the patch. |
| 7925 |
- imptcp bugfix: invalid mutex addressing on some platforms |
| 7926 |
code did not compile on platforms without atomic instructions |
| 7927 |
Thanks to github user petiepooo for the patch |
| 7928 |
- imptcp bugfix: do not accept missing port in legacy listener definition |
| 7929 |
If legacy listener definition was used, a missing port was accepted during |
| 7930 |
the config read phase but errored out upon listener activation. This now |
| 7931 |
errors out directly when processing the config directive. |
| 7932 |
------------------------------------------------------------------------------ |
| 7933 |
Version 8.29.0 [v8-stable] 2017-08-08 |
| 7934 |
- imptcp: add experimental parameter "multiline" |
| 7935 |
This enables a heuristic to support multiline messages on raw tcp syslog |
| 7936 |
connections. |
| 7937 |
- imptcp: framing-related error messages now also indicate remote peer |
| 7938 |
This is the case e.g. for oversize messages. |
| 7939 |
- imtcp: framing-related error messages now also indicate remote peer |
| 7940 |
This is the case e.g. for oversize messages. |
| 7941 |
- imptcp: add session statistics counter |
| 7942 |
- session.opened |
| 7943 |
- session.openfailed |
| 7944 |
- session.closed |
| 7945 |
- imtcp: add ability to specify GnuTLS priority string |
| 7946 |
This permits to set cipher details on a very low level. |
| 7947 |
- impstats: add new resource counter "openfiles" |
| 7948 |
- pmnormalize: new parser module |
| 7949 |
Parser module that uses liblognorm to parse incoming messages. |
| 7950 |
- core/queue: provide informational messages on thread startup and shutdown |
| 7951 |
This provides better insight into operational state of rsyslog and is useful |
| 7952 |
in monitoring system health. Note that this causes the emission of messages |
| 7953 |
not previously seen. They are of syslog.informational priority. |
| 7954 |
- omfwd/udp: improve error reporting, deprecate maxerrormessages parameter |
| 7955 |
Generally improved udp-related error messages (e.g. they now contain the |
| 7956 |
socket number, which makes it easier to related them to errors reported by |
| 7957 |
net.c subsystem). |
| 7958 |
We also deprecated (removed) the "maxerrormessages" configuration parameters. |
| 7959 |
It provided some very rough rate-limiting capabilities and was introduced |
| 7960 |
before we had native rate-limiters. The default was that only the first 5 |
| 7961 |
error messages were actually reported. For long-running instances, that |
| 7962 |
meant that in many cases no errors were ever reported. We now use the default |
| 7963 |
internal message rate limiter, which works far better and ensures that also |
| 7964 |
long-running instances will be able to emit error messages after prolonged |
| 7965 |
runtime. In contrast, this also means that users will see more error |
| 7966 |
messages from rsyslog, but that should actually improve the end user |
| 7967 |
experience. |
| 7968 |
- core: add parameters debug.file and debug.whitelist |
| 7969 |
allows one to generate debug log output only of specific files |
| 7970 |
Background information available at: |
| 7971 |
https://www.linkedin.com/pulse/improving-rsyslog-debug-output-jan-gerhards |
| 7972 |
- core/net.c: improve UDP socket creation error messages |
| 7973 |
- omfwd/udp: add "udp.sendbuf" parameter |
| 7974 |
- core: make rsyslog internal message rate-limiter configurable |
| 7975 |
New parameters "internalmsg.ratelimit.interval" and "internalmsg.ratelimit.burst" |
| 7976 |
have been added. |
| 7977 |
- omelasticsearch bugfixes and changed ES5 API support: |
| 7978 |
* avoid 404 during health check |
| 7979 |
Omelasticsearch responds differently to HTTP HEAD and GET requests and |
| 7980 |
returns correct state only on GET requests. This patch works around |
| 7981 |
that ES bug and always does a GET request even when technically a HEAD |
| 7982 |
request would be sufficient. |
| 7983 |
* avoid ES5 warnings while sending json |
| 7984 |
ES5 is generating warnings when sending json without the proper header: |
| 7985 |
$ curl -i -H "Content-Type: text/json" -XGET 'http://elasticsearch5:9200/' \ |
| 7986 |
-d '{}\n' |
| 7987 |
HTTP/1.1 200 OK |
| 7988 |
Warning: 299 Elasticsearch-5.4.3-eed30a8 "Content type detection for rest |
| 7989 |
requests is deprecated. Specify the content type using the [Content-Type] |
| 7990 |
header." "Wed, 26 Jul 2017 14:33:28 GMT" |
| 7991 |
no issue on previous version. |
| 7992 |
Now, the header is set as application/json. It works for all versions |
| 7993 |
(tested on ES2 and ES5) we also handle the bulkmode where it should be |
| 7994 |
set to application/x-ndjson |
| 7995 |
closes https://github.com/rsyslog/rsyslog/issues/1546 |
| 7996 |
* bugfix for memory leak while writing error file |
| 7997 |
Thanks to William Dauchy for providing the patches |
| 7998 |
- imfile bugfix: wildcard detection issue on path wildcards |
| 7999 |
Wildcards mode was not properly detected when wildcards |
| 8000 |
were only used in a directory name on startup. |
| 8001 |
This caused imfile not to create a proper dynamic filewatch. |
| 8002 |
closes: https://github.com/rsyslog/rsyslog/issues/1672 |
| 8003 |
- omfwd bugfix: always give reason for suspension |
| 8004 |
In many cases, no error message were emitted when omfwd |
| 8005 |
went into action suspension, which was confusing for end |
| 8006 |
users. This patch enables explicit error messages in all |
| 8007 |
those cases. |
| 8008 |
closes https://github.com/rsyslog/rsyslog/issues/782 |
| 8009 |
- omfwd bugfix: configured compression level was not properly used |
| 8010 |
Thanks to Harshvardhan Shrivastava for the patch. |
| 8011 |
- imptcp bugfix: potential socket leak on session shutdown |
| 8012 |
imptcp first tries to remove a to-be-shut-down socket from the |
| 8013 |
epoll set, and errors out if that does not work. In that case, the |
| 8014 |
underlying socket will be leaked. |
| 8015 |
This patch refactors the code; most importantly, it is not necessary |
| 8016 |
to remove the socket from the epoll set, as this happens automatically |
| 8017 |
on close. As such, we simply remove that part of the code, which |
| 8018 |
also removes the root cause of the socket leak. |
| 8019 |
- omfwd/omudpspoof bugfix: switch udp client sockets to nonblocking mode |
| 8020 |
On very busy systems, we see "udp send error 11" inside the logs, and the requesting |
| 8021 |
action is being suspended (and later resumed). During the suspension period (in |
| 8022 |
default configuration), messages are lost. Error 11 translates to EAGAIN and the |
| 8023 |
cause of this problem is that the system is running out of UDP buffer space. This |
| 8024 |
can happen on very busy systems (with busy networks). |
| 8025 |
It is not an error per se. Doing a short wait will resolve the issue. The real root |
| 8026 |
cause of the issue is that omfwd uses a nonblocking socket for sending. If it were |
| 8027 |
blocking, the OS would block until the situation is resolved. The need for a |
| 8028 |
non-blocking sockets is a purely historical one. In the days of single-threaded |
| 8029 |
processing (pre v3), everything needed to be done by multiplexing, and blocking was |
| 8030 |
not permitted. Since then, the engine has dramatically changed. Actions now run on |
| 8031 |
their own thread(s). As such, there is no longer a hard need to use non-blocking i/o |
| 8032 |
for sending data. Many other output plugins also do blocking wait (e.g. omelasticsearch). |
| 8033 |
As such, the real root cause of the trouble is unnecessarily using non-blocking mode, |
| 8034 |
and consequently the right solution is to change that. |
| 8035 |
Note that using blocking i/o might change some timing inside rsyslog, especially |
| 8036 |
during shutdown. So theoretical there is regression potential in that area. However, |
| 8037 |
the core is designed to handle that situation (e.g. there is special shutdown code to |
| 8038 |
handle the blocking case), so this does not stand against the "proper" solution. |
| 8039 |
This patch applies the change on the rsyslog core level, within net.c. The only |
| 8040 |
users of the changed functionality are omfwd and omudpspoof. Imudp is unaffected as |
| 8041 |
it requests server sockets. |
| 8042 |
Note that according to the sendto() man page, there is a second cause for the EAGAIN |
| 8043 |
error, this is when the system temporarily runs out of ephemeral ports. It is not |
| 8044 |
100% clear if this can also happen in the blocking case. However, if so, we can argue |
| 8045 |
this is a case where we really want the default retry logic. So for the time being, |
| 8046 |
it is appropriate to not handle EAGAIN in a special case any longer. |
| 8047 |
closes https://github.com/rsyslog/rsyslog/issues/1665 |
| 8048 |
- imklog: fix permitnonkernelfacility not working |
| 8049 |
- impstats bugfix: impstats does not handle HUP |
| 8050 |
If the parameter "log.file" is specified, impstats writes its own |
| 8051 |
log file. However, HUP is not handled for this file, which makes |
| 8052 |
the functionality unusable with log rotation. It is also counter- |
| 8053 |
intuitive for users. |
| 8054 |
This patch enables correct HUP processing. As a sideline, it also |
| 8055 |
introduces a generic HUP processing framework for non-action type |
| 8056 |
of loadable modules. |
| 8057 |
closes https://github.com/rsyslog/rsyslog/issues/1662 |
| 8058 |
closes https://github.com/rsyslog/rsyslog/issues/1663 |
| 8059 |
- core bugfix: segfault after configuration errors |
| 8060 |
- core/queue bugfixes: |
| 8061 |
* Fix behavior of PersistStateInterval |
| 8062 |
If PersistStateInterval=1, then each log line read should cause the state file |
| 8063 |
to be updated, but this was not happening because nRecords was being post-increment. |
| 8064 |
Thanks to Anthony Howe for the patch. |
| 8065 |
* potential problem during deserialization |
| 8066 |
if queue object deserialization fails, invalid memory blocks might be |
| 8067 |
free'ed. |
| 8068 |
For more information see https://github.com/rsyslog/rsyslog/pull/1647 |
| 8069 |
Thanks to Derek Smith for the patch. |
| 8070 |
- core bugfix: message garbled after message modification |
| 8071 |
The MsgDup() function will return a garbled message object under these |
| 8072 |
conditions: The message was originally created with message length equal or |
| 8073 |
larger to CONF_RAWMSG_BUFSIZE. This makes rsyslog store the message in |
| 8074 |
dynamically allocated buffer space. Then, a component reduces the message |
| 8075 |
size to a size lower than CONGF_RAWMSG_BUFSIZE. A frequent sample is the |
| 8076 |
parser removing a known-bad LF at the end of the messages. Then, MsgDup is |
| 8077 |
executed. It checks the message size and finds that it is below |
| 8078 |
CONF_RAWMSG_BUFSIZE, which make it copy the msg object internal buffer |
| 8079 |
instead of the dynamically allocated one. That buffer was not written to in |
| 8080 |
the first place, so uninitialized data is copied. Note that no segfault can |
| 8081 |
happen, as the copied location was properly allocated, just not used in |
| 8082 |
this processing flow. In the end result, the new message object contains |
| 8083 |
garbage data. Whenever the new object is used (e.g. in a async ruleset or |
| 8084 |
action) that garbage will be used. Whenever the old object is accessed, |
| 8085 |
correct data will be used. Both types of access can happen inside the |
| 8086 |
same processing flow, which makes the problem appear to be random. |
| 8087 |
closes https://github.com/rsyslog/rsyslog/issues/1658 |
| 8088 |
- lmsig_ksi: removed pre-KSI_LS12 components |
| 8089 |
As of GuardTime, the provider, these no longer work due to backend |
| 8090 |
changes. The lmsig_ksi_ls12 module shall be used instead. This is |
| 8091 |
available since 8.27.0. |
| 8092 |
- testbench bugfix: hang in tests if omstdout is not present |
| 8093 |
Many tests depend on omstdout. Given the fact that omstdout |
| 8094 |
is really only useful for the testbench (at least that's the intent), |
| 8095 |
we now require --enable-omstdout if --enable-testbench is given. |
| 8096 |
The alternative would have been to disable all those tests that |
| 8097 |
need it, which would have lead to considerable less testbench |
| 8098 |
coverage. |
| 8099 |
closes https://github.com/rsyslog/rsyslog/issues/1649 |
| 8100 |
------------------------------------------------------------------------------ |
| 8101 |
Version 8.28.0 [v8-stable] 2017-06-27 |
| 8102 |
- NEW BUILD REQUIREMENT: librelp 1.2.14 (to build relp components) |
| 8103 |
This was necessary because imrelp requires an API introduced in 1.2.14. |
| 8104 |
- omfwd: add parameter "tcp_frameDelimiter" |
| 8105 |
- omkafka: large refactor of kafka subsystem |
| 8106 |
This offers improvements and greatly increases reliability. |
| 8107 |
Closes https://github.com/rsyslog/rsyslog/issues/1559 |
| 8108 |
Closes https://github.com/rsyslog/rsyslog/issues/1584 |
| 8109 |
Closes https://github.com/rsyslog/rsyslog/issues/1515 |
| 8110 |
Closes https://github.com/rsyslog/rsyslog/issues/1052 |
| 8111 |
May fix https://github.com/rsyslog/rsyslog/issues/1230 |
| 8112 |
- imfile: improved handling of atomically renamed file (w/ wildcards) |
| 8113 |
if a file is atomically renamed, the state file is also being renamed, |
| 8114 |
so processing continues as if the original name were kept. |
| 8115 |
see also: https://github.com/rsyslog/rsyslog/issues/1417 |
| 8116 |
- imfile: add capability to truncate oversize messages or split into multiple |
| 8117 |
also in this case an error message is emitted. Both of these actions are |
| 8118 |
configurable. This also solves memory issues when an endregex does not |
| 8119 |
match for prolonged time. In that case, large parts of the file were |
| 8120 |
previously buffered, which could cause big problems in case e.g. the |
| 8121 |
endregex was simply wrong and never matched. For the later, see also |
| 8122 |
https://github.com/rsyslog/rsyslog/issues/1552 |
| 8123 |
- mmdblookup |
| 8124 |
* upgraded from "contrib" to "fully supported" state |
| 8125 |
* refactored and simplified code |
| 8126 |
* added ability to specify custom names for extracted fields |
| 8127 |
* added ability to specify container name for extracted fields |
| 8128 |
* bugfix: fixed multiple memory leaks |
| 8129 |
- imptcp: add new parameter "flowControl" |
| 8130 |
- imrelp: add "maxDataSize" config parameter |
| 8131 |
Thanks to Nathan Brown for the patch. |
| 8132 |
- multiple modules: gtls: improve error if certificate file can't be opened |
| 8133 |
- omsnare: allow different tab escapes |
| 8134 |
Thanks to Shane P. Lawrence for the patch. |
| 8135 |
- omelasticsearch: converted to use libfastjson instead of json-c |
| 8136 |
json-c was used for historical purposes, and it's source included |
| 8137 |
within the rsyslog source tree. We now use libfastjson inside all |
| 8138 |
components. |
| 8139 |
- imjournal: _PID fallback |
| 8140 |
* added fallback for _PID property when SYSLOG_PID is not available |
| 8141 |
* introduced new option "usepid" which sets which property should |
| 8142 |
rsyslog use, it has 3 states system|syslog|both, default is both |
| 8143 |
* deprecated "usepidfromsystem" option, still can be used |
| 8144 |
and override the "usepid" |
| 8145 |
* it is possible to revert previous default with usepid="syslog" |
| 8146 |
Thanks to Radovan Sroka for the patch |
| 8147 |
- multiple modules: add better error messages when regcomp is failing |
| 8148 |
- omhiredis: fix build warnings |
| 8149 |
Thanks to Brian Knox for the fix. |
| 8150 |
- imfile bugfix: files mv-ed in into directory were not handled |
| 8151 |
Thanks to Zachary M. Zhao for the patch. |
| 8152 |
see also https://github.com/rsyslog/rsyslog/issues/1588 |
| 8153 |
- omprog bugfix: execve() incorrectly called |
| 8154 |
this caused failures on some but not all platforms |
| 8155 |
Thanks to 張君天(Chun-Tien Chang) and Matthew Seaman for the patch. |
| 8156 |
- imfile bugfix: multiline timeout did not work if state file exists |
| 8157 |
The timeout feature for multiline reads does not correctly work for |
| 8158 |
files for which a state file existed. This is usually the case for files |
| 8159 |
that had been processed by a previous run and that still exist on the |
| 8160 |
new start. For all other files, especially those monitored by a |
| 8161 |
wildcard and newly created after the rsyslog start, timeout worked as |
| 8162 |
expected. |
| 8163 |
closes https://github.com/rsyslog/rsyslog/issues/1445 |
| 8164 |
- lmsig_ksi-ls12 bugfix: build problems on some platforms |
| 8165 |
- core bugfix: invalid object type assertion |
| 8166 |
This lead to aborts due to failing assertion. Note that this could only |
| 8167 |
happen during debugging runs which includes runtime instrumentation, |
| 8168 |
something that never should be done in a stable production build. |
| 8169 |
So this did not affect ordinary users, only developers in with |
| 8170 |
deep debugging settings. |
| 8171 |
- regression fix: local hostname was not always detected properly... |
| 8172 |
... on early start (w/o network). Introduced in 8.27.0. |
| 8173 |
Thanks to github user jvymazal for the patch and whissi for |
| 8174 |
reporting and helping with the analysis. |
| 8175 |
- bugfix: format security issues in zmq3 modules |
| 8176 |
see also: https://github.com/rsyslog/rsyslog/pull/1565 |
| 8177 |
Thanks to Thomas D. (whissi) for the patch. |
| 8178 |
- bugfix build system: add libksi only to those binaries that need it |
| 8179 |
Thanks to Allan Park for the patch. |
| 8180 |
- bugfix KSI ls12 components: invalid tree height calculation |
| 8181 |
Thanks to Allan Park for the patch. |
| 8182 |
- testbench/CI enhancements |
| 8183 |
* re-enable and add kafka tests |
| 8184 |
Kafka tests were disabled in 8.27.0 (a regression from imkafka). |
| 8185 |
* better testbench coverage for mmdblookup |
| 8186 |
* lmsig_ksi-ls12 is now being built at least on Centos7 |
| 8187 |
------------------------------------------------------------------------------ |
| 8188 |
Version 8.27.0 [v8-stable] 2017-05-16 |
| 8189 |
- imkafka: add module |
| 8190 |
- imptcp enhancements: |
| 8191 |
* optionally emit an error message if incoming messages are truncated |
| 8192 |
* optionally emit connection tracking message (on connection create and |
| 8193 |
close) |
| 8194 |
* add "maxFrameSize" parameter to specify the maximum size permitted |
| 8195 |
in octet-counted mode |
| 8196 |
* add parameter "discardTruncatedMsg" to permit truncation of |
| 8197 |
oversize messages |
| 8198 |
* improve octect-counted mode detection: if the octet count is larger |
| 8199 |
then the set frame size (or overly large in general), it is now |
| 8200 |
assumed that octet-stuffing mode is used. This probably solves a |
| 8201 |
number of issues seen in real deployments. |
| 8202 |
- imtcp enhancements: |
| 8203 |
* add parameter "discardTruncatedMsg" to permit truncation of |
| 8204 |
oversize messages |
| 8205 |
* add "maxFrameSize" parameter to specify the maximum size permitted |
| 8206 |
in octet-counted mode |
| 8207 |
- imfile bugfix: "file not found error" repeatedly being reported |
| 8208 |
for configured non-existing file. In polling mode, this message |
| 8209 |
appeared once in each polling cycle, causing a potentially very large |
| 8210 |
amount of error messages. Note that they were usually emitted too |
| 8211 |
infrequently to trigger the error message rate limiter, albeit often |
| 8212 |
enough to be a major annoyance. |
| 8213 |
- imfile: in inotify mode, add error message if configured file cannot |
| 8214 |
be found |
| 8215 |
- imfile: add parameter "fileNotFoundError" to optionally disable |
| 8216 |
"file not found" error messages |
| 8217 |
- core: replaced gethostbyname() with getaddrinfo() call |
| 8218 |
Gethostbyname() is generally considered obsolete, is not reentrant and |
| 8219 |
cannot really work with IPv6. Changed the only place in rsyslog where |
| 8220 |
this call remained. |
| 8221 |
Thanks to github user jvymazal for the patch |
| 8222 |
- omkafka: add "origin" field to stats output |
| 8223 |
See also https://github.com/rsyslog/rsyslog/issues/1508 |
| 8224 |
Thanks to Yury Bushmelev for providing the patch. |
| 8225 |
- imuxsock: rate-limiting also uses process name |
| 8226 |
both for the actual limit processing as well as warning messages emitted |
| 8227 |
see also https://github.com/rsyslog/rsyslog/pull/1520 |
| 8228 |
Thanks to github user jvymazal for the patch |
| 8229 |
- Added new module: KSI log signing ver. 1.2 (lmsig_ksi_ls12) |
| 8230 |
- rsyslog base functionality now builds on osx (Mac) |
| 8231 |
Thanks to github user hdatma for his help in getting this done. |
| 8232 |
- build now works on solaris again |
| 8233 |
- imfile: fix cross-platform build issue |
| 8234 |
see also https://github.com/rsyslog/rsyslog/issues/1494 |
| 8235 |
Thanks to Felix Janda for bug report and solution suggestion. |
| 8236 |
- bugfix core: segfault when no parser could parse message |
| 8237 |
This could happen if the default parser chain was changed and the |
| 8238 |
RFC3164 parser was not included. Never seen in practice, just by |
| 8239 |
experimenting in lab. |
| 8240 |
- bugfix core: rate-limit internal messages when going to external log system |
| 8241 |
Rate-limiting was only applied to messages processed internally. |
| 8242 |
While the external logging system probably also applies rate-limiting, |
| 8243 |
it would be preferable that rsyslog applies the same policies on |
| 8244 |
internal messages, no matter where they go. This is now the case. |
| 8245 |
- bugfix core: when obtaining local hostname, a NULL pointer could be |
| 8246 |
accessed. This depends on many factors, among them that no local host |
| 8247 |
name is configured in rsyslog.conf AND the local system configuration |
| 8248 |
also is set to an empty hostname. |
| 8249 |
Thanks to github user jvymazal for the patch. |
| 8250 |
- bugfix core: on shutdown, stderr was written to, even if already closed |
| 8251 |
This lead to messages going to whatever was associated with file |
| 8252 |
descriptor two. |
| 8253 |
Thanks to Allan Park for the patch. |
| 8254 |
- bugfix core: perform MainqObj destruction only when not NULL already |
| 8255 |
This affects the config object; in theory may lead to misaddressing during |
| 8256 |
config parsing. |
| 8257 |
Thanks to github user jvymazal for the patch |
| 8258 |
- bugfix core: memory leak when internal messages not processed internally |
| 8259 |
In this case, the message object is not destructed, resulting in |
| 8260 |
a memory leak. Usually, this is no problem due to the low number |
| 8261 |
of internal message, but it can become an issue if a large number |
| 8262 |
of messages is emitted. |
| 8263 |
closes https://github.com/rsyslog/rsyslog/issues/1548 |
| 8264 |
closes https://github.com/rsyslog/rsyslog/issues/1531 |
| 8265 |
- bugfix imptcp: potential overflow in octet count computation |
| 8266 |
when a very large octet count was specified, the counter could overflow |
| 8267 |
------------------------------------------------------------------------------ |
| 8268 |
Version 8.26.0 [v8-stable] 2017-04-04 |
| 8269 |
- NEW BUILD REQUIREMENT: liblognorm 2.0.3 is required for mmnormalize |
| 8270 |
If mmnormalize is not built, the build requirements are unchanged. |
| 8271 |
The new version is necessary because it contains an enhanced API for a |
| 8272 |
new mmnormalize feature. |
| 8273 |
- enable internal error messages at all times |
| 8274 |
This is an important change to the design of the rsyslog core internal |
| 8275 |
error message system. Previous code could deadlock if internal messages were |
| 8276 |
issued inside queue processing code, which effectively limited error-reporting |
| 8277 |
capabilities. This change makes it possible to call error messages from any |
| 8278 |
part of the code at any time. |
| 8279 |
As a side-effect, this also fixes an issue where rsyslog could deadlock if |
| 8280 |
imuxsock submited messages to the system log socket when that socket blocked. |
| 8281 |
This was a rare race, albeit consistently reproducible and also seen in |
| 8282 |
practice. The work-around for this issue was to set |
| 8283 |
global(processInternalMessages="on") |
| 8284 |
in rsyslog.conf. With the new code, this race can never happen again. The new |
| 8285 |
code also sets stage for emitting better error messages, especially in places |
| 8286 |
where we previously refrained from doing so and messages went only to the |
| 8287 |
debug log. For some file output and queue subsystem related messages, this |
| 8288 |
is already done, but there is still further work required. |
| 8289 |
Note well: this is a redesign of an important core component. While intensely |
| 8290 |
tested, this may still have some larger regression potential than usual code |
| 8291 |
changes. |
| 8292 |
- core: added logging name of source of rate-limited messages |
| 8293 |
This adds the name to the rate-limiting message itself, making it easier |
| 8294 |
to identify the actual source of "spam" messages. |
| 8295 |
Thanks to github user jvymazal for the patch. |
| 8296 |
- omfwd: omfwd: add support for network namespaces |
| 8297 |
Thanks to Bastian Stender for the patch. |
| 8298 |
- imrelp: honor input name if provided when submitting to impstats |
| 8299 |
Thanks to Jon Henry for the patch. |
| 8300 |
- imptcp: add ability to set owner/group/access perms for uds |
| 8301 |
Thanks to Nathan Brown for implementing this feature. |
| 8302 |
- mmnormalize: add ability to load a rulebase from action() parameter |
| 8303 |
This is especially useful for small rulebases, as it avoids having |
| 8304 |
a separate rulebase file. |
| 8305 |
closes https://github.com/rsyslog/rsyslog/issues/625 |
| 8306 |
- pmrfc3164 improvements |
| 8307 |
- permit to ignore leading space in MSG |
| 8308 |
- permit to use at-sign in host names |
| 8309 |
- permit to require tag to end in colon |
| 8310 |
Thanks to github user bdolez for the contribution |
| 8311 |
- add new global parameter "umask" |
| 8312 |
This is equivalent to "$umask" and permits to convert that construct |
| 8313 |
to new-style config format. |
| 8314 |
closes https://github.com/rsyslog/rsyslog/issues/1382 |
| 8315 |
- core: make use of -T command line option more secure |
| 8316 |
When the -T option is used, a chdir is now done right after chroot. It must |
| 8317 |
be noted, though, that -T is a testing option and has no intent to provide |
| 8318 |
real security. So this change does not mean it actually is sufficiently |
| 8319 |
secure. |
| 8320 |
Thanks to github user jvymazal for the patch. |
| 8321 |
- omfile: add error if both file and dynafile are set |
| 8322 |
- bugfix: build problem on MacOS (not a supported platform) |
| 8323 |
Thanks to FX Coudert for the fix. |
| 8324 |
- regression fix: in 8.25, str2num() returned error on empty string |
| 8325 |
past behavior was to return 0 in this case; past behavior was reinstantiated |
| 8326 |
Thanks to github user jvymazal for the patch. |
| 8327 |
- bugfix omsnmp: improper handling of new-style configuration parameters |
| 8328 |
Thanks to Radovan Sroka for the patch. |
| 8329 |
- bugfix: rsyslog identifies itself as "liblogging-stdlog" in internal messages |
| 8330 |
This occurred when liblogging-stdlog was used, and was used by default (without |
| 8331 |
explicit configuration). This is a regression of the new default, which does |
| 8332 |
not correctly call stdlog_open() in the default case. |
| 8333 |
closes https://github.com/rsyslog/rsyslog/issues/1442 |
| 8334 |
- bugfix imfile: wrong files were monitored when using multiple imfile inputs |
| 8335 |
The bug was introduced by the changes for the multilevel wildcard feature |
| 8336 |
in 8.25.0. We have to handle FileCreate events different if the directory |
| 8337 |
watch is configured or added dynamically. |
| 8338 |
closes https://github.com/rsyslog/rsyslog/issues/1452 |
| 8339 |
- bugfix: setting net.aclResolveHostname/net.acladdhostnameonfail segfaults |
| 8340 |
When compiling using hardened gcc (gentoo), specifying net.aclResolveHostname |
| 8341 |
or net.acladdhostnameonfail results in rsyslogd segfaulting on startup. |
| 8342 |
Thanks to Radovan Sroka for the patch. |
| 8343 |
- bugfix: immark emitted error messages with text "imuxsock" |
| 8344 |
Thanks to Chris Pilkington for the patch. |
| 8345 |
- bugfix tcpflood: build failed if RELP was disabled |
| 8346 |
- fix gcc6 compiler warnings |
| 8347 |
This also fixes a small bug with incorrectly working deprecated -u |
| 8348 |
command line option. |
| 8349 |
Thanks to Nikola Pajkovsky for the patch. |
| 8350 |
- the output module array passing interface has been removed |
| 8351 |
It wasn't functional since the v8 update, and the only user was omoracle, |
| 8352 |
which is a contributed module that is no longer maintained. So we |
| 8353 |
removed that interface to streamline the code. Should it ever be needed |
| 8354 |
again, we could check the 8.25 code base. Note, though, that that code |
| 8355 |
still needs to be adjusted to the v8 engine. |
| 8356 |
- testbench: |
| 8357 |
* tcpflood now automatically enters silent mode during Travis CI testing |
| 8358 |
This reduces testbench output, which is limited under Travis. |
| 8359 |
* the libqpid-proton package is no longer available for Ubuntu trusty. As |
| 8360 |
such, we disabled its use in Travis on this platform. Right now, this |
| 8361 |
means omamqp1 module is no longer tested on trusty. |
| 8362 |
------------------------------------------------------------------------------ |
| 8363 |
Version 8.25.0 [v8-stable] 2017-02-21 |
| 8364 |
- imfile: add support for wildcards in directory names |
| 8365 |
This now permits to monitor newly created directories without altering |
| 8366 |
the configuration. |
| 8367 |
- add new global option "parser.PermitSlashInProgramname" |
| 8368 |
- mmdblookup: fix build issues, code cleanup |
| 8369 |
Thanks to Dan Molik for the patch. |
| 8370 |
- improved debug output for queue corruption cases |
| 8371 |
- an error message is now displayed when a directory owner cannot be set |
| 8372 |
This mostly happens with omfile and dynafile. The new messages |
| 8373 |
facilitates troubleshooting. |
| 8374 |
- rainerscript: |
| 8375 |
* add new function ipv42num |
| 8376 |
* add new function num2ipv4 |
| 8377 |
- bugfix: ratelimiter does not work correctly is time is set back |
| 8378 |
Thanks to github user hese10 for the patch. |
| 8379 |
see also https://github.com/rsyslog/rsyslog/issues/1354 |
| 8380 |
- core: fix potential message loss in old-style transactional interface |
| 8381 |
This was experienced for example by omrelp. Could loose one message per |
| 8382 |
broken connection, iff that message did not make it to the unacked list. |
| 8383 |
- bugfix queue subsystem: queue corrupted if certain msg props are used |
| 8384 |
The core issues was in the msg object deserializer, which had the wrong |
| 8385 |
deserialization sequence. That in turn lead to queue corruption issues. |
| 8386 |
Corruption of disk queue (or disk part of DA queue) always happens if |
| 8387 |
the "json" property (message variables) is present and "structured-data" |
| 8388 |
property is also present. This causes rsyslog to serialize to the |
| 8389 |
queue in wrong property sequence, which will lead to error -2308 on |
| 8390 |
deserialization. |
| 8391 |
Seems to be a long-standing bug. Depending on version used, some or |
| 8392 |
all messages in disk queue may be lost. |
| 8393 |
closes https://github.com/rsyslog/rsyslog/issues/1404 |
| 8394 |
- bugfix imjournal: fixed situation when time goes backwards |
| 8395 |
This is resolving the situation when system is after reboot and |
| 8396 |
boot_id doesn't match so cursor pointing into "future". |
| 8397 |
Usually sd_journal_next jump to head of journal due to journal |
| 8398 |
approximation, but when system time goes backwards and cursor is |
| 8399 |
still invalid, rsyslog stops logging. |
| 8400 |
We use sd_journal_get_cursor to validate our cursor. |
| 8401 |
When cursor is invalid we are trying to jump to the head of journal |
| 8402 |
This problem with time should not affect persistent journal, |
| 8403 |
but if cursor has been intentionally compromised it could stop |
| 8404 |
logging even with persistent journal. |
| 8405 |
- bugfix: bFlushOnTxEnd == 0 not honored when writing w/o async writer |
| 8406 |
If bFlushOnTXEnd is set, we need to flush on transaction end - in |
| 8407 |
any case. It is not relevant if this is using background writes |
| 8408 |
(which then become pretty slow) or not. And, similarly, no flush |
| 8409 |
happens when it is not set. |
| 8410 |
see also https://github.com/rsyslog/rsyslog/issues/1297 |
| 8411 |
- bugfix core: str2num mishandling empty strings |
| 8412 |
If str2num() receives an empty string, misaddressing happens. |
| 8413 |
This theoretically can lead to a segfault if a RainerScript function |
| 8414 |
is used inside the configuration which calls code that could trigger |
| 8415 |
this bug. |
| 8416 |
closes https://github.com/rsyslog/rsyslog/issues/1412 |
| 8417 |
- bugfix rainerscript: set/unset statement do not check variable name validity |
| 8418 |
Only JSON-based variables can be use with set and unset. Unfortunately, |
| 8419 |
this restriction is not checked. If an invalid variable is given |
| 8420 |
(e.g. $invalid), this is not detected upon config processing on |
| 8421 |
startup. During execution phase, this can lead to a segfault, a |
| 8422 |
memory leak or other types of problems. |
| 8423 |
Thanks to github user mostolog for reporting and helping to analyze |
| 8424 |
this issue. |
| 8425 |
see also https://github.com/rsyslog/rsyslog/issues/1376 |
| 8426 |
closes https://github.com/rsyslog/rsyslog/issues/1377 |
| 8427 |
- bugfix mmrm1stspace: last character of rawmsg property was doubled |
| 8428 |
- bugfix: rsyslog loops on freebsd when trying to write /dev/console |
| 8429 |
Rsyslog 8.23.0 loops on FreeBSD when trying to access a (now revoked) |
| 8430 |
/dev/console file descriptor, as per Alexandre's original bug report [1]. |
| 8431 |
The original patch fixes the problem when tryTTYRecover() sees errno 6 ENXIO. |
| 8432 |
Running FreeBSD 10-stable here and getting errno 5 EIO, same as Xavier gets |
| 8433 |
in his 2016 bug report [2]. |
| 8434 |
New patch [3] includes errno 5 to tryTTYRecover() in runtime/stream.c and |
| 8435 |
fixes the problem for me, on multiple machines. |
| 8436 |
[1] https://github.com/rsyslog/rsyslog/issues/371 |
| 8437 |
[2] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211033 |
| 8438 |
[3] https://bz-attachments.freebsd.org/attachment.cgi?id=178452 |
| 8439 |
closes https://github.com/rsyslog/rsyslog/issues/1351 |
| 8440 |
Thanks to Damien Fleuriot for the patch. |
| 8441 |
- bugfix imtcp: fix very small (cosmetic) memory leak |
| 8442 |
For each listener, the name of an assigned ruleset is not freed. This |
| 8443 |
is cosmetic, because it is a very small static leak AND it needs to |
| 8444 |
be kept until end of run anyways (and at end of run the OS frees it). |
| 8445 |
However, the leak breaks memleak checks in the testbench. |
| 8446 |
- fix build issues on some platforms (detected on newer Fedora) |
| 8447 |
------------------------------------------------------------------------------ |
| 8448 |
Version 8.24.0 [v8-stable] 2017-01-10 |
| 8449 |
- rsyslog now builds on AIX |
| 8450 |
see also: https://github.com/rsyslog/rsyslog/pull/1247 |
| 8451 |
Thanks to github user purnimam1 and the team at IBM |
| 8452 |
Note: the rsyslog project has no AIX platform to ensure that future versions |
| 8453 |
will remain buildable on AIX. If you would like to contribute resources, |
| 8454 |
please contact the rsyslog team. |
| 8455 |
- mmdblookup: new maxminddb lookup message modify plugin |
| 8456 |
Thanks to 饶琛琳 (github user chenryn) for the contribution |
| 8457 |
- mmrm1stspace: new module; removes first space in MSG if present |
| 8458 |
- KSI signature provider: file permissions can now be specified |
| 8459 |
This happens via parameters equal to those used by omfile itself. |
| 8460 |
Note that KSI files can have different permissions/owner than the log |
| 8461 |
files themself. |
| 8462 |
Thanks to Allan Park for the patch. |
| 8463 |
- omzmq: new features |
| 8464 |
Thanks to Brian Knox for the patch. |
| 8465 |
- change: when the hostname is empty, we now use "localhost-empty-hostname" |
| 8466 |
In 8.23.0, "localhost" was used in this case, but that could be misleading. |
| 8467 |
The new name makes the error condition (gethostname() should always return |
| 8468 |
a non-empty name) more obvious. |
| 8469 |
- omelasticsearch: remove "asyncrepl" config parameter |
| 8470 |
The _bulk index endpoint on ElasticSearch 5.0 no longer |
| 8471 |
ignores the ?replication=async query parameter. It was deprecated |
| 8472 |
since 1.5 and silently ignored in 2.x but passing it to a 5.x |
| 8473 |
instance breaks omelasticsearch with a 400 response. |
| 8474 |
closes https://github.com/rsyslog/rsyslog/issues/1250 |
| 8475 |
- omfwd: Add support for bind-to-device (see below on same for imudp) |
| 8476 |
- imudp: Add support for bind-to-device |
| 8477 |
Add support for bind-to-device option to omfwd and imudp modules. |
| 8478 |
Configured using device="name". Only new syntax format is supported. |
| 8479 |
e.g., |
| 8480 |
input(type="imudp" port=["10514"] device="eth0" name="udp") |
| 8481 |
Action(type="omfwd" Target="192.168.1.23" Port="10514" Device="eth0") |
| 8482 |
see also https://github.com/rsyslog/rsyslog/pull/1261 |
| 8483 |
Thanks to David Ahern for the patch. |
| 8484 |
- imudp: limit rcvbufsize parameter to max 1GiB |
| 8485 |
- rainerscript: implement new "call_indirect" statement |
| 8486 |
- bugfix imjournal: make state file handling more robust |
| 8487 |
There is a bug in rsyslog which is caused by not very atomic writes of |
| 8488 |
imjournal statefile. It's hardly reproducible but there is a way. |
| 8489 |
fscanf error appears only when rsyslog reads an empty statefile which |
| 8490 |
causes that imjournal is stopped so no logging from journal is |
| 8491 |
performed. When the statefile contains random bytes error appears |
| 8492 |
again but from journal and imjournal is stopped too. |
| 8493 |
In this patch Rsyslog writes imjournal statefile more atomically and |
| 8494 |
secure. Reading the statefile is more robust and doesn't affect |
| 8495 |
imjournal module so when corrupted statefile is read imjournal |
| 8496 |
ignores statefile, continues with logging and it doesn't stop. Logger |
| 8497 |
can be used as a test if it's logging or not. |
| 8498 |
Patch introduces a new option with both old and new config format |
| 8499 |
"IgnoreNonValidStateFile" which is "on" by default and it can turn |
| 8500 |
off ignorance of non valid statefile. |
| 8501 |
Thanks to github user tomassykora for the patch. |
| 8502 |
- bugfix core: lookup table reload was not properly integrated |
| 8503 |
The opcode was not handled, what lead to misleading messages |
| 8504 |
in debug log. Since we run debug builds more strictly, it also |
| 8505 |
causes an assertion to trigger, thus aborting the test |
| 8506 |
- bugfix core: potential deadlock on shutdown |
| 8507 |
could happen when rsyslog was started and quickly shut down OR when |
| 8508 |
coincidentally a new thread was spawend "with bad timing" around the time |
| 8509 |
of shutdown. |
| 8510 |
See also https://github.com/rsyslog/rsyslog/pull/1274 |
| 8511 |
Thanks to github user tomassykora for the final patch and Rado Sroka for |
| 8512 |
the analysis and an initial patch. |
| 8513 |
- bugfix ommongodb: did not work in v8 due to invalid indirection |
| 8514 |
Thanks to Benoit Dolez for the patch. |
| 8515 |
- bugfix ommongodb: fix tryResume handling |
| 8516 |
To make tryResume working, the connection to mongodb need to be closed. |
| 8517 |
Thus close it on "insert error". |
| 8518 |
Thanks to Benoit Dolez for the patch. |
| 8519 |
- bugfix omfwd: retry processing was not done correctly, could stall |
| 8520 |
see also https://github.com/rsyslog/rsyslog/pull/1261 |
| 8521 |
Thanks to David Ahern for the patch. |
| 8522 |
- bugfix imuxsock: segfault non shutdown when $OmitLocalLogging is on |
| 8523 |
Imuxsock tries to close socket on index 0 which ends with segfault. |
| 8524 |
Thanks to Tomas Sykora for the patch. |
| 8525 |
- testbench: |
| 8526 |
* empty-hostname test did not work correctly |
| 8527 |
* improve debugging by better output |
| 8528 |
------------------------------------------------------------------------------ |
| 8529 |
Version 8.23.0 [v8-stable] 2016-11-15 |
| 8530 |
- NEW BUILD REQUIREMENT: libfastjson 0.99.3 |
| 8531 |
This was introduced in 8.20.0 as a suggestion and has now become a hard |
| 8532 |
requirement. See 8.20.0 ChangeLog entry for more details. |
| 8533 |
- KSI signatures: removed SHA2-224 hash algorithm |
| 8534 |
This is considered insecure and no longer supported by the underlying |
| 8535 |
KSI library. If still used within a configuration, a descriptive error |
| 8536 |
message is emitted during config processing. |
| 8537 |
Thanks to Henri Lakk for the initial patch. |
| 8538 |
- imfile: new timeout feature for multi-line reads |
| 8539 |
When using startmsg.regex, messages are held until the next one is written. |
| 8540 |
We now provide a "readTimeout" parameter family (see doc) to timeout such |
| 8541 |
reads and ensure messages are not held for a very long time. |
| 8542 |
see also https://github.com/rsyslog/rsyslog/issues/1133 |
| 8543 |
- omfile: improve robustness against network file system failures |
| 8544 |
in case of failure, a close and re-open is tried, which often solves the |
| 8545 |
issue (and wasn't handle before this patch). |
| 8546 |
see also https://github.com/rsyslog/rsyslog/pull/1161 |
| 8547 |
Thanks to github user hese10 for the patch. |
| 8548 |
- pmaixforwardedfrom: support for AIX syslogd -s option |
| 8549 |
if syslog in AIX started with "-s" option, AIX syslog adds only "From " |
| 8550 |
instead of "Message forwarded from ". With this patch, both are now |
| 8551 |
detected. |
| 8552 |
Thanks to github user patelritesh for the patch. |
| 8553 |
- omelasticsearch: add ability to specify max http request size |
| 8554 |
This permits to keep batches below ES-configured limits. |
| 8555 |
Thanks to github user barakshechter for the patch. |
| 8556 |
- omelasticsearch: high availability addressing of ElasticSearch cluster |
| 8557 |
allow one to specify an array of servers, which is tried until a working |
| 8558 |
one is found (and given up only if none works). |
| 8559 |
Thanks to github user barakshechter for the patch. |
| 8560 |
- omelasticsearch: make compatible with ElasticSearch 2.x and 5.x |
| 8561 |
fixes omelasticsearch logs response from ElasticSearch 5.0 _bulk |
| 8562 |
endpoint as error |
| 8563 |
See also https://github.com/rsyslog/rsyslog/pull/1253 |
| 8564 |
Thanks to Christian Rodemeyer for the patch. |
| 8565 |
- omhiredis: add dynakey attribute. |
| 8566 |
If set to on, this causes omhiredis to treat the key attribute as the |
| 8567 |
name of a template so that you can build a dynamic redis queue name |
| 8568 |
or list key. |
| 8569 |
see also: https://github.com/rsyslog/rsyslog/pull/1218 |
| 8570 |
Thanks to github user bobthemighty for the patch |
| 8571 |
- omtcl: new contributed module |
| 8572 |
see also https://github.com/rsyslog/rsyslog/pull/1041 |
| 8573 |
Please note: contributed modules are not directly supported by the |
| 8574 |
project. You might want to contact the author for questions. |
| 8575 |
Thanks to Francisco Castro for contributing it. |
| 8576 |
- RainerScript: provide a capability to set environment variables |
| 8577 |
via 'global(environment="var=val")' config statement. |
| 8578 |
This is most importantly for things like HTTP_PROXY. |
| 8579 |
see also https://github.com/rsyslog/rsyslog/issues/1209 |
| 8580 |
- lookup tables: improved error checking |
| 8581 |
Thanks to Janmejay Singh for the patch. |
| 8582 |
- queue subsystem: add configuration parameter "queue.samplinginterval" |
| 8583 |
Supports sampling of messages (as often used in data transmission). |
| 8584 |
Thanks to Zachary M. Zhao for the patch. |
| 8585 |
- bugfix core: errmsg.LogError now switches to dfltErrLogger just before shutdown |
| 8586 |
Thanks to Janmejay Singh for the patches. |
| 8587 |
- bugfix core: fixed un-freed memory in non-transactional action using string-passing |
| 8588 |
closes https://github.com/rsyslog/rsyslog/issues/968 |
| 8589 |
Thanks to Janmejay Singh for the patches. |
| 8590 |
- rsgtutil: option to specify KSI publications file certificate constraints |
| 8591 |
see also https://github.com/rsyslog/rsyslog/issues/1207 |
| 8592 |
- omprog: bugfixes and enhancements |
| 8593 |
- omprog resource leak fix (fd leak) |
| 8594 |
- omprog got ability to force-kill process if it doesn't die in 5 seconds |
| 8595 |
(linux specific) |
| 8596 |
- child-process lifecycle debugging aid (in form of logs) (mainLoop and |
| 8597 |
omprog cleanup both log pid at child-death, mainLoop reaping is now |
| 8598 |
visible to user, as opposed to being a mystery, because omprog didn't |
| 8599 |
seem to anticipate it in terms of code) |
| 8600 |
Thanks to Janmejay Singh for the patches. |
| 8601 |
see also https://github.com/rsyslog/rsyslog/pull/1155 |
| 8602 |
- bugfix imfile: ReopenOnTruncate processing, file open processing |
| 8603 |
This fixes |
| 8604 |
* ReopenOnTruncate was only honored when a state file existed |
| 8605 |
see https://github.com/rsyslog/rsyslog/issues/1090 |
| 8606 |
* open processing could run into a loop |
| 8607 |
see https://github.com/rsyslog/rsyslog/issues/1174 |
| 8608 |
This is done via refactoring the open file handling, which provides |
| 8609 |
overall cleaner and easier-to-follow code. |
| 8610 |
Thanks to Owen Smith for analyzing the problem and providing a |
| 8611 |
prototype PR which greatly helped towards the final solution. |
| 8612 |
- bugfix omlibdbi: libdbi-driver-sqlite3/2 requires to provide a path to |
| 8613 |
database split into two strings: |
| 8614 |
* absolute path, where the database file sits |
| 8615 |
* database filename itself. |
| 8616 |
This was previously not done. |
| 8617 |
Thanks to github user aleek for the patch. |
| 8618 |
- bugfix RainerScript: issue in prifilt() function |
| 8619 |
Initialize func-data(and to-be-freed flag) correctly for prifilt |
| 8620 |
function-node |
| 8621 |
Thanks to Janmejay Singh for the patch. |
| 8622 |
- bugfix omrelp: invalid module name imrelp was used in some error messages |
| 8623 |
Thanks to Chris Pilkington for the patch. |
| 8624 |
- bugfix core: abort when persisting object state |
| 8625 |
This causes a segfault. It happens whenever an object state larger |
| 8626 |
than 4095 byte is persisted. Then, incorrectly a try to rollover to |
| 8627 |
a new state file is tried, which will lead to a division by zero |
| 8628 |
as the necessary variables for this operation are not set because we |
| 8629 |
are NOT in circular mode. |
| 8630 |
This problem can happen wherever state files are written. It has been |
| 8631 |
experienced with imfile and queue files. |
| 8632 |
Many thanks to github user mostolog for his help in reproducing the issue, |
| 8633 |
which was very important to finally nail down this long-standing bug. |
| 8634 |
closes https://github.com/rsyslog/rsyslog/issues/1239 |
| 8635 |
closes https://github.com/rsyslog/rsyslog/issues/1162 |
| 8636 |
closes https://github.com/rsyslog/rsyslog/issues/1074 |
| 8637 |
- bugfix: segfault if hostname is unset on system |
| 8638 |
happens when gethostname() returns empty string. This will cause |
| 8639 |
the createon of the localhostname prop_t to fail, which in turn |
| 8640 |
leads to a NULL pointer dereference when emitting local messages. |
| 8641 |
As we emit a startup message by default, this had usually lead |
| 8642 |
to a segfault on startup. |
| 8643 |
Thanks to Erik Potter and github user mostolog for their help |
| 8644 |
in analyzing this problem. |
| 8645 |
closes https://github.com/rsyslog/rsyslog/issues/1040 |
| 8646 |
closes https://github.com/rsyslog/rsyslog/issues/335 |
| 8647 |
- bugfix external module perl skeleton: did not work properly |
| 8648 |
Thanks to github user Igorjan666 for the patch. |
| 8649 |
- bugfix build system: Fix detection of pthread_setschedparam() on platforms |
| 8650 |
such as FreeBSD |
| 8651 |
see also https://github.com/rsyslog/rsyslog/pull/1147 |
| 8652 |
Thanks to Matthew Seaman for the patch. |
| 8653 |
- bugfix omelasticsearch: modifies constant memory under some circumstances |
| 8654 |
Function computeBaseUrl may modify its serverParam parameter, but |
| 8655 |
this may contain the constant string "localhost". Depending on the |
| 8656 |
platform, this can lead to a segfault. |
| 8657 |
Noticed while working on compiler warnings, not seen in practice. |
| 8658 |
- "bugfix": theoretical queue file corruption when more than MAX_INT files |
| 8659 |
closes https://github.com/rsyslog/rsyslog/issues/1202 |
| 8660 |
- bug fix/KSI: LOGSIG11 missing in the beginning of KSI log signature file |
| 8661 |
When logging with KSI is not working properly for whatever reason, an |
| 8662 |
empty .ksisig file is created (which by itself is not an issue). However, |
| 8663 |
later it looks like this file is re-used, but it is not checked whether it |
| 8664 |
already contains the magic LOGSIG11 in the beginning of the file. This leads |
| 8665 |
to a log signature file which has correct content but is missing the |
| 8666 |
LOGSIG11 magic in the beginning. |
| 8667 |
- bugfix template processor: missing escaping of backslash in json mode |
| 8668 |
Thanks to github user mostolog for providing the patch. |
| 8669 |
- build environment: --enable-debug now defaults to new "auto" mode |
| 8670 |
previously, DEBUG mode (and thus assert() macros) was disabled by default |
| 8671 |
and explicitly needed to be enabled by providing the --enable-debug |
| 8672 |
./configure switch. Now, a new --enable-debug=auto mode has been added |
| 8673 |
and made the default. It enables DEBUG mode if we build from git and only |
| 8674 |
disables it when a release build is done (from the release tarball). This |
| 8675 |
aims at better error checking during testbench runs and developer testing. |
| 8676 |
- testbench improvements |
| 8677 |
* improved testbench file generation tool |
| 8678 |
Thanks to Pascal Withopf for the patch. |
| 8679 |
* added some plumbing for extended tests which work by overriding OS APIs |
| 8680 |
* imfile ReopenOnTruncate option is now being tested |
| 8681 |
* the CI environment now runs most tests in debug mode, but some in |
| 8682 |
release mode to cover potential release-mode races |
| 8683 |
* template json option is now being tested |
| 8684 |
* object state persisting received a basic test |
| 8685 |
* added test for empty hostnames |
| 8686 |
* added tests for omprog |
| 8687 |
------------------------------------------------------------------------------ |
| 8688 |
Version 8.22.0 [v8-stable] 2016-10-04 |
| 8689 |
- ompgsql: add template support |
| 8690 |
Thanks to Radu Gheorghe for implementing this. |
| 8691 |
- generate somewhat better error message on config file syntax error |
| 8692 |
a common case (object at invalid location) has received it's own error |
| 8693 |
message; for the rest we still rely on the generic flex/bison handler |
| 8694 |
- bugfix:omhiredis reconnects after failure |
| 8695 |
previously it could loose messages under such conditions. |
| 8696 |
Thanks to Bob Gregory for the patch. |
| 8697 |
- general cleanup and code improvement |
| 8698 |
mostly guided by compiler warnings induced by newer opensuse buildbot |
| 8699 |
environment |
| 8700 |
------------------------------------------------------------------------------ |
| 8701 |
Version 8.21.0 [v8-stable] 2016-08-23 |
| 8702 |
- CHANGE OF BEHAVIOR: |
| 8703 |
by default, internal messages are no longer logged via the internal |
| 8704 |
bridge to rsyslog but via the syslog() API call [either directly or |
| 8705 |
via liblogging). For the typical single-rsyslogd-instance installation this |
| 8706 |
is mostly unnoticeable (except for some additional latency). If multiple |
| 8707 |
instances are run, only the "main" (the one processing system log messages) |
| 8708 |
will see all messages. To return to the old behavior, do either of those |
| 8709 |
two: |
| 8710 |
1) add in rsyslog.conf: |
| 8711 |
global(processInternalMessages="on") |
| 8712 |
2) export the environment variable RSYSLOG_DFLT_LOG_INTERNAL=1 |
| 8713 |
This will set a new default - the value can still be overwritten via |
| 8714 |
rsyslog.conf (method 1). Note that the environment variable must be |
| 8715 |
set in your **startup script**. |
| 8716 |
For more information, please visit |
| 8717 |
https://www.rsyslog.com/rsyslog-error-reporting-improved/ |
| 8718 |
- slightly improved TLS syslog error messages |
| 8719 |
- queue subsystem: improved robustness |
| 8720 |
The .qi file is now persisted whenever an existing queue file is fully |
| 8721 |
written and a new file is begun. This helps with rsyslog aborts, including |
| 8722 |
the common case where the OS issues kill -9 because of insufficiently |
| 8723 |
configured termination timeout (this is an OS config error, but a frequent |
| 8724 |
one). Also, a situation where an orphaned empty file could be left in the |
| 8725 |
queue work directory has been fixed. We expect that this change causes |
| 8726 |
fewer permanent queue failures. |
| 8727 |
- bugfix: build failed on some platforms due to missing include files |
| 8728 |
------------------------------------------------------------------------------ |
| 8729 |
Version 8.20.0 [v8-stable] 2016-07-12 |
| 8730 |
- NEW BUILD REQUIREMENT: librelp, was 1.2.5, now is 1.2.12 |
| 8731 |
This is only needed if --enable-relp is used. The new version is needed |
| 8732 |
to support the new timeout parameter in omrelp. |
| 8733 |
- NEW BUILD SUGGESTION: libfastjson 0.99.3 |
| 8734 |
while not strictly necessary, previous versions of libfastjson have a bug |
| 8735 |
in unicode processing that can result in non US-ASCII characters to be |
| 8736 |
improperly encoded and may (very unlikely) also cause a segfault. |
| 8737 |
This version will become mandatory in rsyslog 8.23.0 |
| 8738 |
- omrelp: add configurable connection timeout |
| 8739 |
Thanks to Nathan Brown for implementing this feature. |
| 8740 |
- pmrfc3164: add support for slashes in hostname |
| 8741 |
added parameter "permit.slashesinhostname" to support this, off by default |
| 8742 |
[Note that the RFC5424 always supported this, as 5424 is a different |
| 8743 |
standard] |
| 8744 |
- bugfix omfile: handle chown() failure correctly |
| 8745 |
If the file creation succeeds, but chown() failed, the file was |
| 8746 |
still writen, even if the user requested that this should be treated |
| 8747 |
as a failure case. This is corrected now. |
| 8748 |
Also, some refactoring was done to create better error messages. |
| 8749 |
- omfile now better conveys status of unwritable files back to core |
| 8750 |
- config files recursively including themselves are now detected |
| 8751 |
and an error message is emitted in that case; Previously, this |
| 8752 |
misconfiguration resulted in rsyslog loop and abort during startup. |
| 8753 |
closes https://github.com/rsyslog/rsyslog/issues/1058 |
| 8754 |
- refactored code to not emit compiler warnings in "strict mode" |
| 8755 |
We changed the compiler warning settings to be rather strict and cleaned up |
| 8756 |
the code to work without generating any warning messages. |
| 8757 |
This results in an overall even more improved code quality, which will now |
| 8758 |
also be enforced via our CI systems. |
| 8759 |
- bugfix: fix some issues with action CommitTransaction() handling |
| 8760 |
An action that returns an error from CommitTransaction() caused a |
| 8761 |
loop in rsyslog action processing. Similarly, retry processing was not |
| 8762 |
properly handled in regard to CommitTransaction(). |
| 8763 |
This is a first shot at fixing the situation. It solves the |
| 8764 |
immediate problems, but does not implement the full desired |
| 8765 |
functionality (like error file). |
| 8766 |
see also https://github.com/rsyslog/rsyslog/issues/974 |
| 8767 |
see also https://github.com/rsyslog/rsyslog/issues/500 |
| 8768 |
- bugfix omqmqp1: connecting to the message bus fails on nonstandard port |
| 8769 |
Thanks to Ken Giusti for the patch. |
| 8770 |
see also: https://github.com/rsyslog/rsyslog/pull/1064 |
| 8771 |
- testbench/CI enhancements |
| 8772 |
* new tests for RELP components |
| 8773 |
* new tests for core action processing and retry |
| 8774 |
* travis tests now also run against all unstable versions of supporting |
| 8775 |
libraries. This helps to track interdependency problems early. |
| 8776 |
* new tests for hostname parsing |
| 8777 |
* new tests for RainerScript comparisons |
| 8778 |
------------------------------------------------------------------------------ |
| 8779 |
Version 8.19.0 [v8-stable] 2016-05-31 |
| 8780 |
- NEW BUILD REQUIREMENT: autoconf-archive |
| 8781 |
- omelasticsearch: add option to permit unsigned certs (experimentally) |
| 8782 |
This adds plumbing as suggested by Joerg Heinemann and Radu Gheorghe, |
| 8783 |
but is otherwise untested. Chances are good it works. If you use it, |
| 8784 |
please let us know your experience and most importantly any bug |
| 8785 |
reports you may have. |
| 8786 |
closes https://github.com/rsyslog/rsyslog/issues/89 |
| 8787 |
- imrelp: better error codes on unavailability of TLS options |
| 8788 |
Most importantly, we will tell the user in clear words if specific TLS |
| 8789 |
options are not available due to too-old GnuTLS. |
| 8790 |
closes https://github.com/rsyslog/rsyslog/issues/1019 |
| 8791 |
- default stack size for inputs has been explicitly set to 4MiB |
| 8792 |
for most platforms, this means a reduction from the default of 10MiB, however |
| 8793 |
it may mean an increase for micro-libc's (some may have as low as 80KiB by |
| 8794 |
default). |
| 8795 |
- testbench: We are now using libfaketime instead of faketime command line |
| 8796 |
tool. Make sure you have installed the library and not just the binary! |
| 8797 |
- refactor stringbuf |
| 8798 |
* use only a single string buffer |
| 8799 |
... both for the internal representation as well as the C-String one. |
| 8800 |
The module originally tried to support embedded NUL characters, which |
| 8801 |
over time has proven to be not necessary. Rsyslog always encodes |
| 8802 |
NUL into escape sequences. |
| 8803 |
Also, the dual buffers were used inconsistently, which could lead to |
| 8804 |
subtle bugs. With the single buffer, this does no longer happen and |
| 8805 |
we also get some improved performance (should be noticeable) |
| 8806 |
and reduced memory use (a bit). |
| 8807 |
closes https://github.com/rsyslog/rsyslog/issues/1033 |
| 8808 |
* removed no longer used code |
| 8809 |
* internal API changes to reflect new needs |
| 8810 |
* performance improvements |
| 8811 |
* miscellaneous minor cleanup |
| 8812 |
- fix: potential misaddressing in template config processing |
| 8813 |
This could cause segfault on startup. Happens when template name shorter |
| 8814 |
than two chars and outname is not set. Once we are over startup, things |
| 8815 |
work reliably. |
| 8816 |
- bugfix omfile: async output file writing does not respect flushing |
| 8817 |
neither parameter flushInterval nor flushOnTXEnd="on" was respected. |
| 8818 |
closes https://github.com/rsyslog/rsyslog/issues/1054 |
| 8819 |
- bugfix imfile: corrupted multi-line message when state data was persisted |
| 8820 |
see also https://github.com/rsyslog/rsyslog/issues/874 |
| 8821 |
Thanks to Magnus Hyllander for the analysis and a patch suggestion. |
| 8822 |
- bugfix imfile: missing newline after first line of multiline message |
| 8823 |
see also https://github.com/rsyslog/rsyslog/issues/843 |
| 8824 |
Thanks to Magnus Hyllander for the patch. |
| 8825 |
- bugfix: dynstats unusedMetricTtl bug |
| 8826 |
Thanks to Janmejay Singh for fixing this. |
| 8827 |
- bugfix build system: build was broken on SunOS |
| 8828 |
Thanks to Filip Hajny for the patch. |
| 8829 |
- bugfix: afterRun entry point not correctly called |
| 8830 |
The entry point was called at the wrong spot, only when the thread |
| 8831 |
had not already terminated by itself. This could cause various |
| 8832 |
cleanup to not be done. This affected e.g. imjournal. |
| 8833 |
closes https://github.com/rsyslog/rsyslog/issues/882 |
| 8834 |
- bugfix dynstats: do not leak file handles |
| 8835 |
Thanks to Janmejay Singh for the patch. |
| 8836 |
- bugfix omelasticsearch: disable libCURL signal handling |
| 8837 |
previously, this could lead to segfaults on connection timeout |
| 8838 |
see also https://github.com/rsyslog/rsyslog/pull/1007 |
| 8839 |
Thanks to Sai Ke WANG for the patch. |
| 8840 |
- bugfix omelasticsearch: some regressions were fixed |
| 8841 |
* error file was no longer written |
| 8842 |
* fix for some potential misaddressings |
| 8843 |
- improved wording: gnutls error message points to potential cause |
| 8844 |
What GnutTLS returns us is very unspecific and somewhat misleading, so |
| 8845 |
we point to what it most probably is (broken connect). |
| 8846 |
see also https://github.com/rsyslog/rsyslog/issues/846 |
| 8847 |
- some general code improvements |
| 8848 |
* "fixed" cosmetic memory leaks at shutdown |
| 8849 |
- build system bugfix: configure can't find gss_acquire_cred on Solaris |
| 8850 |
Thanks to github user vlmarek for the patch. |
| 8851 |
- improvements to the CI environment |
| 8852 |
* improvements on the non-raciness of some tests |
| 8853 |
* imdiag: avoid races in detecting queue empty status |
| 8854 |
This resolves cases where the testbench terminated rsyslog too early, |
| 8855 |
resulting in potential message loss and test failure. |
| 8856 |
* omkafka has now dynamic tests |
| 8857 |
Thanks to Janmejay Singh for implementing them. |
| 8858 |
* try to merge PR to master and run tests; this guards against cross-PR |
| 8859 |
regressions and wasn't caught previously. Note that we skip this test |
| 8860 |
if we cannot successfully merge. So this is not a replacement for a |
| 8861 |
daily full "all-project integration test run". |
| 8862 |
* travis has finally enabled elasticsearch tests |
| 8863 |
ES was unfortunately not being regularly tested for quite a while due to |
| 8864 |
missing environment. This lead to some regressions becoming undetected. |
| 8865 |
These were now discovered thanks to the new support on travis. Also, this |
| 8866 |
guards against future regressions. |
| 8867 |
* imfile has now additional tests and overall better coverage |
| 8868 |
* omfile has now additional tests |
| 8869 |
------------------------------------------------------------------------------ |
| 8870 |
Version 8.18.0 [v8-stable] 2016-04-19 |
| 8871 |
- testbench: When running privdrop tests testbench tries to drop |
| 8872 |
user to "rsyslog", "syslog" or "daemon" when running as root and |
| 8873 |
you don't explicit set RSYSLOG_TESTUSER environment variable. |
| 8874 |
Make sure the unprivileged testuser can write into tests/ dir! |
| 8875 |
- templates: add option to convert timestamps to UTC |
| 8876 |
closes https://github.com/rsyslog/rsyslog/issues/730 |
| 8877 |
- omjournal: fix segfault (regression in 8.17.0) |
| 8878 |
- imptcp: added AF_UNIX support |
| 8879 |
Thanks to Nathan Brown for implementing this feature. |
| 8880 |
- new template options |
| 8881 |
* compressSpace |
| 8882 |
* date-utc |
| 8883 |
- redis: support for authentication |
| 8884 |
Thanks to Manohar Ht for the patch |
| 8885 |
- omkafka: makes kafka-producer on-HUP restart optional |
| 8886 |
As of now, omkafka kills and re-creates kafka-producer on HUP. This |
| 8887 |
is not always desirable. This change introduces an action param |
| 8888 |
(reopenOnHup="on|off") which allows user to control re-cycling of |
| 8889 |
kafka-producer. |
| 8890 |
It defaults to on (for backward compatibility). Off allows user to |
| 8891 |
ignore HUP as far as kafka-producer is concerned. |
| 8892 |
Thanks to Janmejay Singh for implementing this feature |
| 8893 |
- imfile: new "FreshStartTail" input parameter |
| 8894 |
Thanks to Curu Wong for implementing this. |
| 8895 |
- omjournal: fix libfastjson API issues |
| 8896 |
This module accessed private data members of libfastjson |
| 8897 |
- ommongodb: fix json API issues |
| 8898 |
This module accessed private data members of libfastjson |
| 8899 |
- testbench improvements (more tests and more thorough tests) |
| 8900 |
among others: |
| 8901 |
- tests for omjournal added |
| 8902 |
- tests for KSI subsystem |
| 8903 |
- tests for privilege drop statements |
| 8904 |
- basic test for RELP with TLS |
| 8905 |
- some previously disabled tests have been re-enabled |
| 8906 |
- dynamic stats subsystem: a couple of smaller changes |
| 8907 |
they also involve the format, which is slightly incompatible to |
| 8908 |
previous version. As this was out only very recently (last version), |
| 8909 |
we considered this as acceptable. |
| 8910 |
Thanks to Janmejay Singh for developing this. |
| 8911 |
- foreach loop: now also iterates over objects (not just arrays) |
| 8912 |
Thanks to Janmejay Singh for developing this. |
| 8913 |
- improvements to the CI environment |
| 8914 |
- enhancement: queue subsystem is more robst in regard to some corruptions |
| 8915 |
It is now detected if a .qi file states that the queue contains more |
| 8916 |
records than there are actually inside the queue files. Previously this |
| 8917 |
resulted in an emergency switch to direct mode, now the problem is only |
| 8918 |
reported but processing continues. |
| 8919 |
- enhancement: Allow rsyslog to bind UDP ports even w/out specific |
| 8920 |
interface being up at the moment. |
| 8921 |
Alternatively, rsyslog could be ordered after networking, however, |
| 8922 |
that might have some negative side effects. Also IP_FREEBIND is |
| 8923 |
recommended by systemd documentation. |
| 8924 |
Thanks to Nirmoy Das and Marius Tomaschewski for the patch. |
| 8925 |
- cleanup: removed no longer needed json-c compatibility layer |
| 8926 |
as we now always use libfastjson, we do not need to support old |
| 8927 |
versions of json-c (libfastjson was based on the newest json-c |
| 8928 |
version at the time of the fork, which is the newest in regard |
| 8929 |
to the compatibility layer) |
| 8930 |
- new External plugin for sending metrics to SPM Monitoring SaaS |
| 8931 |
Thanks to Radu Gheorghe for the patch. |
| 8932 |
- bugfix imfile: fix memory corruption bug when appending @cee |
| 8933 |
Thanks to Brian Knox for the patch. |
| 8934 |
- bugfix: memory misallocation if position.from and position.to is used |
| 8935 |
a negative amount of memory is tried to be allocated if position.from |
| 8936 |
is smaller than the buffer size (at least with json variables). This |
| 8937 |
usually leads to a segfault. |
| 8938 |
closes https://github.com/rsyslog/rsyslog/issues/915 |
| 8939 |
- bugfix: fix potential memleak in TCP allowed sender definition |
| 8940 |
depending on circumstances, a very small leak could happen on each |
| 8941 |
HUP. This was caused by an invalid macro definition which did not rule |
| 8942 |
out side effects. |
| 8943 |
- bugfix: $PrivDropToGroupID actually did a name lookup |
| 8944 |
... instead of using the provided ID |
| 8945 |
- bugfix: small memory leak in imfile |
| 8946 |
Thanks to Tomas Heinrich for the patch. |
| 8947 |
- bugfix: double free in jsonmesg template |
| 8948 |
There has to be actual json data in the message (from mmjsonparse, |
| 8949 |
mmnormalize, imjournal, ...) to trigger the crash. |
| 8950 |
Thanks to Tomas Heinrich for the patch. |
| 8951 |
- bugfix: incorrect formatting of stats when CEE/Json format is used |
| 8952 |
This lead to ill-formed json being generated |
| 8953 |
- bugfix omfwd: new-style keepalive action parameters did not work |
| 8954 |
due to being inconsistently spelled inside the code. Note that legacy |
| 8955 |
parameters $keepalive... always worked |
| 8956 |
see also: https://github.com/rsyslog/rsyslog/issues/916 |
| 8957 |
Thanks to Devin Christensen for alerting us and an analysis of the |
| 8958 |
root cause. |
| 8959 |
- bugfix: memory leaks in logctl utility |
| 8960 |
Detected by clang static analyzer. Note that these leaks CAN happen in |
| 8961 |
practice and may even be pretty large. This was probably never detected |
| 8962 |
because the tool is not often used. |
| 8963 |
- bugfix omrelp: fix segfault if no port action parameter was given |
| 8964 |
closes https://github.com/rsyslog/rsyslog/issues/911 |
| 8965 |
- bugfix imtcp: Messages not terminated by a NL were discarded |
| 8966 |
... upon connection termination. |
| 8967 |
Thanks to Tomas Heinrich for the patch. |
| 8968 |
------------------------------------------------------------------------------ |
| 8969 |
Version 8.17.0 [v8-stable] 2016-03-08 |
| 8970 |
- NEW REQUIREMENT: libfastjson |
| 8971 |
see also: |
| 8972 |
http://blog.gerhards.net/2015/12/rsyslog-and-liblognorm-will-switch-to.html |
| 8973 |
- new testbench requirement: faketime command line tool |
| 8974 |
This is used to generate a controlled environment for time-based tests; if |
| 8975 |
not available, tests will gracefully be skipped. |
| 8976 |
- improve json variable performance |
| 8977 |
We use libfastjson's alternative hash function, which has been |
| 8978 |
proven to be much faster than the default one (which stems |
| 8979 |
back to libjson-c). This should bring an overall performance |
| 8980 |
improvement for all operations involving variable processing. |
| 8981 |
closes https://github.com/rsyslog/rsyslog/issues/848 |
| 8982 |
- new experimental feature: lookup table support |
| 8983 |
Note that at this time, this is an experimental feature which is not yet |
| 8984 |
fully supported by the rsyslog team. It is introduced in order to gain |
| 8985 |
more feedback and to make it available as early as possible because many |
| 8986 |
people consider it useful. |
| 8987 |
Thanks to Janmejay Singh for implementing this feature |
| 8988 |
- new feature: dynamic statistics counters |
| 8989 |
which may be changed during rule processing |
| 8990 |
Thanks to Janmejay Singh for suggesting and implementing this feature |
| 8991 |
- new contributed plugin: omamqp1 for AMQP 1.0-compliant brokers |
| 8992 |
Thanks to Ken Giusti for this module |
| 8993 |
- new set of UTC-based $now family of variables ($now-utc, $year-utc, ...) |
| 8994 |
- simplified locking when accessing message and local variables |
| 8995 |
this simplifies the code and slightly increases performance if such |
| 8996 |
variables are heavily accessed. |
| 8997 |
- new global parameter "debug.unloadModules" |
| 8998 |
This permits to disable unloading of modules, e.g. to make valgrind |
| 8999 |
reports more useful (without a need to recompile). |
| 9000 |
- timestamp handling: guard against invalid dates |
| 9001 |
We do not permit dates outside of the year 1970..2100 |
| 9002 |
interval. Note that network-receivers do already guard |
| 9003 |
against this, so the new guard only guards against invalid |
| 9004 |
system time. |
| 9005 |
- imfile: add "trimlineoverbytes" input parameter |
| 9006 |
Thanks to github user JindongChen for the patch. |
| 9007 |
- ommongodb: add support for extended json format for dates |
| 9008 |
Thanks to Florian Bücklers for the patch. |
| 9009 |
- omjournal: add support for templates |
| 9010 |
see also: https://github.com/rsyslog/rsyslog/pull/770 |
| 9011 |
Thanks to github user bobthemighty for the patch |
| 9012 |
- imuxsock: add "ruleset" input parameter |
| 9013 |
- testbench: framework improvement: configs can be included in test file |
| 9014 |
they do no longer need to be in a separate file, which saves a bit |
| 9015 |
of work when working with them. This is supported for simple tests with |
| 9016 |
a single running rsyslog instance |
| 9017 |
Thanks to Janmejay Singh for inspiring me with a similar method in |
| 9018 |
liblognorm testbench. |
| 9019 |
- imptcp: performance improvements |
| 9020 |
Thanks to Janmejay Singh for implementing this improvement |
| 9021 |
- made build compile (almost) without warnings |
| 9022 |
still some warnings are suppressed where this is currently required |
| 9023 |
- improve interface definition in some modules, e.g. mmanon, mmsequence |
| 9024 |
This is more an internal cleanup and should have no actual affect to |
| 9025 |
the end user. |
| 9026 |
- solaris build: MAXHOSTNAMELEN properly detected |
| 9027 |
- build system improvement: ability to detect old hiredis libs |
| 9028 |
This permits to automatically build omhiredis on systems where the |
| 9029 |
hiredis libs do not provide a pkgconfig file. Previously, this |
| 9030 |
required manual configuration. |
| 9031 |
Thanks to github user jaymell for the patch. |
| 9032 |
- rsgtutil: dump mode improvements |
| 9033 |
* auto-detect signature file type |
| 9034 |
* ability to dump hash chains for log extraction files |
| 9035 |
- build system: fix build issues with clang |
| 9036 |
clang builds often failed with a missing external symbol |
| 9037 |
"rpl_malloc". This was caused by checks in configure.ac, |
| 9038 |
which checked for specific GNU semantics. As we do not need |
| 9039 |
them (we never ask malloc for zero bytes), we can safely |
| 9040 |
remove the macros. |
| 9041 |
Note that we routinely run clang static analyzer in CI and |
| 9042 |
it also detects such calls as invalid. |
| 9043 |
closes https://github.com/rsyslog/rsyslog/issues/834 |
| 9044 |
- bugfix: unixtimestamp date format was incorrectly computed |
| 9045 |
The problem happened in leap year from March til then end |
| 9046 |
of year and healed itself at the beginning of the next year. |
| 9047 |
During the problem period, the timestamp was 24 hours too low. |
| 9048 |
fixes https://github.com/rsyslog/rsyslog/issues/830 |
| 9049 |
- bugfix: date-ordinal date format was incorrectly computed |
| 9050 |
same root cause aus for unixtimestamp and same triggering |
| 9051 |
condition. During the affected perido, the ordinal was one |
| 9052 |
too less. |
| 9053 |
- bugfix: some race when shutting down input module threads |
| 9054 |
this had little, if at all, effect on real deployments as it resulted |
| 9055 |
in a small leak right before rsyslog termination. However, it caused |
| 9056 |
trouble with the testbench (and other QA tools). |
| 9057 |
Thanks to Peter Portante for the patch and both Peter and Janmejay |
| 9058 |
Singh for helping to analyze what was going on. |
| 9059 |
- bugfix tcpflood: did not handle connection drops correct in TLS case |
| 9060 |
note that tcpflood is a testbench too. The bug caused some testbench |
| 9061 |
instability, but had no effect on deployments. |
| 9062 |
- bugfix: abort if global parameter value was wrong |
| 9063 |
If so, the abort happened during startup. Once started, |
| 9064 |
all was stable. |
| 9065 |
- bugfix omkafka: fix potential NULL pointer addressing |
| 9066 |
this happened when the topic cache was full and an entry |
| 9067 |
needed to be evicted |
| 9068 |
- bugfix impstats: @cee cookie was prefixed to wrong format (json vs. cee) |
| 9069 |
Thanks to Volker Fröhlich for the fix. |
| 9070 |
- bugfix imfile: fix race during startup that could lead to some duplication |
| 9071 |
If a to-be-monitored file was created after inotify was initialized |
| 9072 |
but before startup was completed, the first chunk of data from this |
| 9073 |
file could be duplicated. This should have happened very rarely in |
| 9074 |
practice, but caused occasional testbench failures. |
| 9075 |
see also: https://github.com/rsyslog/rsyslog/issues/791 |
| 9076 |
- bugfix: potential loss of single message at queue shutdown |
| 9077 |
see also: https://github.com/rsyslog/rsyslog/issues/262 |
| 9078 |
- bugfix: potential deadlock with heavy variable access |
| 9079 |
When making heavy use of global, local and message variables, a deadlock |
| 9080 |
could occur. While it is extremely unlikely to happen, we have at least |
| 9081 |
seen one incarnation of this problem in practice. |
| 9082 |
- bugfix ommysql: on some platforms, serverport parameter had no effect |
| 9083 |
This was caused by an invalid code sequence which's outcome depends on |
| 9084 |
compiler settings. |
| 9085 |
- bugfix omelasticsearch: invalid pointer dereference |
| 9086 |
The actual practical impact is not clear. This came up when working |
| 9087 |
on compiler warnings. |
| 9088 |
Thanks to David Lang for the patch. |
| 9089 |
- bugfix omhiredis: serverport config parameter did not reliably work |
| 9090 |
depended on environment/compiler used to build |
| 9091 |
- bugfix rsgtutil: -h command line option did not work |
| 9092 |
Thanks to Henri Lakk for the patch. |
| 9093 |
- bugfix lexer: hex numbers were not properly represented |
| 9094 |
see: https://github.com/rsyslog/rsyslog/pull/771 |
| 9095 |
Thanks to Sam Hanes for the patch. |
| 9096 |
- bugfix TLS syslog: intermittent errors while sending data |
| 9097 |
Regression from commit 1394e0b. A symptom often seen was the message |
| 9098 |
"unexpected GnuTLS error -50 in nsd_gtls.c:530" |
| 9099 |
- bugfix imfile: abort on startup if no slash was present in file name param |
| 9100 |
Thanks to Brian Knox for the patch. |
| 9101 |
- bugfix rsgtutil: fixed abort when using short command line options |
| 9102 |
Thanks to Henri Lakk |
| 9103 |
- bugfix rsgtutil: invalid computation of log record extraction file |
| 9104 |
This caused verification to fail because the hash chain was actually |
| 9105 |
incorrect. Depended on the input data set. |
| 9106 |
closes https://github.com/rsyslog/rsyslog/issues/832 |
| 9107 |
- bugfix build system: KSI components could only be build if in default path |
| 9108 |
------------------------------------------------------------------------------ |
| 9109 |
Version 8.16.0 [v8-stable] 2016-01-26 |
| 9110 |
- rsgtutil: Added extraction support including loglines and hash chains. |
| 9111 |
More details on how to extract loglines can be found in the rsgtutil |
| 9112 |
manpage. See also: https://github.com/rsyslog/rsyslog/issues/561 |
| 9113 |
- clean up doAction output module interface |
| 9114 |
We started with char * pointers, but used different types of pointers |
| 9115 |
over time. This lead to alignment warnings. In practice, I think this |
| 9116 |
should never cause any problems (at least there have been no reports |
| 9117 |
in the 7 or so years we do this), but it is not clean. The interface is |
| 9118 |
now cleaned up. We do this in a way that does not require modifications |
| 9119 |
to modules that just use string parameters. For those with message |
| 9120 |
parameters, have a look at e.g. mmutf8fix to see how easy the |
| 9121 |
required change is. |
| 9122 |
- new system properties for $NOW properties based on UTC |
| 9123 |
This permits to express current system time in UTC. |
| 9124 |
See also https://github.com/rsyslog/rsyslog/issues/729 |
| 9125 |
- impstats: support broken ElasticSearch JSON implementation |
| 9126 |
ES 2.0 no longer supports valid JSON and disallows dots inside names. |
| 9127 |
This adds a new "json-elasticsearch" format option which replaces |
| 9128 |
those dots by the bang ("!") character. So "discarded.full" becomes |
| 9129 |
"discarded!full". |
| 9130 |
This is a workaround. A method that will provide more control over |
| 9131 |
replacements will be implemented some time in the future. For |
| 9132 |
details, see below-quoted issue tracker. |
| 9133 |
closes https://github.com/rsyslog/rsyslog/issues/713 |
| 9134 |
- omelasticsearch: craft better URLs |
| 9135 |
Elasticsearch is confused by url's ending in a bare '?' or '&'. While |
| 9136 |
this is valid, those are no longer produced. |
| 9137 |
Thanks to Benno Evers for the patch. |
| 9138 |
- imfile: add experimental "reopenOnTruncate" parameter |
| 9139 |
Thanks to Matthew Wang for the patch. |
| 9140 |
- bugfix imfile: proper handling of inotify initialization failure |
| 9141 |
Thanks to Zachary Zhao for the patch. |
| 9142 |
- bugfix imfile: potential segfault due to improper handling of ev var |
| 9143 |
This occurs in inotify mode, only. |
| 9144 |
Thanks to Zachary Zhao and Peter Portante for the patch. |
| 9145 |
closes https://github.com/rsyslog/rsyslog/issues/718 |
| 9146 |
- bugfix imfile: potential segfault under heavy load. |
| 9147 |
This occurs in inotify mode when using wildcards, only. |
| 9148 |
The root cause is dropped IN_IGNORED inotify events which be dropped |
| 9149 |
in circumstance of high input pressure and frequent rotation, and |
| 9150 |
according to wikipeida, they can also be dropped in other conditions. |
| 9151 |
Thanks to Zachary Zhao for the patch. |
| 9152 |
closes https://github.com/rsyslog/rsyslog/issues/723 |
| 9153 |
- bugfix ommail: invalid handling of server response |
| 9154 |
if that response was split into different read calls. Could lead to |
| 9155 |
error-termination of send operation. Problem is pretty unlikely to |
| 9156 |
occur in standard setups (requires slow connection to SMTP server). |
| 9157 |
Thank to github user haixingood for the patch. |
| 9158 |
- bugfix omelasticsearch: custom serverport was ignored on some platforms |
| 9159 |
Thanks to Benno Evers for the patch. |
| 9160 |
- bugfix: tarball did not include some testbench files |
| 9161 |
Thanks to Thomas D. (whissi) for the patch. |
| 9162 |
- bugfix: memory misaddressing during config parsing string template |
| 9163 |
This occurred if an (invalid) template option larger than 63 characters |
| 9164 |
was given. |
| 9165 |
Thanks to git hub user c6226 for the patch. |
| 9166 |
- bugfix imzmq: memory leak |
| 9167 |
Thanks to Jeremy Liang for the patch. |
| 9168 |
- bugfix imzmq: memory leak |
| 9169 |
Thanks to github user xushengping for the patch. |
| 9170 |
- bugfix omzmq: memory leak |
| 9171 |
Thanks to Jack Lin for the patch. |
| 9172 |
- some code improvement and cleanup |
| 9173 |
------------------------------------------------------------------------------ |
| 9174 |
Version 8.15.0 [v8-stable] 2015-12-15 |
| 9175 |
- KSI Lib: Updated code to run with libksi 3.4.0.5 |
| 9176 |
Also libksi 3.4.0.x is required to build rsyslog if ksi support |
| 9177 |
is enabled. New libpackages have been build as well. |
| 9178 |
- KSI utilities: Added option to ser publication url. |
| 9179 |
Since libksi 3.4.0.x, there is no default publication url anymore. |
| 9180 |
The publication url has to be set using the --publications-server |
| 9181 |
Parameter, otherwise the ksi signature cannot be verified. UserID |
| 9182 |
and UserKey can also be set by parameter now. |
| 9183 |
Closes https://github.com/rsyslog/rsyslog/issues/581 |
| 9184 |
- KSI Lib: Fixed wrong TLV container for KSI signatures from 0905 to 0906. |
| 9185 |
closes https://github.com/rsyslog/rsyslog/issues/587 |
| 9186 |
- KSI/GT Lib: Fixed multiple issues found using static analyzer |
| 9187 |
- performance improvement for configs with heavy use of JSON variables |
| 9188 |
Depending on the config, this can be a very big gain in performance. |
| 9189 |
- added pmpanngfw: contributed module for translating Palo Alto Networks logs. |
| 9190 |
see also: https://github.com/rsyslog/rsyslog/pull/573 |
| 9191 |
Thanks to Luigi Mori for the contribution. |
| 9192 |
- testbench: Changed valgrind option for imtcp-tls-basic-vg.sh |
| 9193 |
For details see: https://github.com/rsyslog/rsyslog/pull/569 |
| 9194 |
- pmciscoios: support for asterisk before timestamp added |
| 9195 |
thanks to github user c0by for the patch |
| 9196 |
see also: https://github.com/rsyslog/rsyslog/pull/583 |
| 9197 |
- solr external output plugin much enhanced |
| 9198 |
see also: https://github.com/rsyslog/rsyslog/pull/529 |
| 9199 |
Thanks to Radu Gheorghe for the patch. |
| 9200 |
- omrabbitmq: improvements |
| 9201 |
thanks to Luigi Mori for the patch |
| 9202 |
see also: https://github.com/rsyslog/rsyslog/pull/580 |
| 9203 |
- add support for libfastjson (as a replacement for json-c) |
| 9204 |
- KSI utilities: somewhat improved error messages |
| 9205 |
Thanks to Henri Lakk for the patch. |
| 9206 |
see also: https://github.com/rsyslog/rsyslog/pull/588 |
| 9207 |
- pmciscoios: support for some format variations |
| 9208 |
Thanks to github user c0by for the patch |
| 9209 |
- support grok via new contributed module mmgrok |
| 9210 |
Thanks to 饶琛琳 (github user chenryn) for the contribution. |
| 9211 |
- omkafka: new statistics counter "maxoutqsize" |
| 9212 |
Thanks to 饶琛琳 (github user chenryn) for the contribution. |
| 9213 |
- improvements for 0mq modules: |
| 9214 |
* omczmq - suspend / Retry handling - the output plugin can now recover |
| 9215 |
from some error states due to issues with plugin startup or message sending |
| 9216 |
* omczmq - refactored topic handling code for ZMQ_PUB output to be a little |
| 9217 |
more efficient |
| 9218 |
* omczmq - added ability to set a timeout for sends |
| 9219 |
* omczmq - set topics can be in separate frame (default) or part of message |
| 9220 |
frame (configurable) |
| 9221 |
* omczmq - code cleanup |
| 9222 |
* imczmq - code cleanup |
| 9223 |
* imczmq - fixed a couple of cases where vars could be used uninitialized |
| 9224 |
* imczmq - ZMQ_ROUTER support |
| 9225 |
* imczmq - Fix small memory leak from not freeing sockets when done with them |
| 9226 |
* allow creation of on demand ephemeral CurveZMQ certs for encryption. |
| 9227 |
Clients may specify clientcertpath="*" to indicate they want an on |
| 9228 |
demand generated cert. |
| 9229 |
Thanks to Brian Knox for the contributions. |
| 9230 |
- cleanup on code to unset a variable |
| 9231 |
under extreme cases (very, very unlikely), the old code could also lead |
| 9232 |
to erroneous processing |
| 9233 |
- omelasticsearch: build on FreeBSD |
| 9234 |
Thanks to github user c0by for the patch |
| 9235 |
- pmciscoios: fix some small issues clang static analyzer detected |
| 9236 |
- testbench: many improvements and some new tests |
| 9237 |
note that there still is a number of tests which are somewhat racy |
| 9238 |
- overall code improvements thanks to clang static analyzer |
| 9239 |
- gnutls fix: Added possible fix for gnutls issue #575 |
| 9240 |
see also: https://github.com/rsyslog/rsyslog/issues/575 |
| 9241 |
Thanks to Charles Southerland for the patch |
| 9242 |
- bugfix omkafka: restore ability to build on all platforms |
| 9243 |
Undo commit aea09800643343ab8b6aa205b0f10a4be676643b |
| 9244 |
because that lead to build failures on various important platforms. |
| 9245 |
This means it currently is not possible to configure the location |
| 9246 |
of librdkafka, but that will affect far fewer people. |
| 9247 |
closes: https://github.com/rsyslog/rsyslog/issues/596 |
| 9248 |
- bugfix omkafka: fix potentially negative partition number |
| 9249 |
Thanks to Tait Clarridge for providing a patch. |
| 9250 |
- bugfix: solve potential race in creation of additional action workers |
| 9251 |
Under extreme circumstances, this could lead to segfault. Note that we |
| 9252 |
detected this problem thanks to ASAN address sanitizer in combination |
| 9253 |
with a very extreme testbench test. We do not think that this issue |
| 9254 |
was ever reported in practice. |
| 9255 |
- bugfix: potential memory leak in config parsing |
| 9256 |
Thanks to github user linmujia for the patch |
| 9257 |
- bugfix: small memory leak in loading template config |
| 9258 |
This happened when a plugin was used inside the template. Then, the |
| 9259 |
memory for the template name was never freed. |
| 9260 |
Thanks to github user xushengping for the fix. |
| 9261 |
- bugfix: fix extra whitespace in property expansions |
| 9262 |
Address off-by-one issues introduced in f3bd7a2 resulting in extra |
| 9263 |
whitespace in property expansions |
| 9264 |
Thanks to Matthew Gabeler-Lee for the patch. |
| 9265 |
- bugfix: mmfields leaked memory if very large messages were processed |
| 9266 |
detected by clang static analyzer |
| 9267 |
- bugfix: mmfields could add garbage data to field |
| 9268 |
this happened when very large fields were to be processed. |
| 9269 |
Thanks to Peter Portante for reporting this. |
| 9270 |
- bugfix: omhttpfs now also compiles with older json-c lib |
| 9271 |
- bugfix: memory leak in (contributed) module omhttpfs |
| 9272 |
Thanks to git hub user c6226 for the patch. |
| 9273 |
- bugfix: parameter mismatch in error message for wrap() function |
| 9274 |
- bugfix: parameter mismatch in error message for random() function |
| 9275 |
- bugfix: divide by zero if max() function was provided zero |
| 9276 |
- bugfix: invalid mutex handling in omfile async write mode |
| 9277 |
could lead to segfault, even though highly unlikely (caught by |
| 9278 |
testbench on a single platform) |
| 9279 |
- bugfix: fix inconsistent number processing |
| 9280 |
Unfortunately, previous versions of the rule engine tried to |
| 9281 |
support oct and hex, but that wasn't really the case. |
| 9282 |
Everything based on JSON was just dec-converted. As this was/is |
| 9283 |
the norm, we fix that inconsistency by always using dec. |
| 9284 |
Luckily, oct and hex support was never documented and could |
| 9285 |
probably only have been activated by constant numbers. |
| 9286 |
- bugfix: timezone() object: fix NULL pointer dereference |
| 9287 |
This happened during startup when the offset or id parameter was not |
| 9288 |
given. Could lead to a segfault at startup. |
| 9289 |
Detected by clang static analyzer. |
| 9290 |
- bugfix omfile: memory addressing error if very long outchannel name used |
| 9291 |
Thanks to github user c6226 for the patch. |
| 9292 |
------------------------------------------------------------------------------ |
| 9293 |
Version 8.14.0 [v8-stable] 2015-11-03 |
| 9294 |
- Added possibility to customize librdkafka location |
| 9295 |
see also: https://github.com/rsyslog/rsyslog/pull/502 |
| 9296 |
Thanks to Matthew Wang for the patch. |
| 9297 |
- add property "rawmsg-after-pri" |
| 9298 |
- bugfix: potential misaddresseing in imfile |
| 9299 |
Could happen when wildcards were used. |
| 9300 |
see also https://github.com/rsyslog/rsyslog/issues/532 |
| 9301 |
see also https://github.com/rsyslog/rsyslog/issues/534 |
| 9302 |
Thanks to zhangdaoling for the bugfix. |
| 9303 |
- bugfix: re_extract RainerScript function did not work |
| 9304 |
Thanks to Janmejay Singh for the patch |
| 9305 |
------------------------------------------------------------------------------ |
| 9306 |
Version 8.13.0 [v8-stable] 2015-09-22 |
| 9307 |
- ZeroMQ enhancements: |
| 9308 |
* Added the ability to set a static publishing topic per action as an |
| 9309 |
alternative to constructing topics with templates |
| 9310 |
Contributor: Luca Bocassi |
| 9311 |
* ZMQ_PUB socket now defaults to bind and ZMQ_SUB socket now defaults to |
| 9312 |
connect - Contributor: Luca Bocassi |
| 9313 |
- Redis enhancements: |
| 9314 |
* Can now LPUSH to a Redis list in "queue" mode - Contributor: Brian Knox |
| 9315 |
* Can now PUBLISH to a Redis channel in "publish" mode |
| 9316 |
Contributor: Brian Knox |
| 9317 |
- build requirement for rsyslog/mmnormalize is now liblognorm 1.1.2 or above |
| 9318 |
- mmnormalize: liblognorm error messages are now emitted via regular |
| 9319 |
rsyslog error reporting mechanism (aka "are now logged") |
| 9320 |
This is possible due to a new API in liblognorm 1.1.2; |
| 9321 |
Note that the amount of error messages depends on the version of |
| 9322 |
liblognorm used. |
| 9323 |
- add support for TCP client side keep-alives |
| 9324 |
Thanks to github user tinselcity for the patch. |
| 9325 |
- bugfix: imtcp/TLS hangs on dropped packets |
| 9326 |
see also https://github.com/rsyslog/rsyslog/issues/318 |
| 9327 |
Thanks to github user tinselcity for the patch. |
| 9328 |
- bugfix testbench: some tests using imptcp are run if module is disabled |
| 9329 |
Thanks to Michael Biebl for reporting this |
| 9330 |
see also https://github.com/rsyslog/rsyslog/issues/524 |
| 9331 |
- bugfix omkafka: Fixes a bug not accepting new messages anymore. |
| 9332 |
see also: https://github.com/rsyslog/rsyslog/pull/472 |
| 9333 |
Thanks to Janmejay Singh |
| 9334 |
- bugfix: Parallel build issue "cannot find ../runtime/.libs/librsyslog.a: |
| 9335 |
No such file or directory" (#479) fixed. |
| 9336 |
Thanks to Thomas D. (Whissi) for the patch. |
| 9337 |
- bugfix: Added missing mmpstrucdata testfiles into makefile. |
| 9338 |
see also: https://github.com/rsyslog/rsyslog/issues/484 |
| 9339 |
- bugfix: Reverted FIX for issue #392 as it had unexpected side effects. |
| 9340 |
The new fix duplicates the Listener object for static files (like |
| 9341 |
done for dynamic files already), resolving issue #392 and #490. |
| 9342 |
see also https://github.com/rsyslog/rsyslog/pull/490 |
| 9343 |
- bugfix: issues in queue subsystem if syncqueuefiles was enabled |
| 9344 |
* Error 14 was generated on the .qi file directory handle. |
| 9345 |
As the .qi filestream does not have a directory set, fsync |
| 9346 |
was called on an empty directory causing a error 14 in debug log. |
| 9347 |
* When queue files existed on startup, the bSyncQueueFiles |
| 9348 |
strm property was not set to 1. This is now done in the |
| 9349 |
qqueueLoadPersStrmInfoFixup function. |
| 9350 |
- bugfix/testbench: tcpflood tool could abort when random data was added |
| 9351 |
see also: https://github.com/rsyslog/rsyslog/issues/506 |
| 9352 |
Thanks to Louis Bouchard for the fix |
| 9353 |
- rscryutil: Added support to decrypt a not closed log file. |
| 9354 |
Thanks to wizard1024 for the patch. |
| 9355 |
------------------------------------------------------------------------------ |
| 9356 |
Version 8.12.0 [v8-stable] 2015-08-11 |
| 9357 |
- Harmonize resetConfigVariables values and defaults |
| 9358 |
see also https://github.com/rsyslog/rsyslog/pull/413 |
| 9359 |
Thanks to Tomas Heinrich for the patch. |
| 9360 |
- GT/KSI: fix some issues in signature file format and add conversion tool |
| 9361 |
The file format is incompatible to previous format, but tools have been |
| 9362 |
upgraded to handle both and also an option been added to convert from |
| 9363 |
old to new format. |
| 9364 |
- bugfix: ommysql did not work when gnutls was enabled |
| 9365 |
as it turned out, this was due to a check for GnuTLS functions |
| 9366 |
with the side-effect that |
| 9367 |
AC_CHECK_LIB, by default, adds the lib to LIBS, if there is no |
| 9368 |
explicit action, what was the case here. So everything was now |
| 9369 |
linked against GnuTLS, which in turn made ommysql fail. |
| 9370 |
Thanks to Thomas D. (whissi) for the analysis of the ommysql/gnutls |
| 9371 |
problem and Thomas Heinrich for pointing out that AC_CHECK_LIB might |
| 9372 |
be the culprit. |
| 9373 |
- bugfix omfile: potential memory leak on file close |
| 9374 |
see also: https://github.com/rsyslog/rsyslog/pull/423 |
| 9375 |
Thanks to Robert Schiele for the patch. |
| 9376 |
- bugfix omfile: potential race in dynafile detection/creation |
| 9377 |
This could lead to a segfault. |
| 9378 |
Thanks to Tomas Heinrich for the patch. |
| 9379 |
- bugfix omfile: Fix race-condition detection in path-creation code |
| 9380 |
The affected code is used to detect a race condition in between |
| 9381 |
testing for the existence of a directory and creating it if it didn't |
| 9382 |
exist. The variable tracking the number of attempts wasn't reset for |
| 9383 |
subsequent elements in the path, thus limiting the number of |
| 9384 |
reattempts to one per the whole path, instead of one per each path |
| 9385 |
element. |
| 9386 |
This solution was provided by Martin Poole. |
| 9387 |
- bugfix parser subsystem: potential misaddressing in SanitizeMsg() |
| 9388 |
could lead to a segfault |
| 9389 |
Thanks to Tomas Heinrich for the patch. |
| 9390 |
- imfile: files moved outside of directory are now (properly) handled |
| 9391 |
- bugfix: imfile: segfault when using startmsg.regex if first log line |
| 9392 |
doesn't match |
| 9393 |
Thanks to Ciprian Hacman for the patch. |
| 9394 |
- bugfix imfile: file table was corrupted when on file deletion |
| 9395 |
This could happen when a file that was statically configured (not via an |
| 9396 |
wildcard) was deleted. |
| 9397 |
- bugfix ompgsql: transaction were improperly handled |
| 9398 |
now transaction support is solidly disabled until we have enough requests |
| 9399 |
to implement it again. Module still works fine in single insert mode. |
| 9400 |
closes https://github.com/rsyslog/rsyslog/issues/399 |
| 9401 |
- bugfix mmjsonparse: memory leak if non-cee-json message is processed |
| 9402 |
see also https://github.com/rsyslog/rsyslog/pull/383 |
| 9403 |
Thanks to Anton Matveenko for the patch |
| 9404 |
- testbench: remove raciness from UDP based tests |
| 9405 |
- testbench: added bash into all scripts making it mandatory |
| 9406 |
- bugfix testbench: Fixed problem building syslog_caller util when |
| 9407 |
liblogging-stdlog is not available. |
| 9408 |
Thanks to Louis Bouchard for the patch |
| 9409 |
- bugfix rscryutil.1: Added fix checking for generate_man_pages condition |
| 9410 |
Thanks to Radovan Sroka for the patch |
| 9411 |
- bugfix freebsd console: \n (NL) is prepended with \r (CR) in console |
| 9412 |
output on freebsd only. For more details see here: |
| 9413 |
https://github.com/rsyslog/rsyslog/issues/372 |
| 9414 |
Thanks to AlexandreFenyo for the patch |
| 9415 |
------------------------------------------------------------------------------ |
| 9416 |
Version 8.11.0 [v8-stable] 2015-06-30 |
| 9417 |
- new signature provider for Keyless Signature Infrastructure (KSI) added |
| 9418 |
- build system: re-enable use of "make distcheck" |
| 9419 |
- add new signature provider for Kesless Signature Infrastructure (KSI) |
| 9420 |
This has also been added to existing tooling; KSI is kind of v2 of |
| 9421 |
the Guardtime functionality and has been added in the appropriate |
| 9422 |
places. |
| 9423 |
- bugfix imfile: regex multiline mode ignored escapeLF option |
| 9424 |
Thanks to Ciprian Hacman for reporting the problem |
| 9425 |
closes https://github.com/rsyslog/rsyslog/issues/370 |
| 9426 |
- bugfix omkafka: fixed several concurrency issues, most of them related |
| 9427 |
to dynamic topics. |
| 9428 |
Thanks to Janmejay Singh for the patch. |
| 9429 |
- bugfix: execonlywhenpreviousissuspended did not work correctly |
| 9430 |
This especially caused problems when an action with this attribute was |
| 9431 |
configured with an action queue. |
| 9432 |
- bugfix core engine: ensured global variable atomicity |
| 9433 |
This could lead to problems in RainerScript, as well as probably in other |
| 9434 |
areas where global variables are used inside rsyslog. I wouldn't outrule |
| 9435 |
it could lead to segfaults. |
| 9436 |
Thanks to Janmejay Singh for the patch. |
| 9437 |
- bugfix imfile: segfault when using startmsg.regex because of empty log line |
| 9438 |
closes https://github.com/rsyslog/rsyslog/issues/357 |
| 9439 |
Thanks to Ciprian Hacman for the patch. |
| 9440 |
- bugfix: build problem on Solaris |
| 9441 |
Thanks to Dagobert Michelsen for reporting this and getting us up to |
| 9442 |
speed on the openCWS build farm. |
| 9443 |
- bugfix: build system strndup was used even if not present |
| 9444 |
now added compatibility function. This came up on Solaris builds. |
| 9445 |
Thanks to Dagobert Michelsen for reporting the problem. |
| 9446 |
closes https://github.com/rsyslog/rsyslog/issues/347 |
| 9447 |
- bugfix imjournal: do not pass empty messages to rsyslog core |
| 9448 |
this causes a crash of the daemon |
| 9449 |
see also https://github.com/rsyslog/rsyslog/pull/412 |
| 9450 |
Thanks to Tomas Heinrich for the patch. |
| 9451 |
- bugfix imjournal: cosmetic memory leak |
| 9452 |
very small and an shutdown only, so did not affect operations |
| 9453 |
see also https://github.com/rsyslog/rsyslog/pull/411 |
| 9454 |
Thanks to Tomas Heinrich for the patch. |
| 9455 |
------------------------------------------------------------------------------ |
| 9456 |
Version 8.10.0 [v8-stable] 2015-05-19 |
| 9457 |
- imfile: add capability to process multi-line messages based on regex |
| 9458 |
input parameter "endmsg.regex" was added for that purpose. The new |
| 9459 |
mode provides much more power in processing different multiline-formats. |
| 9460 |
- pmrfc3164: add new parameters |
| 9461 |
* "detect.yearAfterTimestamp" |
| 9462 |
This supports timestamps as generated e.g. by some Aruba Networks |
| 9463 |
equipment. |
| 9464 |
* "permit.squareBracesInHostname" |
| 9465 |
Permits to use "hostnames" in the form of "[127.0.0.1]"; also seen in |
| 9466 |
Aruba Networks equipment, but we strongly assume this can also happen |
| 9467 |
in other cases, especially with IPv6. |
| 9468 |
- supplementary groups are now set when dropping privileges |
| 9469 |
closes https://github.com/rsyslog/rsyslog/issues/296 |
| 9470 |
Thanks to Zach Lisinski for the patch. |
| 9471 |
- imfile: added brace glob expansion to wildcard |
| 9472 |
Thanks to Zach Lisinski for the patch. |
| 9473 |
- zmq: add the ability for zeromq input and outputs to advertise their |
| 9474 |
presence on UDP via the zbeacon API. |
| 9475 |
Thanks to Brian Knox for the contribution. |
| 9476 |
- added omhttpfs: contributed module for writing to HDFS via HTTP |
| 9477 |
Thanks to sskaje for the contribution. |
| 9478 |
- Configure option "--disable-debug-symbols" added which is disabled per |
| 9479 |
default. If you set the new option, configure won't set the appropriate |
| 9480 |
compiler flag to generate debug symbols anymore. |
| 9481 |
- When building from git source we now require rst2man and yacc (or a |
| 9482 |
replacement like bison). |
| 9483 |
That isn't any new requirement, we only added missing configure checks. |
| 9484 |
- Configure option "--enable-generate-man-pages" is now disabled for non git |
| 9485 |
source builds per default but enforced when building from git source. |
| 9486 |
- mmpstrucdata: some code cleanup |
| 9487 |
removed lots of early development debug outputs |
| 9488 |
- bugfix imuxsock: fix a memory leak that happened with large messages |
| 9489 |
... when annotation was enabled. |
| 9490 |
Thanks to github user c6226 for the patch |
| 9491 |
- bugfix omhttpfs: memory leak |
| 9492 |
Thanks to github user c6226 for the patch |
| 9493 |
- bugfix imuxsock: fix a crash when setting a hostname |
| 9494 |
Setting a hostname via the legacy directive would lead to a crash |
| 9495 |
during shutdown caused by a double-free. |
| 9496 |
Thanks to Tomas Heinrich for the patch. |
| 9497 |
- bugfix: memory leak in mmpstrucdata |
| 9498 |
Thanks to Grégoire Seux for reporting this issue. |
| 9499 |
closes https://github.com/rsyslog/rsyslog/issues/310 |
| 9500 |
- bugfix (minor): default action name: assigned number was one off |
| 9501 |
see also https://github.com/rsyslog/rsyslog/pull/340 |
| 9502 |
Thanks to Tomas Heinrich for the patch. |
| 9503 |
- bugfix: memory leak in imfile |
| 9504 |
A small leak happened each time a new file was monitored based on |
| 9505 |
a wildcard. Depending on the rate of file creation, this could result |
| 9506 |
in a serious memory leak. |
| 9507 |
------------------------------------------------------------------------------ |
| 9508 |
Version 8.9.0 [v8-stable] 2015-04-07 |
| 9509 |
- omprog: add option "hup.forward" to forwards HUP to external plugins |
| 9510 |
This was suggested by David Lang so that external plugins (and other |
| 9511 |
programs) can also do HUP-specific processing. The default is not |
| 9512 |
to forward HUP, so no change of behavior by default. |
| 9513 |
- imuxsock: added capability to use regular parser chain |
| 9514 |
Previously, this was a fixed format, that was known to be spoken on |
| 9515 |
the system log socket. This also adds new parameters: |
| 9516 |
- sysSock.useSpecialParser module parameter |
| 9517 |
- sysSock.parseHostname module parameter |
| 9518 |
- useSpecialParser input parameter |
| 9519 |
- parseHostname input parameter |
| 9520 |
- 0mq: improvements in input and output modules |
| 9521 |
See module READMEs, part is to be considered experimental. |
| 9522 |
Thanks to Brian Knox for the contribution. |
| 9523 |
- imtcp: add support for ip based bind for imtcp -> param "address" |
| 9524 |
Thanks to github user crackytsi for the patch. |
| 9525 |
- bugfix: MsgDeserialize out of sync with MsgSerialize for StrucData |
| 9526 |
This lead to failure of disk queue processing when structured data was |
| 9527 |
present. Thanks to github user adrush for the fix. |
| 9528 |
- bugfix imfile: partial data loss, especially in readMode != 0 |
| 9529 |
closes https://github.com/rsyslog/rsyslog/issues/144 |
| 9530 |
- bugfix: potential large memory consumption with failed actions |
| 9531 |
see also https://github.com/rsyslog/rsyslog/issues/253 |
| 9532 |
- bugfix: omudpspoof: invalid default send template in RainerScript format |
| 9533 |
The file format template was used, which obviously does not work for |
| 9534 |
forwarding. Thanks to Christopher Racky for alerting us. |
| 9535 |
closes https://github.com/rsyslog/rsyslog/issues/268 |
| 9536 |
- bugfix: size-based legacy config statements did not work properly |
| 9537 |
on some platforms, they were incorrectly handled, resulting in all |
| 9538 |
sorts of "interesting" effects (up to segfault on startup) |
| 9539 |
- build system: added option --without-valgrind-testbench |
| 9540 |
... which provides the capability to either enforce or turn off |
| 9541 |
valgrind use inside the testbench. Thanks to whissi for the patch. |
| 9542 |
- rsyslogd: fix misleading typos in error messages |
| 9543 |
Thanks to Ansgar Püster for the fixes. |
| 9544 |
------------------------------------------------------------------------------ |
| 9545 |
Version 8.8.0 [v8-stable] 2015-02-24 |
| 9546 |
- omkafka: add support for dynamic topics and auto partitioning |
| 9547 |
Thanks to Tait Clarridge for the patches. |
| 9548 |
- imtcp/imptcp: support for broken Cisco ASA TCP syslog framing |
| 9549 |
- omfwd: more detailed error messages in case of UDP send error |
| 9550 |
- TLS syslog: enable capability to turn on GnuTLS debug logging |
| 9551 |
This provides better diagnostics in hard-to-diagnose cases, |
| 9552 |
especially when GnuTLS is extra-picky about certificates. |
| 9553 |
- bugfix: $AbortOnUncleanConfig did not work |
| 9554 |
- improve rsyslogd -v output and error message with meta information |
| 9555 |
version number is now contained in error message and build platform in |
| 9556 |
version output. This helps to gets rid of the usual "which version" |
| 9557 |
question on mailing list, support forums, etc... |
| 9558 |
- bugfix imtcp: octet-counted framing cannot be turned off |
| 9559 |
- bugfix: build problems on Illuminos |
| 9560 |
Thanks to Andrew Stormont for the patch |
| 9561 |
- bugfix: invalid data size for iMaxLine global property |
| 9562 |
It was defined as int, but inside the config system it was declared as |
| 9563 |
size type, which uses int64_t. With legacy config statements, this could |
| 9564 |
lead to misaddressing, which usually meant the another config variable was |
| 9565 |
overwritten (depending on memory layout). |
| 9566 |
closes https://github.com/rsyslog/rsyslog/issues/205 |
| 9567 |
- bugfix: negative values for maxMessageSize global parameter were permitted |
| 9568 |
------------------------------------------------------------------------------ |
| 9569 |
Version 8.7.0 [v8-stable] 2015-01-13 |
| 9570 |
- add message metadata "system" to msg object |
| 9571 |
this permits to store metadata alongside the message |
| 9572 |
- imfile: add support for "filename" metadata |
| 9573 |
this is useful in cases where wildcards are used |
| 9574 |
- imptcp: make stats counter names consistent with what imudp, imtcp uses |
| 9575 |
- added new module "omkafka" to support writing to Apache Kafka |
| 9576 |
- omfwd: add new "udp.senddelay" parameter |
| 9577 |
- mmnormalize enhancements |
| 9578 |
Thanks to Janmejay Singh for the patch. |
| 9579 |
- RainerScript "foreach" iterator and array reading support |
| 9580 |
Thanks to Janmejay Singh for the patch. |
| 9581 |
- now requires liblognorm >= 1.0.2 |
| 9582 |
- add support for systemd >= 209 library names |
| 9583 |
- BSD "ntp" facility (value 12) is now also supported in filter |
| 9584 |
Thanks to Douglas K. Rand of Iteris, Inc. for the patch. |
| 9585 |
Note: this patch was released under ASL 2.0 (see email-conversation). |
| 9586 |
- bugfix: global(localHostName="xxx") was not respected in all modules |
| 9587 |
- bugfix: emit correct error message on config-file-not-found |
| 9588 |
closes https://github.com/rsyslog/rsyslog/issues/173 |
| 9589 |
- bugfix: impstats emitted invalid JSON format (if JSON was selected) |
| 9590 |
- bugfix: (small) memory leak in omfile's outchannel code |
| 9591 |
Thanks to Koral Ilgun for reporting this issue. |
| 9592 |
- bugfix: imuxsock did not deactivate some code not supported by platform |
| 9593 |
Among potential other problems, this caused build failure under Solaris. |
| 9594 |
Note that this build problem just made a broader problem appear that so |
| 9595 |
far always existed but was not visible. |
| 9596 |
closes https://github.com/rsyslog/rsyslog/issues/185 |
| 9597 |
------------------------------------------------------------------------------ |
| 9598 |
Version 8.6.0 [v8-stable] 2014-12-02 |
| 9599 |
NOTE: This version also incorporates all changes and enhancements made for |
| 9600 |
v8.5.0, but in a stable release. For details see immediately below. |
| 9601 |
- configuration-setting rsyslogd command line options deprecated |
| 9602 |
For most of them, there are now proper configuration objects. Some few |
| 9603 |
will be completely dropped if nobody insists on them. Additional info at |
| 9604 |
http://blog.gerhards.net/2014/11/phasing-out-legacy-command-line-options.html |
| 9605 |
- new and enhanced plugins for 0mq. These are currently experimental. |
| 9606 |
Thanks to Brian Knox who contributed the modules and is their author. |
| 9607 |
- empty rulesets have been permitted. They no longer raise a syntax error. |
| 9608 |
- add parameter -N3 to enable config check of partial config file |
| 9609 |
Use for config include files. Disables checking if any action exists at |
| 9610 |
all. |
| 9611 |
- rsyslogd -e option has finally been removed |
| 9612 |
It is deprecated since many years. |
| 9613 |
- testbench improvements |
| 9614 |
Testbench is now more robust and has additional tests. |
| 9615 |
- testbench is now by default disabled |
| 9616 |
To enable it, use --enable-testbench. This was done as the testbench now |
| 9617 |
does better checking if required modules are present and this in turn |
| 9618 |
would lead to configure error messages where non previously were if we |
| 9619 |
would leave --enable-testbench on by default. Thus we have turned it off. |
| 9620 |
This should not be an issue for those few testbench users. |
| 9621 |
- add new RainerScript functions warp() and replace() |
| 9622 |
Thanks to Singh Janmejay for the patch. |
| 9623 |
- mmnormalize can now also work on a variable |
| 9624 |
Thanks to Singh Janmejay for the patch. |
| 9625 |
- new property date options for day ordinal and week number |
| 9626 |
Thanks to github user arrjay for the patch |
| 9627 |
- remove --enable-zlib configure option, we always require it |
| 9628 |
It's hard to envision a system without zlib, so we turn this off |
| 9629 |
closes https://github.com/rsyslog/rsyslog/issues/76 |
| 9630 |
- slight source-tree restructuring: contributed modules are now in their |
| 9631 |
own ./contrib directory. The idea is to make it clearer to the end user |
| 9632 |
which plugins are supported by the rsyslog project (those in ./plugins). |
| 9633 |
- bugfix: imudp makes rsyslog hang on shutdown when more than 1 thread used |
| 9634 |
closes https://github.com/rsyslog/rsyslog/issues/126 |
| 9635 |
- bugfix: not all files closed on auto-backgrounding startup |
| 9636 |
This could happen when not running under systemd. Some low-numbered |
| 9637 |
fds were not closed in that case. |
| 9638 |
- bugfix: typo in queue configuration parameter |
| 9639 |
made parameter unusable |
| 9640 |
Thanks to Bojan Smojver for the patch. |
| 9641 |
- bugfix: uninitialized buffer off-by-one error in hostname generation |
| 9642 |
The DNS cache used uninitialized memory, which could lead to |
| 9643 |
invalid hostname generation. |
| 9644 |
Thanks to Jarrod Sayers for alerting us and providing analysis and |
| 9645 |
patch recommendations. |
| 9646 |
- bugfix imuxsock: possible segfault when SysSock.Use="off" |
| 9647 |
Thanks to alexjfisher for reporting this issue. |
| 9648 |
closes https://github.com/rsyslog/rsyslog/issues/140 |
| 9649 |
- bugfix: RainerScript: invalid ruleset names were accepted |
| 9650 |
during ruleset definition, but could of course not be used when |
| 9651 |
e.g. calling a ruleset. |
| 9652 |
IMPORTANT: this may cause existing configurations to error out on start, |
| 9653 |
as they invalid names could also be used e.g. when assigning rulesets. |
| 9654 |
- bugfix: some module entry points were not called for all modules |
| 9655 |
callbacks like endCnfLoad() were primarily being called for input |
| 9656 |
modules. This has been corrected. Note that this bugfix has some |
| 9657 |
regression potential. |
| 9658 |
- bugfix omlibdbi: connection was taken down in wrong thread |
| 9659 |
this could have consequences depending on the driver being used. In |
| 9660 |
general, it looks more like a cosmetic issue. For example, with |
| 9661 |
MySQL it lead to a small memory but also an annoying message about |
| 9662 |
a thread not properly torn down. |
| 9663 |
- imttcp was removed because it was an incomplete experimental module |
| 9664 |
- pmrfc3164sd because it was a custom module nobody used |
| 9665 |
We used to keep this as a sample inside the tree, but whoever wants |
| 9666 |
to look at it can check in older versions inside git. |
| 9667 |
- omoracle was removed because it was orphaned and did not build/work |
| 9668 |
for quite some years and nobody was interested in fixing it |
| 9669 |
--------------------------------------------------------------------------- |
| 9670 |
Version 8.5.0 [v8-stable] 2014-10-24 |
| 9671 |
- imfile greatly refactored and support for wildcards added |
| 9672 |
- PRI-handling code refactored for more clarity and robustness |
| 9673 |
- ommail: add support for RainerScript config system [action() object] |
| 9674 |
This finally adds support for the new config style. Also, we now permit |
| 9675 |
to set a constant subject text without the need to create a template for |
| 9676 |
it. |
| 9677 |
- refactored the auto-backgrounding method |
| 9678 |
The code is now more robust and also offers possibilities for enhanced |
| 9679 |
error reporting in the future. This is also assumed to fix some races |
| 9680 |
where a system startup script hang due to "hanging" rsyslogd. |
| 9681 |
- make gntls tcp syslog driver emit more error messages |
| 9682 |
Messages previously emitted only to the debug log are now emitted as |
| 9683 |
syslog error messages. It has shown that they contain information |
| 9684 |
helpful to the user for troubleshooting config issues. Note that this |
| 9685 |
change is a bit experimental, as we are not sure if there are situations |
| 9686 |
where large amounts of error messages may be emitted. |
| 9687 |
- bugfix: imfile did not complain if configured file did not exist |
| 9688 |
closes https://github.com/rsyslog/rsyslog/issues/137 |
| 9689 |
- bugfix: build failure on systems which don't have json_tokener_errors |
| 9690 |
Older versions of json-c need to use a different API (which don't exists |
| 9691 |
on newer versions, unfortunately...) |
| 9692 |
Thanks to Thomas D. for reporting this problem. |
| 9693 |
- imgssapi: log remote peer address in some error messages |
| 9694 |
Thanks to Bodik for the patch. |
| 9695 |
--------------------------------------------------------------------------- |
| 9696 |
Version 8.4.3 [v8-stable] 2014-10-?? |
| 9697 |
- ommail: minor bugfixes & improvements |
| 9698 |
* timestamps were 1 hour out when using daylight saving times when |
| 9699 |
viewing emails in most email clients due to incorrect date format |
| 9700 |
* X-Mailer header had a typo in it |
| 9701 |
* To: header was duplicated once per recipient (this is permitted, |
| 9702 |
but an address list is a better choice nowadays) |
| 9703 |
Thanks to github user cacheus for the patches. |
| 9704 |
- bugfix imkmsg: infinite loop on OpenVZ VMs |
| 9705 |
Thanks to github user PaulSD for the patch |
| 9706 |
closes https://github.com/rsyslog/rsyslog/pull/138 |
| 9707 |
- bugfix: typo in queue configuration parameter made parameter unusable |
| 9708 |
Thanks to Bojan Smojver for the patch. |
| 9709 |
- bugfix: uninitialized buffer off-by-one error in hostname generation |
| 9710 |
The DNS cache used uninitialized memory, which could lead to |
| 9711 |
invalid hostname generation. |
| 9712 |
Thanks to Jarrod Sayers for alerting us and providing analysis and |
| 9713 |
patch recommendations. |
| 9714 |
- bugfix imfile: segfault on startup in "inotify" mode |
| 9715 |
A segfault happened when more than one file was monitored. |
| 9716 |
- bugfix imfile: could make rsyslog exit in inotify mode |
| 9717 |
- bugfix: rsgtutil sometimes crashed in verify mode if file did not exist |
| 9718 |
- bugfix imklog: pri was miscalculated |
| 9719 |
actually, the pri was totally off the real value for PRIs > 9 |
| 9720 |
- bugfix imfile:file processing in inotify mode was stalled sometimes |
| 9721 |
closes https://github.com/rsyslog/rsyslog/issues/134 |
| 9722 |
- bugfix: imjournal did not build properly |
| 9723 |
The build succeeded, but the module did not load due to a type in |
| 9724 |
a support function name, which kept unresolved during load. |
| 9725 |
- bugfix: mmcount did no longer build |
| 9726 |
note that this is untested -- users of this module should file a bug if |
| 9727 |
the new (trivial) code is broken [if there are any users, thus I did not |
| 9728 |
invest time in testing...] |
| 9729 |
closes https://github.com/rsyslog/rsyslog/issues/129 |
| 9730 |
- bugfix imuxsock: possible segfault when SysSock.Use="off" |
| 9731 |
Thanks to alexjfisher for reporting this issue. |
| 9732 |
closes https://github.com/rsyslog/rsyslog/issues/140 |
| 9733 |
--------------------------------------------------------------------------- |
| 9734 |
Version 8.4.2 [v8-stable] 2014-10-02 |
| 9735 |
- bugfix: the fix for CVE-2014-3634 did not handle all cases |
| 9736 |
This is corrected now. |
| 9737 |
see also: CVE-2014-3683 |
| 9738 |
- fixed a build problem on some platforms |
| 9739 |
Thanks to Olaf for the patch |
| 9740 |
- behavior change: "msg" of messages with invalid PRI set to "rawmsg" |
| 9741 |
When the PRI is invalid, the rest of the header cannot be valid. So |
| 9742 |
we move all of it to MSG and do not try to parse it out. Note that |
| 9743 |
this is not directly related to the security issue but rather done |
| 9744 |
because it makes most sense. |
| 9745 |
--------------------------------------------------------------------------- |
| 9746 |
Version 8.4.1 [v8-stable] 2014-09-30 |
| 9747 |
- imudp: add for bracketing mode, which makes parsing stats easier |
| 9748 |
- permit at-sign in variable names |
| 9749 |
closes: https://github.com/rsyslog/rsyslog/issues/110 |
| 9750 |
- bugfix: fix syntax error in anon_cc_numbers.py script |
| 9751 |
Thanks to github user anthcourtney for the patch. |
| 9752 |
closes: https://github.com/rsyslog/rsyslog/issues/109 |
| 9753 |
- bugfix: ompgsql: don't loose uncommitted data on retry |
| 9754 |
Thanks to Jared Johnson and Axel Rau for the patch. |
| 9755 |
- bugfix: imfile: if a state file for a different file name was set, |
| 9756 |
that different file (name) was monitored instead of the configured |
| 9757 |
one. Now, the state file is deleted and the correct file monitored. |
| 9758 |
closes: https://github.com/rsyslog/rsyslog/issues/103 |
| 9759 |
- bugfix: omudpspoof: source port was invalid |
| 9760 |
Thanks to Pavel Levshin for the patch |
| 9761 |
- bugfix: build failure on systems which don't have json_tokener_errors |
| 9762 |
Older versions of json-c need to use a different API (which don't exists |
| 9763 |
on newer versions, unfortunately...) |
| 9764 |
Thanks to Thomas D. for reporting this problem. |
| 9765 |
- bugfix: omelasticsearch does not work with broken/changed ES 1.0+ API |
| 9766 |
closes: https://github.com/rsyslog/rsyslog/issues/104 |
| 9767 |
- bugfix: mmanon did not properly anonymize IP addresses starting with '9' |
| 9768 |
Thanks to defa-at-so36.net for reporting this problem. |
| 9769 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=529 |
| 9770 |
- bugfix: build problems on SuSe Linux |
| 9771 |
Thanks Andreas Stieger for the patch |
| 9772 |
- bugfix: omelasticsearch error file did not work correctly on ES 1.0+ |
| 9773 |
due to a breaking change in the ElasticSearch API. |
| 9774 |
see also: https://github.com/rsyslog/rsyslog/issues/104 |
| 9775 |
- bugfix: potential abort when a message with PRI > 191 was processed |
| 9776 |
if the "pri-text" property was used in active templates, this could |
| 9777 |
be abused to a remote denial of service from permitted senders |
| 9778 |
see also: CVE-2014-3634 |
| 9779 |
--------------------------------------------------------------------------- |
| 9780 |
Version 8.4.0 [v8-stable] 2014-08-18 |
| 9781 |
- this is the new stable branch, which incorporates all enhancements of |
| 9782 |
rsyslog 8.3. |
| 9783 |
--------------------------------------------------------------------------- |
| 9784 |
Version 8.3.5 [v8-devel] 2014-08-05 |
| 9785 |
- mmjsonparse: support selectable cookie and target containers |
| 9786 |
This permits to put different meanings into a json formatted syslog |
| 9787 |
message, e.g. the "traditional" cee or cim data. |
| 9788 |
- bugfix: mmjsonparse did not build with json-c < 0.10 |
| 9789 |
This was a regression introduced some time in the past in order to |
| 9790 |
support API changes in json-c. Now we check for the version and use |
| 9791 |
proper code. |
| 9792 |
- omprog: emit error message via syslog() if loading binary fails |
| 9793 |
This happens after forking, so omprog has no longer access to rsyslog's |
| 9794 |
regular error reporting functions. Previously, this meant any error |
| 9795 |
message was lost. Now it is emitted via regular syslog (which may end up |
| 9796 |
in a different instance, if multiple instances run...) |
| 9797 |
- couple of patches imported from v7-stable (7.6.4) |
| 9798 |
--------------------------------------------------------------------------- |
| 9799 |
Version 8.3.4 [v8-devel] 2014-07-11 |
| 9800 |
- new pmciscoios parser supporting various Cisco IOS formats |
| 9801 |
- RFC3164 timestamp parser now accepts timezones and subsecond resolution |
| 9802 |
... at least for some common formats and where we could do so without |
| 9803 |
running risk of breaking proper formats (or introducing regressions) |
| 9804 |
- new parser config object -- permits to define custom parser definitions |
| 9805 |
- new tzinfo config object -- permits to define time zone offsets |
| 9806 |
This is a utility object that currently is being used by some parsers. |
| 9807 |
- bugfix: mishandling of input modules not supporting new input instances |
| 9808 |
If they did not support this, accidentally the output module part of the |
| 9809 |
module union was written, leading to unpredictable results. Note: all |
| 9810 |
core modules do support this interface, but some contributed or very |
| 9811 |
old ones do not. |
| 9812 |
- bugfix: double-free when ruleset() parser parameters were used |
| 9813 |
While unlikely, this could cause stability issues even after the |
| 9814 |
config phase. |
| 9815 |
--------------------------------------------------------------------------- |
| 9816 |
Version 8.3.3 [v8-devel] 2014-06-26 |
| 9817 |
- unify input object naming |
| 9818 |
imudp now supports "name" parameter, as other inputs do. "inputname" has |
| 9819 |
been deprecated, but can still be used. Same applies to "appendport" |
| 9820 |
subparameter". Thanks to "Nick Syslog" for the suggestion. |
| 9821 |
- made the missing (contributed) modules build under v8 [import from 8.2.2] |
| 9822 |
Modules: |
| 9823 |
* mmrfc5424addhmac |
| 9824 |
* omrabbitmq |
| 9825 |
* omgssapi |
| 9826 |
* omhdfs |
| 9827 |
* omzmq3 |
| 9828 |
- added a cleanup process (janitor); permits to close omfile files after a |
| 9829 |
timeout |
| 9830 |
- make omgssapi build under v8.3 [import vom v8.2] |
| 9831 |
note that we could do this to the stable, because there is NO regression |
| 9832 |
chance at all: only omgssapi was changed, and this module did NOT work |
| 9833 |
previously. |
| 9834 |
- removed obsolete --disable-fsstnd configure option |
| 9835 |
Thanks to Thomas D. for alerting us. |
| 9836 |
Closes: https://github.com/rsyslog/rsyslog/issues/72 |
| 9837 |
--------------------------------------------------------------------------- |
| 9838 |
Version 8.3.2 [v8-devel] 2014-05-02 |
| 9839 |
- new template options for date extraction: |
| 9840 |
- year |
| 9841 |
- month |
| 9842 |
- day |
| 9843 |
- wday |
| 9844 |
- hour |
| 9845 |
- minute |
| 9846 |
- second |
| 9847 |
- tzoffshour |
| 9848 |
- tzoffsmin |
| 9849 |
- tzoffsdirection |
| 9850 |
- wdayname |
| 9851 |
For string templates, these are property options and they are |
| 9852 |
prefixed with "date-" (e.g. "date-year", "date-month", ...) |
| 9853 |
see also: https://github.com/rsyslog/rsyslog/issues/65 |
| 9854 |
- bugfix: mmexternal remove framing char before processing JSON reply |
| 9855 |
This did not have any real bad effects, but caused unnecessary |
| 9856 |
processing, as empty replies were not properly detected. Otherwise, |
| 9857 |
the bug was not noticeable from the user's PoV. |
| 9858 |
- bugfix: mmexternal segfault due to invalid free in non-json input mode |
| 9859 |
closes: https://github.com/rsyslog/rsyslog/issues/70 |
| 9860 |
- bugfix: mmexternal segfault when external plugin sent invalid reply |
| 9861 |
... or no reply at all. This happened if the reply was improper JSON. |
| 9862 |
Now, we emit an error message in those cases. |
| 9863 |
see also: https://github.com/rsyslog/rsyslog/issues/69 |
| 9864 |
- bugfix: mmexternal did potentially pass incomplete data to restarted |
| 9865 |
external plugin |
| 9866 |
This could happen if EPIPE was returned "too late", in which case the |
| 9867 |
beginning of the data could be lost. |
| 9868 |
- bugfix: mmexternal did not properly process messages over 4KiB |
| 9869 |
The data to be passed to the external plugin was truncated after 4KiB. |
| 9870 |
see: https://github.com/rsyslog/rsyslog/issues/64 |
| 9871 |
- imrelp: added support for per-listener ruleset and inputname |
| 9872 |
see: https://github.com/rsyslog/rsyslog/pull/63 |
| 9873 |
Thanks to bobthesecurityguy github user for the patch |
| 9874 |
--------------------------------------------------------------------------- |
| 9875 |
Version 8.3.1 [v8-devel] 2014-04-24 |
| 9876 |
- external message modification interface now support modifying message PRI |
| 9877 |
- "jsonmesg" property will include uuid only if one was previously generated |
| 9878 |
This is primarily a performance optimization. Whenever the message uuid |
| 9879 |
is gotten, it is generated when not already present. As we used the |
| 9880 |
regular setter, this means that always the uuid was generated, which is |
| 9881 |
quite time-consuming. This has now been changed so that it only is |
| 9882 |
generated if it already exists. That also matches more closely the |
| 9883 |
semantics, as "jsonmesg" should not make modifications to the message. |
| 9884 |
Note that the same applies to "fulljson" passing mode for external |
| 9885 |
plugins. |
| 9886 |
- added plugin to rewrite message facility and/or severity |
| 9887 |
Name: fac-sever-rewrite.py |
| 9888 |
- permits to build against json-c 0.12 |
| 9889 |
Unfortunately, json-c had an ABI breakage, so this is necessary. Note |
| 9890 |
that versions prior to 0.12 had security issues (CVE-2013-6370, |
| 9891 |
CVE-2013-6371) and so it is desirable to link against the new version. |
| 9892 |
Thanks to Thomas D. for the patch. Note that at least some distros |
| 9893 |
have fixed the security issue in older versions of json-c, so this |
| 9894 |
seems to apply mostly when building from sources. |
| 9895 |
- bugfix: using UUID property could cause segfault |
| 9896 |
- bugfix/mmexternal: memory leak |
| 9897 |
- bugfix: memory leak when using "jsonmesg" property |
| 9898 |
- bugfix: mmutf8fix did not detect two invalid sequences |
| 9899 |
Thanks to Axel Rau for the patch. |
| 9900 |
- bugfix: build problems with lexer.l on some platforms |
| 9901 |
For some reason, the strdup() prototype and others are missing. I admit |
| 9902 |
that I don't know why, as this happens only in 8.3.0+ and there is no |
| 9903 |
indication of changes to the affected files. In any case, we need to |
| 9904 |
fix this, and the current solution works at least as an interim one. |
| 9905 |
--------------------------------------------------------------------------- |
| 9906 |
Version 8.3.0 [v8-devel] 2014-04-10 |
| 9907 |
- new plugin for anonymizing credit card numbers |
| 9908 |
Thanks to Peter Slavov for providing the code. |
| 9909 |
- external message modification modules are now supported |
| 9910 |
They are bound via the new native module "mmexternal". Also, a sample |
| 9911 |
skeleton for an external python message modification module has been |
| 9912 |
added. |
| 9913 |
- new $jsonmesg property with JSON representation of whole message object |
| 9914 |
closes: https://github.com/rsyslog/rsyslog/issues/19 |
| 9915 |
- improved error message for invalid field extraction in string template |
| 9916 |
see also: |
| 9917 |
http://kb.monitorware.com/problem-with-field-based-extraction-t12299.html |
| 9918 |
- fix build problems on Solaris |
| 9919 |
- NOTE: a json-c API that we begun to use requires the compiler to be in |
| 9920 |
c99 mode. By default, we select it automatically. If you modify this and |
| 9921 |
use gcc, be sure to include "-std=c99" in your compiler flags. This seems |
| 9922 |
to be necessary only for older versions of gcc. |
| 9923 |
--------------------------------------------------------------------------- |
| 9924 |
Version 8.2.3 [v8-stable] 2014-??-?? |
| 9925 |
- bugfix: ommysql: handle/mem leak upon termination of worker thread |
| 9926 |
This could become bad if the (instance) worker threads are often |
| 9927 |
started and terminated. But it takes quite a while to show effect. |
| 9928 |
--------------------------------------------------------------------------- |
| 9929 |
Version 8.2.2 [v8-stable] 2014-06-02 |
| 9930 |
- made the missing (contributed) modules build under v8 |
| 9931 |
Note that we could do this to the stable, because there is NO regression |
| 9932 |
chance at all: only the modules themselves were changed, and they did |
| 9933 |
NOT work at all previously. Please also note that most of these modules |
| 9934 |
did not yet receive real testing. As we don't have the necessary |
| 9935 |
environments (easily enough available), we depend on users submitting |
| 9936 |
error reports and helping to iron out any issues that may arise. |
| 9937 |
Modules: |
| 9938 |
* mmrfc5424addhmac |
| 9939 |
* omrabbitmq |
| 9940 |
* omgssapi |
| 9941 |
* omhdfs |
| 9942 |
* omzmq3 |
| 9943 |
--------------------------------------------------------------------------- |
| 9944 |
Version 8.2.1 [v8-stable] 2014-04-17 |
| 9945 |
- permits to build against json-c 0.12 |
| 9946 |
Unfortunately, json-c had an ABI breakage, so this is necessary. Note |
| 9947 |
that versions prior to 0.12 had security issues (CVE-2013-6370, |
| 9948 |
CVE-2013-6371) and so it is desirable to link against the new version. |
| 9949 |
Thanks to Thomas D. for the patch. Note that at least some distros |
| 9950 |
have fixed the security issue in older versions of json-c, so this |
| 9951 |
seems to apply mostly when building from sources. |
| 9952 |
- doc is no longer shipped as part of the rsyslog tarball |
| 9953 |
Instead, the rsyslog-doc project creates its own tarball. This is the |
| 9954 |
result of a mailing list discussion after the 8.2.0 release with a |
| 9955 |
tarball-in-tarball approach, which was disliked by almost all distro |
| 9956 |
maintainers. This move also has the advantage of de-coupling the |
| 9957 |
release cycles of both projects a bit (which turned out to be a bit |
| 9958 |
problematic in practice). |
| 9959 |
- bugfix: mmutf8fix did not detect two invalid sequences |
| 9960 |
Thanks to Axel Rau for the patch. |
| 9961 |
--------------------------------------------------------------------------- |
| 9962 |
Version 8.2.0 [v8-stable] 2014-04-02 |
| 9963 |
This starts a new stable branch based on 8.1.6 plus the following changes: |
| 9964 |
- we now use doc from the rsyslog-doc project |
| 9965 |
As such, the ./doc subtree has been removed. Instead, a cache of the |
| 9966 |
rsyslog-doc project's files has been included in ./rsyslog-doc.tar.gz. |
| 9967 |
Note that the exact distribution mode for the doc is still under |
| 9968 |
discussion and may change in future releases. |
| 9969 |
This was agreed upon on the rsyslog mailing list. For doc issues |
| 9970 |
and corrections, be sure to work with the rsyslog-doc project. It is |
| 9971 |
currently hosted at https://github.com/rsyslog/rsyslog-doc |
| 9972 |
- add support for specifying the liblogging-stdlog channel spec |
| 9973 |
new global parameter "stdlog.channelspec" |
| 9974 |
- add "defaultnetstreamdrivercertfile" global variable to set a default |
| 9975 |
for the certfile. |
| 9976 |
Thanks to Radu Gheorghe for the patch. |
| 9977 |
- omelasticsearch: add new "usehttps" parameter for secured connections |
| 9978 |
Thanks to Radu Gheorghe for the patch. |
| 9979 |
- "action resumed" message now also specifies module type |
| 9980 |
which makes troubleshooting a bit easier. Note that we cannot output all |
| 9981 |
the config details (like destination etc) as this would require much more |
| 9982 |
elaborate code changes, which we at least do not like to do in the |
| 9983 |
stable version. |
| 9984 |
- add capability to override GnuTLS path in build process |
| 9985 |
Thanks to Clayton Shotwell for the patch |
| 9986 |
- better and more consistent action naming, action queues now always |
| 9987 |
contain the word "queue" after the action name |
| 9988 |
- bugfix: ompipe did resume itself even when it was still in error |
| 9989 |
See: https://github.com/rsyslog/rsyslog/issues/35 |
| 9990 |
Thanks to github user schplat for reporting |
| 9991 |
- bugfix: ompipe used invalid default template |
| 9992 |
This is a regression from an old change (didn't track it down precisely, |
| 9993 |
but over a year ago). It used the Forwarding template instead of |
| 9994 |
the file template (so we have a full syslog header). This fix corrects |
| 9995 |
it back to previous behavior, but new scripts that used the wrong |
| 9996 |
format may now need to have the RSYSLOG_ForwardingFormat template |
| 9997 |
explicitly be applied. |
| 9998 |
closes: https://github.com/rsyslog/rsyslog/issues/50 |
| 9999 |
--------------------------------------------------------------------------- |
| 10000 |
Version 8.1.6 [release candidate] 2014-02-20 |
| 10001 |
- omfile: permit to set global defaults for action parameters |
| 10002 |
Thanks to Nathan Brown for the patch. |
| 10003 |
See also: https://github.com/rsyslog/rsyslog/pull/23 |
| 10004 |
- add capability to escape control characters in the C way of doing it |
| 10005 |
adds new global parameter "parser.escapeControlCharactersCStyle" |
| 10006 |
Thanks to Nathan Brown for the patch. |
| 10007 |
See also: https://github.com/rsyslog/rsyslog/pull/13 |
| 10008 |
- parser global parameters can now be set using RainerScript global() |
| 10009 |
Thanks to Nathan Brown for the patch. |
| 10010 |
See also: https://github.com/rsyslog/rsyslog/pull/23 |
| 10011 |
- omprog: guard program-to-be-executed against CTL-C |
| 10012 |
This can frequently happen in debug mode, where rsyslog is terminated |
| 10013 |
by ctl-c. In any case, SIGINT is not meant to control the child process, |
| 10014 |
so it should be blocked. |
| 10015 |
- omprog bugfix: parameter "forceSingleInstance" is NOT mandatory |
| 10016 |
- add new jsonr property replacer option |
| 10017 |
Thanks to Nathan Brown for the patch. |
| 10018 |
- added external plugin interface |
| 10019 |
- ommongodb: add authentication support (untested) |
| 10020 |
Thanks to JT for the patch. |
| 10021 |
See also: https://github.com/rsyslog/rsyslog/pull/17 |
| 10022 |
- bugfix: json templates are improperly created |
| 10023 |
Strings miss the terminating NUL character, which obviously can lead |
| 10024 |
to all sorts of problems. |
| 10025 |
See also: https://github.com/rsyslog/rsyslog/issues/27 |
| 10026 |
Thanks to Alain for the analysis and the patch. |
| 10027 |
- ompgsql bugfix: improper handling of auto-backgrounding mode |
| 10028 |
If rsyslog was set to auto-background itself (default code behavior, but |
| 10029 |
many distros now turn it off for good reason), ompgsql could not |
| 10030 |
properly connect. This could even lead to a segfault. The core reason |
| 10031 |
was that a PG session handle was kept open over a fork, something that |
| 10032 |
is explicitly forbidden in the PG API. |
| 10033 |
Thanks to Alain for the analysis and the patch. |
| 10034 |
- bugfix: ommongodb's template parameter was mandatory but should have |
| 10035 |
been optional |
| 10036 |
Thanks to Alain for the analysis and the patch. |
| 10037 |
- bugfix: end of batch processing was not 100% correct. Could lead to |
| 10038 |
outputs not properly writing messages. At least omelasticsearch did not |
| 10039 |
write anything to the database due to this bug. |
| 10040 |
See: https://github.com/rsyslog/rsyslog/issues/10 |
| 10041 |
Thanks to Radu Gheorghe for reporting the issue. |
| 10042 |
--------------------------------------------------------------------------- |
| 10043 |
Version 8.1.5 [devel] 2014-01-24 |
| 10044 |
- omprog: ability to execute multiple program instances per action |
| 10045 |
It can now execute one program instance per worker thread. This is |
| 10046 |
generally a very good thing the have performance wise. Usually, this |
| 10047 |
should cause no problems with the invoked program. For that reason, |
| 10048 |
we have decided to make this the default mode of operation. If not |
| 10049 |
desired, it can be turned off via the 'forceSingleInstance="on"' |
| 10050 |
action parameter. |
| 10051 |
CHANGE OF BEHAVIOR: previous versions did always execute only one |
| 10052 |
instance per action, no matter how many workers were active. If |
| 10053 |
your program has special needs, you need to change your configuration. |
| 10054 |
- imfile now supports inotify (but must be explicitly turned on) |
| 10055 |
- imfile no longer has a limit on number of monitored files |
| 10056 |
- added ProcessInternalMessages global system parameter |
| 10057 |
This permits to inject rsyslog status messages into *another* main |
| 10058 |
syslogd or the journal. |
| 10059 |
- new dependency: liblogging-stdlog (for submitting to external logger) |
| 10060 |
- bugfix: imuxsock input parameters were not accepted |
| 10061 |
due to copy&paste error. Thanks to Andy Goldstein for the fix. |
| 10062 |
--------------------------------------------------------------------------- |
| 10063 |
Version 8.1.4 [devel] 2014-01-10 |
| 10064 |
- add exec_template() RainerScript function |
| 10065 |
- imrelp: support for TCP KEEPALIVE added |
| 10066 |
- bumped librelp dependency to 1.2.2 to support new KEEPALIVE feature |
| 10067 |
- Add directives for numerically specifying GIDs/UIDs |
| 10068 |
The already present directives (FileOwner, FileGroup, DirOwner, |
| 10069 |
DirGroup) translate names to numerical IDs, which depends on the user |
| 10070 |
information being available during rsyslog's startup. This can fail if |
| 10071 |
the information is obtained over a network or from a service such as |
| 10072 |
SSSD. The new directives provide a way to specify the numerical IDs |
| 10073 |
directly and bypass the lookup. |
| 10074 |
Thanks to Tomas Heinrich for the patch. |
| 10075 |
- bugfix: action commitTransaction() processing did not properly handle |
| 10076 |
suspended actions |
| 10077 |
- bugfix: omelasticsearch fail.es stats counter was improperly maintained |
| 10078 |
--------------------------------------------------------------------------- |
| 10079 |
Version 8.1.3 [devel] 2013-12-06 |
| 10080 |
|
| 10081 |
THIS VERSION CAN BE CONSIDERED A "NORMAL" DEVEL RELEASE. It's no longer |
| 10082 |
highly experimental. This assertion is based on real-world feedback. |
| 10083 |
|
| 10084 |
- changes to the strgen module interface |
| 10085 |
- new output module interface for transactional modules |
| 10086 |
- performance improvements |
| 10087 |
* reduced number of malloc/frees due to further changes to the |
| 10088 |
output module interface |
| 10089 |
* reduced number of malloc/frees during string template processing |
| 10090 |
We now re-use once allocated string template memory for as long |
| 10091 |
as the worker thread exists. This saves us from doing new memory |
| 10092 |
allocs (and their free counterpart) when the next message is |
| 10093 |
processed. The drawback is that the cache always is the size of |
| 10094 |
the so-far largest message processed. This is not considered a |
| 10095 |
problem, as in any case a single messages' memory footprint should |
| 10096 |
be far lower than that of a whole set of messages (especially on |
| 10097 |
busy servers). |
| 10098 |
* used variable qualifiers (const, __restrict__) to hopefully help |
| 10099 |
the compiler generate somewhat faster code |
| 10100 |
- failed action detection more precisely for a number of actions |
| 10101 |
If an action uses string parameter passing but is non-transactional |
| 10102 |
it can be executed immediately, giving a quicker indication of |
| 10103 |
action failure. |
| 10104 |
- bugfix: limiting queue disk space did not work properly |
| 10105 |
* queue.maxdiskspace actually initializes queue.maxfilesize |
| 10106 |
* total size of queue files was not checked against |
| 10107 |
queue.maxdiskspace for disk assisted queues. |
| 10108 |
Thanks to Karol Jurak for the patch. |
| 10109 |
--------------------------------------------------------------------------- |
| 10110 |
Version 8.1.2 [experimental] 2013-11-28 |
| 10111 |
- support for liblognorm1 added - results in performance improvements |
| 10112 |
Thanks to Pavel Levshin for his work in this regard. |
| 10113 |
- support for jemalloc added via --enable-jemalloc |
| 10114 |
Thanks to Pavel Levshin for suggesting jemalloc |
| 10115 |
Note that build system is experimental at this stage. |
| 10116 |
- queue defaults have changed |
| 10117 |
* high water mark is now dynamically 90% of queue size |
| 10118 |
* low water makr is now dynamically 70% of queue size |
| 10119 |
* queue.discardMark is now dynamically 98% of queue size |
| 10120 |
* queue.workerThreadMinimumMessage set to queue.size / num workers |
| 10121 |
For queues with very low queue.maxSize (< 100), "emergency" defaults |
| 10122 |
will be used. |
| 10123 |
- bugfix: disk queues created files in wrong working directory |
| 10124 |
if the $WorkDirectory was changed multiple times, all queues only |
| 10125 |
used the last value set. |
| 10126 |
- bugfix: legacy directive $ActionQueueWorkerThreads was not honored |
| 10127 |
- bugfix: mmrfc5424addhmac: "key" parameter was not properly processed |
| 10128 |
--------------------------------------------------------------------------- |
| 10129 |
Version 8.1.1 [experimental] 2013-11-19 |
| 10130 |
- bugfix: STOP/discard(~) was mostly NOT honored |
| 10131 |
This lead to execution of config code that was not meant to be executed. |
| 10132 |
- bugfix: memory leak on worker thread termination |
| 10133 |
- bugfix: potential segfault in omfile under heavy load |
| 10134 |
Thanks to Pavel Levshin for alerting us. |
| 10135 |
- bugfix: mmsequence: instance mode did not work |
| 10136 |
Thanks to Pavel Levshin for the patch |
| 10137 |
- bugfix: segfault on startup when certain script constructs are used |
| 10138 |
e.g. "if not $msg ..." |
| 10139 |
- omhiredis: now supports v8 output module interface and works again |
| 10140 |
Thanks to Pavel Levshin for the patch |
| 10141 |
- mmaudit: now supports v8 output module interface and work again |
| 10142 |
- bugfix: potential abort on startup in debug mode |
| 10143 |
This depends on template type being used. The root cause was a |
| 10144 |
non-necessary debug output, which were at the wrong spot (leftover from |
| 10145 |
initial testing). |
| 10146 |
Thanks to Pavel Levshin for alerting us and providing a patch |
| 10147 |
proposal. |
| 10148 |
--------------------------------------------------------------------------- |
| 10149 |
Version 8.1.0 [experimental] 2013-11-15 |
| 10150 |
- rewritten core engine for higher performance and new features |
| 10151 |
In detail: |
| 10152 |
* completely rewritten rule execution engine |
| 10153 |
* completely changed output module interface |
| 10154 |
* remodelled output module interface |
| 10155 |
* enabled important output modules to support full concurrent |
| 10156 |
operation |
| 10157 |
The core engine has been considerably changed and must be considered |
| 10158 |
experimental at this stage. Note that it does not yet include all |
| 10159 |
features planned for v8, but is close to this goal. In theory, the |
| 10160 |
engine should perform much better, especially on complex configurations |
| 10161 |
and busy servers. Most importantly, actions instances can now be called |
| 10162 |
concurrently from worker threads and many important output modules |
| 10163 |
support multiple concurrent action instances natively. |
| 10164 |
- module omruleset is no longer enabled by default. |
| 10165 |
Note that it has been deprecated in v7 and been replaced by the "call" |
| 10166 |
statement. Also, it can still be build without problems, the option must |
| 10167 |
just explicitly be given. |
| 10168 |
--------------------------------------------------------------------------- |
| 10169 |
Version 7.6.8 [v7.6-stable] 2014-10-?? |
| 10170 |
- bugfix: typo in queue configuration parameter made parameter unusable |
| 10171 |
Thanks to Bojan Smojver for the patch. |
| 10172 |
- bugfix imuxsock: possible segfault when SysSock.Use="off" |
| 10173 |
Thanks to alexjfisher for reporting this issue. |
| 10174 |
closes https://github.com/rsyslog/rsyslog/issues/140 |
| 10175 |
- bugfix: uninitialized buffer off-by-one error in hostname generation |
| 10176 |
The DNS cache used uninitialized memory, which could lead to |
| 10177 |
invalid hostname generation. |
| 10178 |
Thanks to Jarrod Sayers for alerting us and providing analysis and |
| 10179 |
patch recommendations. |
| 10180 |
- remove zpipe (a testing tool) from --enable-diagtools |
| 10181 |
This tool is no longer maintained and currently not used inside the |
| 10182 |
testbench. We keep it in the source tree for the time being in case that |
| 10183 |
it may be used in the future. |
| 10184 |
- bugfix: imjournal did not build properly |
| 10185 |
The build succeeded, but the module did not load due to a type in |
| 10186 |
a support function name, which kept unresolved during load. |
| 10187 |
- bugfix imklog: pri was miscalculated |
| 10188 |
actually, the pri was totally off the real value for PRIs > 9 |
| 10189 |
- bugfix rsgtutil: sometimes crashed in verify mode if file did not exist |
| 10190 |
- bugfix rsgtutil: some errors/problems at end of file were not reported |
| 10191 |
* The verification function in rsgtutil tool did not report deletion of |
| 10192 |
whole signed blocks of lines from the end of the log file. |
| 10193 |
* The verification function in rsgtutil tool did not report extra |
| 10194 |
(unsigned) lines at the end of the log file. |
| 10195 |
Thanks to Henri Lakk for the patch. |
| 10196 |
- bugfix: error: json_tokener_errors undeclared when overriding PKGCONFIG |
| 10197 |
If PKGCONFIG settings for json-c were overridden, presence of |
| 10198 |
json_tokener_errors was not properly detected. |
| 10199 |
closes: https://github.com/rsyslog/rsyslog/issues/143 |
| 10200 |
Thanks to Alex Fisher for alerting us and the patch. |
| 10201 |
--------------------------------------------------------------------------- |
| 10202 |
Version 7.6.7 [v7.6-stable] 2014-10-02 |
| 10203 |
- bugfix: the fix for CVE-2014-3634 did not handle all cases |
| 10204 |
This is corrected now. |
| 10205 |
see also: CVE-2014-3683 |
| 10206 |
- fixed a build problem on some platforms |
| 10207 |
Thanks to Olaf for the patch |
| 10208 |
- behavior change: "msg" of messages with invalid PRI set to "rawmsg" |
| 10209 |
When the PRI is invalid, the rest of the header cannot be valid. So |
| 10210 |
we move all of it to MSG and do not try to parse it out. Note that |
| 10211 |
this is not directly related to the security issue but rather done |
| 10212 |
because it makes most sense. |
| 10213 |
--------------------------------------------------------------------------- |
| 10214 |
Version 7.6.6 [v7.6-stable] 2014-09-30 |
| 10215 |
- bugfix: potential abort when a message with PRI > 191 was processed |
| 10216 |
if the "pri-text" property was used in active templates, this could |
| 10217 |
be abused to a remote denial of service from permitted senders |
| 10218 |
see also: CVE-2014-3634 |
| 10219 |
- bugfix: potential segfault on startup on 64 bit systems |
| 10220 |
This happened immediately on startup during config processing. Once |
| 10221 |
rsyslog got past this stage, it could not happen. |
| 10222 |
- bugfix: build problems on SuSe Linux |
| 10223 |
Thanks Andreas Stieger for the patch |
| 10224 |
--------------------------------------------------------------------------- |
| 10225 |
Version 7.6.5 [v7.6-stable] 2014-09-17 |
| 10226 |
- bugfix: in 7.6.4, pri-based filters did not work correctly |
| 10227 |
messages were distributed to the wrong bins. |
| 10228 |
- bugfix: build problems on systems without atomic instructions |
| 10229 |
e.g. RHEL 5; backport from v8 |
| 10230 |
--------------------------------------------------------------------------- |
| 10231 |
Version 7.6.4 [v7.6-stable] 2014-09-12 |
| 10232 |
- add --enable-generate-man-pages configure switch (default: enabled) |
| 10233 |
This forces generation of man pages, even if cached ones exists. This |
| 10234 |
"fixes" a typical release tarball nit. While it is hackish, the |
| 10235 |
benefit is clear given the history of failed tarball releases since |
| 10236 |
we changed the cached man page handling. It was just too easy to get |
| 10237 |
that wrong. |
| 10238 |
- removed obsolete --disable-fsstnd configure option |
| 10239 |
Thanks to Thomas D. for alerting us. |
| 10240 |
Closes: https://github.com/rsyslog/rsyslog/issues/72 |
| 10241 |
- permits to build against json-c 0.12 |
| 10242 |
Unfortunately, json-c had an ABI breakage, so this is necessary. Note |
| 10243 |
that versions prior to 0.12 had security issues (CVE-2013-6370, |
| 10244 |
CVE-2013-6371) and so it is desirable to link against the new version. |
| 10245 |
Thanks to Thomas D. for the patch. Note that at least some distros |
| 10246 |
have fixed the security issue in older versions of json-c, so this |
| 10247 |
seems to apply mostly when building from sources. |
| 10248 |
- new omfile default module parameters |
| 10249 |
* filecreatemode |
| 10250 |
* fileowner |
| 10251 |
* fileownernum |
| 10252 |
* filegroup |
| 10253 |
* filegroupnum |
| 10254 |
* dirowner |
| 10255 |
* dirownernum |
| 10256 |
* dirgroup |
| 10257 |
* dirgroupnum |
| 10258 |
Thanks to Karol Jurak for the patch. |
| 10259 |
- bugfix: memory leak in TCP TLS mode |
| 10260 |
- bugfix: imfile: if a state file for a different file name was set, |
| 10261 |
that different file (name) was monitored instead of the configured |
| 10262 |
one. Now, the state file is deleted and the correct file monitored. |
| 10263 |
closes: https://github.com/rsyslog/rsyslog/issues/103 |
| 10264 |
- bugfix: using UUID property could cause segfault |
| 10265 |
- bugfix: mmutf8fix did not detect two invalid sequences |
| 10266 |
Thanks to Axel Rau for the patch. |
| 10267 |
- bugfix: file descriptor leak with Guardtime signatures |
| 10268 |
When a .gtstate file is opened it is never closed. This is especially |
| 10269 |
bad when dynafiles frequently get evicted from dynafile cache and be |
| 10270 |
re-opened again. |
| 10271 |
- bugfix: busy loop in tcp listener when running out of file descriptors |
| 10272 |
Thanks to Susant Sahani for the patch. |
| 10273 |
- bugfix: mishandling of input modules not supporting new input instances |
| 10274 |
If they did not support this, accidentally the output module part of the |
| 10275 |
module union was written, leading to unpredictable results. Note: all |
| 10276 |
core modules do support this interface, but some contributed or very |
| 10277 |
old ones do not. |
| 10278 |
- bugfix: double-free when ruleset() parser parameters were used |
| 10279 |
While unlikely, this could cause stability issues even after the |
| 10280 |
config phase. |
| 10281 |
- bugfix: output modules with parameters with multiple passing modes |
| 10282 |
could caused strange behavior including aborts |
| 10283 |
This was due to the fact that the action module only preserved and |
| 10284 |
processed the last set passing mode. Note that this was not a problem |
| 10285 |
for the plugins provided by the rsyslog git: none of them uses different |
| 10286 |
passing modes. |
| 10287 |
Thanks to Tomas Heinrich for providing a very detailed bug report. |
| 10288 |
- various fixes after coverity scan |
| 10289 |
These do not address issues seen in practice but those seen by the tool. |
| 10290 |
Some of them may affect practical deployments. |
| 10291 |
Thanks to Tomas Heinrich for the patches. |
| 10292 |
- bugfix imuxsock: "Last message repeated..." was not emitted at shutdown |
| 10293 |
The "Last message repeated..." notice didn't get printed if rsyslog was |
| 10294 |
shut down before the repetition was broken. |
| 10295 |
Thanks to Tomas Heinrich for the patch. |
| 10296 |
- bugfix: make dist failed when GUARDTIME or LIBGCRYPT feature was disabled |
| 10297 |
- bugfix: mmjsonparse did not build with json-c < 0.10 |
| 10298 |
This was a regression introduced some time in the past in order to |
| 10299 |
support API changes in json-c. Now we check for the version and use |
| 10300 |
proper code. |
| 10301 |
- bugfix: mmanon did not properly anonymize IP addresses starting with '9' |
| 10302 |
Thanks to defa-at-so36.net for reporting this problem. |
| 10303 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=529 |
| 10304 |
--------------------------------------------------------------------------- |
| 10305 |
Version 7.6.3 [v7.6-stable] 2014-03-27 |
| 10306 |
- add capability to override GnuTLS path in build process |
| 10307 |
Thanks to Clayton Shotwell for the patch |
| 10308 |
- support for librelp 1.2.5 |
| 10309 |
Support new return states of librelp 1.2.5 to emit better error messages |
| 10310 |
For obvious reasons, librelp 1.2.5 is now required. |
| 10311 |
- bugfix: ompipe used invalid default template |
| 10312 |
This is a regression from an old change (didn't track it down precisely, |
| 10313 |
but over a year ago). It used the Forwarding template instead of |
| 10314 |
the file template (so we have a full syslog header). This fix corrects |
| 10315 |
it back to previous behavior, but new scripts that used the wrong |
| 10316 |
format may now need to have the RSYSLOG_ForwardingFormat template |
| 10317 |
explicitly be applied. |
| 10318 |
closes: https://github.com/rsyslog/rsyslog/issues/50 |
| 10319 |
- bugfix: ompipe did emit many suspension messages for /dev/xconsole |
| 10320 |
(hopefully now) closes: https://github.com/rsyslog/rsyslog/issues/35 |
| 10321 |
When it was present, but nobody reading from it. The problem |
| 10322 |
is the way the rsyslog v7 engine tries to resolve failures in outputs. |
| 10323 |
It does some retries, and along those lines some state information gets |
| 10324 |
lost and it is close to impossible to retain it. However, the actual |
| 10325 |
root problem is that ompipe does not reliably detect if it is able to |
| 10326 |
recover. The problem here is that it actually does not know this |
| 10327 |
before it does an actual write. These two things together mess up the |
| 10328 |
logic that suppresses invalid resumption/suspension messages |
| 10329 |
(actually, the plugin switches state really that often). |
| 10330 |
Nevertheless, the prime problem with /dev/xconsole (and probably |
| 10331 |
most other pipes as well) is that it gets full. So I have now added |
| 10332 |
code that checks, during resume processing, if the pipe is writable. |
| 10333 |
If it is not, resume is deferred. That should address the case. |
| 10334 |
--------------------------------------------------------------------------- |
| 10335 |
Version 7.6.2 [v7.6-stable] 2014-03-17 |
| 10336 |
- support for librelp 1.2.4 |
| 10337 |
This was necessary due to the problems with librelp 1.2.3 API stability. |
| 10338 |
We now use the new native 1.2.4 APIs to learn about the state of |
| 10339 |
librelp's TLS support. |
| 10340 |
For obvious reasons, librelp 1.2.4 is now required. |
| 10341 |
--------------------------------------------------------------------------- |
| 10342 |
Version 7.6.1 [v7.6-stable] 2014-03-13 |
| 10343 |
- added "action.reportSuspension" action parameter |
| 10344 |
This now permits to control handling on a per-action basis rather to |
| 10345 |
the previous "global setting only". |
| 10346 |
- "action resumed" message now also specifies module type |
| 10347 |
which makes troubleshooting a bit easier. Note that we cannot output all |
| 10348 |
the config details (like destination etc) as this would require much more |
| 10349 |
elaborate code changes, which we at least do not like to do in the |
| 10350 |
stable version. |
| 10351 |
- better and more consistent action naming, action queues now always |
| 10352 |
contain the word "queue" after the action name |
| 10353 |
- add support for "tls-less" librelp |
| 10354 |
we now require librelp 1.2.3, as we need the new error code definition |
| 10355 |
See also: https://github.com/rsyslog/librelp/issues/1 |
| 10356 |
- build system improvements |
| 10357 |
* autoconf subdir option |
| 10358 |
* support for newer json-c packages |
| 10359 |
Thanks to Michael Biebl for the patches. |
| 10360 |
- imjournal enhancements: |
| 10361 |
* log entries with empty message field are no longer ignored |
| 10362 |
* invalid facility and severity values are replaced by defaults |
| 10363 |
* new config parameters to set default facility and severity |
| 10364 |
Thanks to Tomas Heinrich for implementing this |
| 10365 |
- bugfix: ompipe did resume itself even when it was still in error |
| 10366 |
See: https://github.com/rsyslog/rsyslog/issues/35 |
| 10367 |
Thanks to github user schplat for reporting |
| 10368 |
- bugfix: "action xxx suspended" did report incorrect error code |
| 10369 |
- bugfix: ommongodb's template parameter was mandatory but should have |
| 10370 |
been optional |
| 10371 |
Thanks to Alain for the analysis and the patch. |
| 10372 |
- bugfix: only partial doc was put into distribution tarball |
| 10373 |
Thanks to Michael Biebl for alerting us. |
| 10374 |
see also: https://github.com/rsyslog/rsyslog/issues/31 |
| 10375 |
- bugfix: async ruleset did process already-deleted messages |
| 10376 |
Thanks to John Novotny for the patch. |
| 10377 |
--------------------------------------------------------------------------- |
| 10378 |
Version 7.6.0 [v7.6-stable] 2014-02-12 |
| 10379 |
This starts a new stable branch based on 7.5.8 plus the following changes: |
| 10380 |
- bugfix: imuxsock input parameters were not accepted |
| 10381 |
due to copy&paste error. Thanks to Andy Goldstein for the fix. |
| 10382 |
- added ProcessInternalMessages global system parameter |
| 10383 |
This permits to inject rsyslog status messages into *another* main |
| 10384 |
syslogd or the journal. |
| 10385 |
- new dependency: liblogging-stdlog (for submitting to external logger) |
| 10386 |
- bugfix: json templates are improperly created |
| 10387 |
Strings miss the terminating NUL character, which obviously can lead |
| 10388 |
to all sorts of problems. |
| 10389 |
See also: https://github.com/rsyslog/rsyslog/issues/27 |
| 10390 |
Thanks to Alain for the analysis and the patch. |
| 10391 |
- ompgsql bugfix: improper handling of auto-backgrounding mode |
| 10392 |
If rsyslog was set to auto-background itself (default code behavior, but |
| 10393 |
many distros now turn it off for good reason), ompgsql could not |
| 10394 |
properly connect. This could even lead to a segfault. The core reason |
| 10395 |
was that a PG session handle was kept open over a fork, something that |
| 10396 |
is explicitly forbidden in the PG API. |
| 10397 |
Thanks to Alain for the analysis and the patch. |
| 10398 |
--------------------------------------------------------------------------- |
| 10399 |
Version 7.5.8 [v7-release candidate] 2014-01-09 |
| 10400 |
- add exec_template() RainerScript function |
| 10401 |
- add debug.onShutdown and debug.logFile global parameters |
| 10402 |
These enable the new "debug on shutdown" mode, which can be used to |
| 10403 |
track hard to find problems that occur during system shutdown. |
| 10404 |
- Add directives for numerically specifying GIDs/UIDs |
| 10405 |
The already present directives (FileOwner, FileGroup, DirOwner, |
| 10406 |
DirGroup) translate names to numerical IDs, which depends on the user |
| 10407 |
information being available during rsyslog's startup. This can fail if |
| 10408 |
the information is obtained over a network or from a service such as |
| 10409 |
SSSD. The new directives provide a way to specify the numerical IDs |
| 10410 |
directly and bypass the lookup. |
| 10411 |
Thanks to Tomas Heinrich for the patch. |
| 10412 |
- actions now report if they suspend and resume themselves |
| 10413 |
this is by default on and controllable by the action.reportSuspension |
| 10414 |
global parameter |
| 10415 |
- bugfix: omelasticsearch fail.es stats counter was improperly maintained |
| 10416 |
- bugfix: mmrfc5424addhmac: "key" parameter was not properly processed |
| 10417 |
- add new impstats action counters: |
| 10418 |
* suspended |
| 10419 |
* suspended.duration |
| 10420 |
* resumed |
| 10421 |
--------------------------------------------------------------------------- |
| 10422 |
Version 7.5.7 [v7-devel] 2013-11-25 |
| 10423 |
- queue defaults have changed |
| 10424 |
* high water mark is now dynamically 90% of queue size |
| 10425 |
* low water makr is now dynamically 70% of queue size |
| 10426 |
* queue.discardMark is now dynamically 98% of queue size |
| 10427 |
* queue.workerThreadMinimumMessage set to queue.size / num workers |
| 10428 |
For queues with very low queue.maxSize (< 100), "emergency" defaults |
| 10429 |
will be used. |
| 10430 |
- worker thread pool handling has been improved |
| 10431 |
Among others, permits pool to actually shrink (was quite hard with |
| 10432 |
previous implementation. This will also improve performance and/or |
| 10433 |
lower system overhead on busy systems. |
| 10434 |
Thanks to Pavel Levshin for the enhancement. |
| 10435 |
- bugfix: mmpstrucdata generated inaccessible properties |
| 10436 |
- bugfix: RainerScript optimizer did not optimize PRI filters |
| 10437 |
things like "if $syslogfacility-text == "local3"" were not converted |
| 10438 |
to PRIFILT. This was a regression introduced in 7.5.6. |
| 10439 |
- bugfix: legacy directive $ActionQueueWorkerThreads was not honored |
| 10440 |
- bugfix: segfault on startup when certain script constructs are used |
| 10441 |
e.g. "if not $msg ..." |
| 10442 |
- bugfix: ommysql lost configfile/section parameters after first close |
| 10443 |
This means that when a connection was broken, it was probably |
| 10444 |
re-instantiated with different parameters than configured. |
| 10445 |
- bugfix: regression in template processing with subtrees in templates |
| 10446 |
Thanks to Pavel Levshin for the fix |
| 10447 |
- bugfix: regular worker threads are not properly (re)started if DA |
| 10448 |
mode is active. |
| 10449 |
This occurs only under rare conditions, but definitely is a bug that |
| 10450 |
needed to be addressed. It probably is present since version 4. |
| 10451 |
Note that this patch has not been applied to v7.4-stable, as it |
| 10452 |
is very unlikely to happen and the fix itself has some regression |
| 10453 |
potential (the fix looks very solid, but it addresses a core component). |
| 10454 |
Thanks to Pavel Levshin for the fix |
| 10455 |
- now emit warning message if om with msg passing mode uses action queue |
| 10456 |
These can modify the message, and this causes races. |
| 10457 |
- bugfix: $SystemLogUseSysTimeStamp/$SystemLogUsePIDFromSystem did not work |
| 10458 |
Thanks to Tomas Heinrich for the patch. |
| 10459 |
--------------------------------------------------------------------------- |
| 10460 |
Version 7.5.6 [devel] 2013-10-29 |
| 10461 |
- impstats: add capability to bind to a ruleset |
| 10462 |
- improved performance of RainerScript variable access |
| 10463 |
by refactoring the whole body of variable handling code. This also |
| 10464 |
solves some of the anomalies experienced in some versions of rsyslog. |
| 10465 |
All variable types are now handled in unified code, including |
| 10466 |
access via templates. |
| 10467 |
- RainerScript: make use of 64 bit for numbers where available |
| 10468 |
Thanks to Pavel Levshin for enhancement. |
| 10469 |
- slight performance optimization if GCC is used |
| 10470 |
We give branch prediction hints for the frequent RETiRet macro which is |
| 10471 |
used for error handling. Some slight performance gain is to be expected |
| 10472 |
from that. |
| 10473 |
- removed global variable support |
| 10474 |
The original idea was not well thought out and global variables, as |
| 10475 |
implemented, worked far different from what anybody would expect. As |
| 10476 |
such, we consider the current approach as an experiment that did not |
| 10477 |
work out and opt to removing it, clearing the way for a better future |
| 10478 |
solution. Note: global vars were introduced in 7.5.3 on Sept, 11th 2013. |
| 10479 |
- new module mmsequence, primarily used for action load balancing |
| 10480 |
Thanks to Pavel Levshin for contributing this module. |
| 10481 |
- bugfix: unset statement always worked on message var, even if local |
| 10482 |
var was given |
| 10483 |
- imudp: support for binding to ruleset added |
| 10484 |
- bugfix: segfault if variable was assigned to non-container subtree |
| 10485 |
Thanks to Pavel Levshin for the fix |
| 10486 |
- bugfix: imuxsock did not support addtl sockets if syssock was disabled |
| 10487 |
Thanks to Pavel Levshin for the fix |
| 10488 |
- bugfix: running imupd on multiple threads lead to segfault if recvmmsg |
| 10489 |
is available |
| 10490 |
- bugfix: imudp when using recvmmsg could report wrong sender IP |
| 10491 |
- bugfix: segfault if re_extract() function was used and no match found |
| 10492 |
- bugfix: omelasticsearch did not compile on platforms without atomic |
| 10493 |
instructions |
| 10494 |
- bugfix: potential misaddressing on startup if property-filter was used |
| 10495 |
This could happen if the property name was longer than 127 chars, a case |
| 10496 |
that would not happen in practice. |
| 10497 |
- bugfix: invalid property filter was not properly disabled in ruleset |
| 10498 |
Note: the cosmetic memory leak introduced with that patch in 7.4.5 is |
| 10499 |
now also fixed. |
| 10500 |
- imported bugfixes from 7.4.6 stable release |
| 10501 |
--------------------------------------------------------------------------- |
| 10502 |
Version 7.5.5 [devel] 2013-10-16 |
| 10503 |
- imfile: permit to monitor an unlimited number of files |
| 10504 |
- imptcp: add "defaultTZ" input parameter |
| 10505 |
- imudp: support for multiple receiver threads added |
| 10506 |
- imudp: add "dfltTZ" input config parameter |
| 10507 |
- bugfix: memory leak in mmnormalize |
| 10508 |
- bugfix: mmutf8fix did not properly handle invalid UTF-8 at END of message |
| 10509 |
if the very last character sequence was too long, this was not detected |
| 10510 |
Thanks to Risto Vaarandi for reporting this problem. |
| 10511 |
- mmanon: removed the check for specific "terminator characters" after |
| 10512 |
last octet. As it turned out, this didn't work in practice as there |
| 10513 |
was an enormous set of potential terminator chars -- so removing |
| 10514 |
them was the best thing to do. Note that this may change behavior of |
| 10515 |
existing installations. Yet, we still consider this an important |
| 10516 |
bugfix, that should be applied to the stable branch. |
| 10517 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=477 |
| 10518 |
Thanks to Muri Cicanor for initiating the discussion |
| 10519 |
- now requires libestr 0.1.7 as early versions had a nasty bug in |
| 10520 |
string comparisons |
| 10521 |
- bugfix: mmanon did not detect all IP addresses in rewrite mode |
| 10522 |
The problem occurred if two IPs were close to each other and the first one |
| 10523 |
was shrunk. |
| 10524 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=485 |
| 10525 |
Thanks to micah-at-riseup.net for reporting this bug |
| 10526 |
- bugfix: mmanon sometimes used invalid replacement char in simple mode |
| 10527 |
depending on configuration sequence, the replacement character was set |
| 10528 |
to 's' instead of the correct value. Most importantly, it was set to |
| 10529 |
's' if simple mode was selected and no replacement char set. |
| 10530 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=484 |
| 10531 |
Thanks to micah-at-riseup.net for reporting this bug |
| 10532 |
- bugfix: memory leak in mmnormalize |
| 10533 |
- bugfix: array-based ==/!= comparisons lead to invalid results |
| 10534 |
This was a regression introduced in 7.3.5 bei the PRI optimizer |
| 10535 |
--------------------------------------------------------------------------- |
| 10536 |
Version 7.5.4 [devel] 2013-10-07 |
| 10537 |
- mmpstrucdata: new module to parse RFC5424 structured data into json |
| 10538 |
message properties |
| 10539 |
- change main/ruleset queue defaults to be more enterprise-like |
| 10540 |
new defaults are queue.size 100,000 max workers 2, worker |
| 10541 |
activation after 40,000 msgs are queued, batch size 256. These settings |
| 10542 |
are much more useful for enterprises and will not hurt low-end systems |
| 10543 |
that much. This is part of our re-focus on enterprise needs. |
| 10544 |
- omfwd: new action parameter "maxErrorMessages" added |
| 10545 |
- omfile: new module parameters to set action defaults added |
| 10546 |
* dirCreateMode |
| 10547 |
* fileCreateMode |
| 10548 |
- mmutf8fix: new module to fix invalid UTF-8 sequences |
| 10549 |
- imuxsock: handle unlimited number of additional listen sockets |
| 10550 |
- doc: improve usability by linking to relevant web resources |
| 10551 |
The idea is to enable users to quickly find additional information, |
| 10552 |
samples, HOWTOs and the like on the main site. |
| 10553 |
At the same time, (very) slightly remove memory footprint when |
| 10554 |
few listeners are monitored. |
| 10555 |
- bugfix: omfwd parameter streamdrivermode was not properly handled |
| 10556 |
it was always overwritten by whatever value was set via the |
| 10557 |
legacy directive $ActionSendStreamDriverMode |
| 10558 |
- imtcp: add streamdriver.name module parameter |
| 10559 |
permits overriding the system default stream driver (gtls, ptcp) |
| 10560 |
- bugfix: build system: libgcrypt.h needed even if libgrcypt was disabled |
| 10561 |
Thanks to Jonny Törnbom for reporting this problem |
| 10562 |
- imported bugfixes from 7.4.4 |
| 10563 |
--------------------------------------------------------------------------- |
| 10564 |
Version 7.5.3 [devel] 2013-09-11 |
| 10565 |
- imfile: support for escaping LF characters added |
| 10566 |
embedded LF in syslog messages cause a lot of trouble. imfile now has |
| 10567 |
the capability to escape them to "#012" (just like the regular control |
| 10568 |
character escape option). This requires new-style input statements to be |
| 10569 |
used. If legacy configuration statements are used, LF escaping is always |
| 10570 |
turned off to preserve compatibility. |
| 10571 |
NOTE: if input() statements were already used, there is a CHANGE OF |
| 10572 |
BEHAVIOR: starting with this version, escaping is enabled by |
| 10573 |
default. So if you do not want it, you need to add |
| 10574 |
escapeLF="off" |
| 10575 |
to the input statement. Given the trouble LFs cause and the fact |
| 10576 |
that the majority of installations still use legacy config, we |
| 10577 |
considered this behavior change acceptable and useful. |
| 10578 |
see also: http://blog.gerhards.net/2013/09/imfile-multi-line-messages.html |
| 10579 |
- add support for global and local variables |
| 10580 |
- bugfix: queue file size was not correctly processed |
| 10581 |
this could lead to using one queue file per message for sizes >2GiB |
| 10582 |
Thanks to Tomas Heinrich for the patch. |
| 10583 |
- add main_queue() configuration object to configure main message queue |
| 10584 |
- bugfix: stream compression in imptcp caused timestamp to be corrupted |
| 10585 |
- imudp: add ability to specify SO_RCVBUF size (rcvbufSize parameter) |
| 10586 |
- imudp: use inputname for statistics, if configured |
| 10587 |
- impstats: add process resource usage counters [via getrusage()] |
| 10588 |
- impstats: add parameter "resetCounters" to report delta values |
| 10589 |
possible for most, but not all, counters. See doc for details. |
| 10590 |
- librelp 1.2.0 is now required |
| 10591 |
- make use of new librelp generic error reporting facility |
| 10592 |
This leads to more error messages being passed to the user and |
| 10593 |
thus simplified troubleshooting. |
| 10594 |
- bugfix: very small memory leak in imrelp |
| 10595 |
more or less cosmetic, a single memory block was not freed, but this |
| 10596 |
only happens immediately before termination (when the OS automatically |
| 10597 |
frees all memory). Still an annoyance e.g. in valgrind. |
| 10598 |
- fix compile problem in debug build |
| 10599 |
- imported fixes from 7.4.4 |
| 10600 |
--------------------------------------------------------------------------- |
| 10601 |
Version 7.5.2 [devel] 2013-07-04 |
| 10602 |
- librelp 1.1.4 is now required |
| 10603 |
We use API extensions for better error reporting and higher performance. |
| 10604 |
- omrelp: use transactional mode to make imrelp emit bulk sends |
| 10605 |
- omrelp: add "windowSize" parameter to set custom RELP window size |
| 10606 |
- bugfix: double-free in omelasticsearch |
| 10607 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=461 |
| 10608 |
a security advisory for this bug is available at: |
| 10609 |
http://www.lsexperts.de/advisories/lse-2013-07-03.txt |
| 10610 |
CVE: CVE-2013-4758 |
| 10611 |
PLEASE NOTE: This issue only existed if omelasticsearch was used |
| 10612 |
in a non-default configuration, where the "errorfile" parameter |
| 10613 |
was specified. Without that parameter set, the bug could not |
| 10614 |
be triggered. |
| 10615 |
Thanks to Markus Vervier and Marius Ionescu for providing a detailed |
| 10616 |
bug report. Special thanks to Markus for coordinating his security |
| 10617 |
advisory with us. |
| 10618 |
- doc: fixed various typos |
| 10619 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=391 |
| 10620 |
Thanks to Georgi Georgiev for the patch. |
| 10621 |
--------------------------------------------------------------------------- |
| 10622 |
Version 7.5.1 [devel] 2013-06-26 |
| 10623 |
- librelp 1.1.3 is required - older versions can lead to a segfault |
| 10624 |
- add mmfields, which among others supports easy parsing of CEF messages |
| 10625 |
- omrelp: |
| 10626 |
* new parameter "compression.prioritystring" to control encryption |
| 10627 |
parameters used by GnuTLS |
| 10628 |
- imrelp: |
| 10629 |
* new parameter "compression.dhbits" to control the number of |
| 10630 |
bits being used for Diffie-Hellman key generation |
| 10631 |
* new parameter "compression.prioritystring" to control encryption |
| 10632 |
parameters used by GnuTLS |
| 10633 |
* support for impstats added |
| 10634 |
* support for setting permitted peers (client authentication) added |
| 10635 |
* bugfix: potential segfault at startup on invalid config parameters |
| 10636 |
- imjournal: imported patches from 7.4.1 |
| 10637 |
- omprog: add support for command line parameters |
| 10638 |
- added experimental TCP stream compression (imptcp only, currently) |
| 10639 |
- added BSD-specific syslog facilities |
| 10640 |
* "console" |
| 10641 |
* "bsd_security" - this is called "security" under BSD, but that name |
| 10642 |
was unfortunately already taken by some standard facility. So I |
| 10643 |
did the (hopefully) second-best thing and renamed it a little. |
| 10644 |
- imported fixes from 7.4.2 (especially build problems on FreeBSD) |
| 10645 |
- bugfix: imptcp did not properly initialize compression status variable |
| 10646 |
could lead to segfault if stream:always compression mode was selected |
| 10647 |
--------------------------------------------------------------------------- |
| 10648 |
Version 7.5.0 [devel] 2013-06-11 |
| 10649 |
- imrelp: implement "ruleset" module parameter |
| 10650 |
- imrelp/omrelp: add TLS & compression (zip) support |
| 10651 |
- omrelp: add "rebindInterval" parameter |
| 10652 |
- add -S command line option to specify IP address to use for RELP client |
| 10653 |
connections |
| 10654 |
Thanks to Axel Rau for the patch. |
| 10655 |
--------------------------------------------------------------------------- |
| 10656 |
Version 7.4.11 [v7.4-stable] *never released* |
| 10657 |
- imjournal enhancements: |
| 10658 |
* log entries with empty message field are no longer ignored |
| 10659 |
* invalid facility and severity values are replaced by defaults |
| 10660 |
* new config parameters to set default facility and severity |
| 10661 |
Thanks to Tomas Heinrich for implementing this |
| 10662 |
--------------------------------------------------------------------------- |
| 10663 |
Version 7.4.10 [v7.4-stable] 2014-02-12 |
| 10664 |
- bugfix: json templates are improperly created |
| 10665 |
Strings miss the terminating NUL character, which obviously can lead |
| 10666 |
to all sorts of problems. |
| 10667 |
See also: https://github.com/rsyslog/rsyslog/issues/27 |
| 10668 |
Thanks to Alain for the analysis and the patch. |
| 10669 |
- ompgsql bugfix: improper handling of auto-backgrounding mode |
| 10670 |
If rsyslog was set to auto-background itself (default code behavior, but |
| 10671 |
many distros now turn it off for good reason), ompgsql could not |
| 10672 |
properly connect. This could even lead to a segfault. The core reason |
| 10673 |
was that a PG session handle was kept open over a fork, something that |
| 10674 |
is explicitly forbidden in the PG API. |
| 10675 |
Thanks to Alain for the analysis and the patch. |
| 10676 |
--------------------------------------------------------------------------- |
| 10677 |
Version 7.4.9 [v7.4-stable] 2014-01-22 |
| 10678 |
- added ProcessInternalMessages global system parameter |
| 10679 |
This permits to inject rsyslog status messages into *another* main |
| 10680 |
syslogd or the journal. |
| 10681 |
- new dependency: liblogging-stdlog (for submitting to external logger) |
| 10682 |
- bugfix: imuxsock input parameters were not accepted |
| 10683 |
due to copy&paste error. Thanks to Andy Goldstein for the fix. |
| 10684 |
- bugfix: potential double-free in RainerScript equal comparison |
| 10685 |
happens if the left-hand operand is JSON object and the right-hand |
| 10686 |
operand is a non-string that does not convert to a number (for |
| 10687 |
example, it can be another JSON object, probably the only case that |
| 10688 |
could happen in practice). This is very unlikely to be triggered. |
| 10689 |
- bugfix: some RainerScript Json(Variable)/string comparisons were wrong |
| 10690 |
--------------------------------------------------------------------------- |
| 10691 |
Version 7.4.8 [v7.4-stable] 2014-01-08 |
| 10692 |
- rsgtutil provides better error messages on unfinished signature blocks |
| 10693 |
- bugfix: guard against control characters in internal (error) messages |
| 10694 |
Thanks to Ahto Truu for alerting us. |
| 10695 |
- bugfix: immark did emit messages under kern.=info instead of syslog.=info |
| 10696 |
Note that his can potentially break existing configurations that |
| 10697 |
rely on immark sending as kern.=info. Unfortunately, we cannot leave |
| 10698 |
this unfixed as we never should emit messages under the kern facility. |
| 10699 |
--------------------------------------------------------------------------- |
| 10700 |
Version 7.4.7 [v7.4-stable] 2013-12-10 |
| 10701 |
- bugfix: limiting queue disk space did not work properly |
| 10702 |
* queue.maxdiskspace actually initializes queue.maxfilesize |
| 10703 |
* total size of queue files was not checked against |
| 10704 |
queue.maxdiskspace for disk assisted queues. |
| 10705 |
Thanks to Karol Jurak for the patch. |
| 10706 |
- bugfix: linux kernel-like ratelimiter did not work properly with all |
| 10707 |
inputs (for example, it did not work with imdup). The reason was that |
| 10708 |
the PRI value was used, but that needed parsing of the message, which |
| 10709 |
was done too late. |
| 10710 |
- bugfix: disk queues created files in wrong working directory |
| 10711 |
if the $WorkDirectory was changed multiple times, all queues only |
| 10712 |
used the last value set. |
| 10713 |
- bugfix: legacy directive $ActionQueueWorkerThreads was not honored |
| 10714 |
- bugfix: segfault on startup when certain script constructs are used |
| 10715 |
e.g. "if not $msg ..." |
| 10716 |
- bugfix: imuxsock: UseSysTimeStamp config parameter did not work correctly |
| 10717 |
Thanks to Tomas Heinrich for alerting us and providing a solution |
| 10718 |
suggestion. |
| 10719 |
- bugfix: $SystemLogUseSysTimeStamp/$SystemLogUsePIDFromSystem did not work |
| 10720 |
Thanks to Tomas Heinrich for the patch. |
| 10721 |
- improved checking of queue config parameters on startup |
| 10722 |
- bugfix: call to ruleset with async queue did not use the queue |
| 10723 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=443 |
| 10724 |
- bugfix: if imtcp is loaded and no listeners are configured (which is |
| 10725 |
uncommon), rsyslog crashes during shutdown. |
| 10726 |
--------------------------------------------------------------------------- |
| 10727 |
Version 7.4.6 [v7.4-stable] 2013-10-31 |
| 10728 |
- bugfix: potential abort during HUP |
| 10729 |
This could happen when one of imklog, imzmq3, imkmsg, impstats, |
| 10730 |
imjournal, or imuxsock were under heavy load during a HUP. |
| 10731 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=489 |
| 10732 |
Thanks to Guy Rozendorn for reporting the problem and Peval Levshin for |
| 10733 |
his analysis. |
| 10734 |
- bugfix: imtcp flowControl parameter incorrectly defaulted to "off" |
| 10735 |
This could cause message loss on systems under heavy load and was |
| 10736 |
a change-of-behavior to previous version. This is a regression |
| 10737 |
most probably introduced in 5.9.0 (but did not try hard to find the |
| 10738 |
exact point of its introduction). |
| 10739 |
- now requires libestr 0.1.9 as earlier versions lead to problems with |
| 10740 |
number handling in RainerScript |
| 10741 |
- bugfix: memory leak in strlen() RainerScript function |
| 10742 |
Thanks to Gregoire Seux for reporting this bug. |
| 10743 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=486 |
| 10744 |
- bugfix: buffer overrun if re_extract function was called for submatch 50 |
| 10745 |
Thanks to Pavel Levshin for reporting the problem and its location. |
| 10746 |
- bugfix: memleak in re_extract() function |
| 10747 |
Thanks to Pavel Levshin for reporting this problem. |
| 10748 |
- bugfix: potential abort in RainerScript optimizer |
| 10749 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=488 |
| 10750 |
Thanks to Thomas Doll for reporting the problem and Pavel Levshin for |
| 10751 |
fixing it. |
| 10752 |
- bugfix: memory leak in omhiredis |
| 10753 |
Thanks to Pavel Levshin for the fix |
| 10754 |
- bugfix: segfault if variable was assigned to non-container subtree |
| 10755 |
Thanks to Pavel Levshin for the fix |
| 10756 |
--------------------------------------------------------------------------- |
| 10757 |
Version 7.4.5 [v7.4-stable] 2013-10-22 |
| 10758 |
- mmanon: removed the check for specific "terminator characters" after |
| 10759 |
last octet. As it turned out, this didn't work in practice as there |
| 10760 |
was an enormous set of potential terminator chars -- so removing |
| 10761 |
them was the best thing to do. Note that this may change behavior of |
| 10762 |
existing installations. Yet, we still consider this an important |
| 10763 |
bugfix, that should be applied to the stable branch. |
| 10764 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=477 |
| 10765 |
Thanks to Muri Cicanor for initiating the discussion |
| 10766 |
- now requires libestr 0.1.8 as early versions had a nasty bug in |
| 10767 |
string comparisons |
| 10768 |
- omelasticsearch: add failed.httprequests stats counter |
| 10769 |
- bugfix: invalid property filter was not properly disabled in ruleset |
| 10770 |
Note that this bugfix introduces a very slight memory leak, which is |
| 10771 |
cosmetic, as it just holds data until termination that is no longer |
| 10772 |
needed. It is just the part of the config that was invalid. We will |
| 10773 |
"fix" this "issue" in the devel version first, as the fix is a bit |
| 10774 |
too intrusive to do without hard need in the stable version. |
| 10775 |
- bugfix: segfault if re_extract() function was used and no match found |
| 10776 |
- bugfix: potential misaddressing on startup if property-filter was used |
| 10777 |
This could happen if the property name was longer than 127 chars, a case |
| 10778 |
that would not happen in practice. |
| 10779 |
- bugfix: omelasticsearch: correct failed.http stats counter |
| 10780 |
- bugfix: omelasticsearch: did not correctly initialize stats counters |
| 10781 |
- bugfix: omelasticsearch: failed.es counter was only maintained in bulk mode |
| 10782 |
This usually did not lead to any problems, because they are in static |
| 10783 |
memory, which is initialized to zero by the OS when the plugin is |
| 10784 |
loaded. But it may cause problems especially on systems that do not |
| 10785 |
support atomic instructions - in this case the associated mutexes also |
| 10786 |
did not get properly initialized. |
| 10787 |
- bugfix: mmanon did not detect all IP addresses in rewrite mode |
| 10788 |
The problem occurred if two IPs were close to each other and the first one |
| 10789 |
was shrunk. |
| 10790 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=485 |
| 10791 |
Thanks to micah-at-riseup.net for reporting this bug |
| 10792 |
- bugfix: mmanon sometimes used invalid replacement char in simple mode |
| 10793 |
depending on configuration sequence, the replacement character was set |
| 10794 |
to 's' instead of the correct value. Most importantly, it was set to |
| 10795 |
's' if simple mode was selected and no replacement char set. |
| 10796 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=484 |
| 10797 |
Thanks to micah-at-riseup.net for reporting this bug |
| 10798 |
- bugfix: memory leak in mmnormalize |
| 10799 |
- bugfix: array-based ==/!= comparisons lead to invalid results |
| 10800 |
This was a regression introduced in 7.3.5 bei the PRI optimizer |
| 10801 |
- bugfix: omprog blocked signals to executed programs |
| 10802 |
The made it impossible to send signals to programs executed via |
| 10803 |
omprog. |
| 10804 |
Thanks to Risto Vaarandi for the analysis and a patch. |
| 10805 |
- bugfix: doc: imuxsock legacy param $SystemLogSocketParseTrusted was |
| 10806 |
misspelled |
| 10807 |
Thanks to David Lang for alerting us |
| 10808 |
- bugfix: imfile "facility" input parameter improperly handled |
| 10809 |
caused facility not to be set, and severity to be overwritten with |
| 10810 |
the facility value. |
| 10811 |
Thanks to forum user dmunny for reporting this bug. |
| 10812 |
- bugfix: small memory leak in imfile when $ResetConfigVariables was used |
| 10813 |
Thanks to Grégory Nuyttens for reporting this bug and providing a fix |
| 10814 |
- bugfix: segfault on startup if TLS was used but no CA cert set |
| 10815 |
- bugfix: segfault on startup if TCP TLS was used but no cert or key set |
| 10816 |
- bugfix: some more build problems with newer json-c versions |
| 10817 |
Thanks to Michael Biebl for mentioning the problem. |
| 10818 |
- bugfix: build system: libgcrypt.h needed even if libgrcypt was disabled |
| 10819 |
Thanks to Jonny Törnbom for reporting this problem |
| 10820 |
--------------------------------------------------------------------------- |
| 10821 |
Version 7.4.4 [v7.4-stable] 2013-09-03 |
| 10822 |
- better error messages in GuardTime signature provider |
| 10823 |
Thanks to Ahto Truu for providing the patch. |
| 10824 |
- make rsyslog use the new json-c pkgconfig file if available |
| 10825 |
Thanks to the Gentoo team for the patches. |
| 10826 |
- bugfix: imfile parameter "persistStateInterval" was unusable |
| 10827 |
due to a case typo in imfile; work-around was to use legacy config |
| 10828 |
Thanks to Brandon Murphy for reporting this bug. |
| 10829 |
- bugfix: TLV16 flag encoding error in signature files from GT provider |
| 10830 |
This fixes a problem where the TLV16 flag was improperly encoded. |
| 10831 |
Unfortunately, existing files already have the bug and may not properly |
| 10832 |
be processed. The fix uses constants from the GuardTime API lib to |
| 10833 |
prevent such problems in the future. |
| 10834 |
Thanks to Ahto Truu for providing the patch. |
| 10835 |
- bugfix: slightly malformed SMTP handling in ommail |
| 10836 |
- bugfix: segfault in omprog if no template was provided (now dflt is used) |
| 10837 |
- bugfix: segfault in ompipe if no template was provided (now dflt is used) |
| 10838 |
- bugfix: segfault in omsnmp if no template was provided (now dflt is used) |
| 10839 |
- bugfix: some omsnmp optional config params were flagged as mandatory |
| 10840 |
- bugfix: segfault in omelasticsearch when resuming queued messages |
| 10841 |
after restarting Elasticsearch |
| 10842 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=464 |
| 10843 |
- bugfix: imtcp addtlframedelimiter could not be set to zero |
| 10844 |
Thanks to Chris Norton for alerting us. |
| 10845 |
- doc bugfix: remove no-longer existing omtemplate from developer doc |
| 10846 |
was specifically mentioned as a sample for creating new plugins |
| 10847 |
Thanks to Yannick Brosseau for alerting us of this problem. |
| 10848 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=473 |
| 10849 |
--------------------------------------------------------------------------- |
| 10850 |
Version 7.4.3 [v7.4-stable] 2013-07-18 |
| 10851 |
- bugfix: queue file size was not correctly processed |
| 10852 |
this could lead to using one queue file per message for sizes >2GiB |
| 10853 |
Thanks to Tomas Heinrich for the patch. |
| 10854 |
- bugfix: $QHOUR/$HHOUR were always "00" or "01" |
| 10855 |
regression some time between v5 and here |
| 10856 |
Thanks to forum user rjmcinty for reporting this bug |
| 10857 |
- bugfix: testbench tool chkseq did improperly report invalid file |
| 10858 |
This happened when permitted duplicate values existed in the very |
| 10859 |
last lines, right before end-of-file. |
| 10860 |
Thanks to Radu Gheorghe for reporting this bug. |
| 10861 |
--------------------------------------------------------------------------- |
| 10862 |
Version 7.4.3 [v7.4-stable] 2013-07-18 |
| 10863 |
- bugfix: memory leak if disk queues were used and json data present |
| 10864 |
- bugfix: CEE/json data was lost during disk queue operation |
| 10865 |
- bugfix: potential segfault during startup on invalid config |
| 10866 |
could happen if invalid actions were present, which could lead |
| 10867 |
to improper handling in optimizer. |
| 10868 |
- bugfix: 100% CPU utilization when DA queue became full |
| 10869 |
- bugfix: omlibdbi did not properly close connection on some errors |
| 10870 |
This happened to errors occurring in Begin/End Transaction entry |
| 10871 |
points. |
| 10872 |
- cosmetic bugfix: file name buffer was not freed on disk queue destruction |
| 10873 |
This was an extremely small one-time per run memleak, so nothing of |
| 10874 |
concern. However, it bugs under valgrind and similar memory debuggers. |
| 10875 |
- fix build on FreeBSD |
| 10876 |
Thanks to Christiano Rolim for the patch |
| 10877 |
--------------------------------------------------------------------------- |
| 10878 |
Version 7.4.2 [v7.4-stable] 2013-07-04 |
| 10879 |
- bugfix: in RFC5425 TLS, multiple wildcards in auth could cause segfault |
| 10880 |
- bugfix: RainerScript object required parameters were not properly |
| 10881 |
checked - this could result to segfaults on startup if parameters |
| 10882 |
were missing. |
| 10883 |
- bugfix: double-free in omelasticsearch |
| 10884 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=461 |
| 10885 |
a security advisory for this bug is available at: |
| 10886 |
http://www.lsexperts.de/advisories/lse-2013-07-03.txt |
| 10887 |
CVE: CVE-2013-4758 |
| 10888 |
PLEASE NOTE: This issue only existed if omelasticsearch was used |
| 10889 |
in a non-default configuration, where the "errorfile" parameter |
| 10890 |
was specified. Without that parameter set, the bug could not |
| 10891 |
be triggered. |
| 10892 |
Thanks to Markus Vervier and Marius Ionescu for providing a detailed |
| 10893 |
bug report. Special thanks to Markus for coordinating his security |
| 10894 |
advisory with us. |
| 10895 |
- bugfix: omrelp potential segfault at startup on invalid config parameters |
| 10896 |
- bugfix: small memory leak when $uptime property was used |
| 10897 |
- bugfix: potential segfault on rsyslog termination in imudp |
| 10898 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=456 |
| 10899 |
- bugfix: lmsig_gt abort on invalid configuration parameters |
| 10900 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=448 |
| 10901 |
Thanks to Risto Laanoja for the patch. |
| 10902 |
- imtcp: fix typo in "listner" parameter, which is "listener" |
| 10903 |
Currently, both names are accepted. |
| 10904 |
- solved build problems on FreeBSD |
| 10905 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=457 |
| 10906 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=458 |
| 10907 |
Thanks to Christiano for reporting and suggesting patches |
| 10908 |
- solved build problems on CENTOS5 |
| 10909 |
--------------------------------------------------------------------------- |
| 10910 |
Version 7.4.1 [v7.4-stable] 2013-06-17 |
| 10911 |
- imjournal: add ratelimiting capability |
| 10912 |
The original imjournal code did not support ratelimiting at all. We |
| 10913 |
now have our own ratelimiter. This can mitigate against journal |
| 10914 |
database corruption, when the journal re-sends old data. This is a |
| 10915 |
current bug in systemd journal, but we won't outrule this to happen |
| 10916 |
in the future again. So it is better to have a safeguard in place. |
| 10917 |
By default, we permit 20,000 messages within 10 minutes. This may |
| 10918 |
be a bit restrictive, but given the risk potential it seems reasonable. |
| 10919 |
Users requiring larger traffic flows can always adjust the value. |
| 10920 |
- bugfix: potential loop in rate limiting |
| 10921 |
if the message that tells about rate-limiting gets rate-limited itself, |
| 10922 |
it will potentially create and endless loop |
| 10923 |
- bugfix: potential segfault in imjournal if journal DB is corrupted |
| 10924 |
- bugfix: prevent a segfault in imjournal if state file is not defined |
| 10925 |
- bugfix imzmq3: potential segfault on startup |
| 10926 |
if no problem happened at startup, everything went fine |
| 10927 |
Thanks to Hongfei Cheng and Brian Knox for the patch |
| 10928 |
--------------------------------------------------------------------------- |
| 10929 |
Version 7.4.0 [v7.4-stable] 2013-06-06 |
| 10930 |
This starts a new stable branch based on 7.3.15 plus the following changes: |
| 10931 |
- add --enable-cached-man-pages ./configure option |
| 10932 |
permits to build rsyslog on a system where rst2man is not installed. In |
| 10933 |
that case, cached versions of the man pages are used (they were built |
| 10934 |
during "make dist", so they should be current for the version in |
| 10935 |
question. |
| 10936 |
- doc bugfix: ReadMode wrong in imfile doc, two values were swapped |
| 10937 |
Thanks to [email protected] for mentioning this |
| 10938 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=450 |
| 10939 |
- imjournal: no longer do periodic wakeup |
| 10940 |
- bugfix: potential hang *in debug mode* on rsyslogd termination |
| 10941 |
This ONLY affected rsyslogd if it were running with debug output |
| 10942 |
enabled. |
| 10943 |
- bugfix: $template statement with multiple spaces lead to invalid tpl name |
| 10944 |
If multiple spaces were used in front of the template name, all but one |
| 10945 |
of them became actually part of the template name. So |
| 10946 |
$template a,"..." would be name " a", and as such "a" was not |
| 10947 |
available, e.g. in |
| 10948 |
*.* /var/log/file;a |
| 10949 |
This is a legacy config problem. As it was unreported for many years, |
| 10950 |
no backport of the fix to old versions will happen. |
| 10951 |
This is a long-standing bug that was only recently reported by forum |
| 10952 |
user mc-sim. |
| 10953 |
Reference: http://kb.monitorware.com/post23448.html |
| 10954 |
- 0mq fixes; credits to Hongfei Cheng and Brian Knox |
| 10955 |
--------------------------------------------------------------------------- |
| 10956 |
Version 7.3.15 [beta] 2013-05-15 |
| 10957 |
- bugfix: problem in build system (especially when cross-compiling) |
| 10958 |
Thanks to Tomas Heinrich and [email protected] for the patch. |
| 10959 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=445 |
| 10960 |
- bugfix: imjournal had problem with systemd journal API change |
| 10961 |
- imjournal: now obtain and include PID |
| 10962 |
- bugfix: .logsig files had tlv16 indicator bit at wrong offset |
| 10963 |
- bugfix: omrelp legacy config parameters set a timeout of zero |
| 10964 |
which lead the legacy config to be unusable. |
| 10965 |
- bugfix: segfault on startup if a disk queue was configure without file |
| 10966 |
name |
| 10967 |
Now this triggers an error message and the queue is changed to |
| 10968 |
linkedList type. |
| 10969 |
- bugfix: invalid addressing in string class (recent regression) |
| 10970 |
--------------------------------------------------------------------------- |
| 10971 |
Version 7.3.14 [beta] 2013-05-06 |
| 10972 |
- bugfix: some man pages were not properly installed |
| 10973 |
either rscryutil or rsgtutil man was installed, but not both |
| 10974 |
Thanks to Marius Tomaschewski for the patch. |
| 10975 |
- bugfix: potential segfault on startup when builtin module was specified |
| 10976 |
in module() statement. |
| 10977 |
Thanks to Marius Tomaschewski for reporting the bug. |
| 10978 |
- bugfix: segfault due to invalid dynafile cache handling |
| 10979 |
Accidentally, the old-style cache size parameter was used when the |
| 10980 |
dynafile cache was created in a RainerScript action. If the old-style |
| 10981 |
size was lower than the one actually set, this lead to misaddressing |
| 10982 |
when the size was overrun, and that could lead to all kinds of |
| 10983 |
"interesting things", often in segfaults. |
| 10984 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=440 |
| 10985 |
--------------------------------------------------------------------------- |
| 10986 |
Version 7.3.13 [beta] 2013-04-29 |
| 10987 |
- added omrabbitmq module (contributed, untested) |
| 10988 |
Note: this is unsupported and as such was moved immediately into the |
| 10989 |
beta version. |
| 10990 |
Thanks to Vaclav Tomec for providing this module. |
| 10991 |
- bugfix: build problem when --enable-encryption was not selected |
| 10992 |
Thanks to Michael Biebl for fixing this. |
| 10993 |
- doc bugfix: omfile parameter "VeryRobustZip" was documented as |
| 10994 |
"VeryReliableZip" |
| 10995 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=437 |
| 10996 |
Thanks to Thomas Doll for reporting this. |
| 10997 |
--------------------------------------------------------------------------- |
| 10998 |
Version 7.3.12 [devel] 2013-04-25 |
| 10999 |
- added doc for omelasticsearch |
| 11000 |
Thanks to Radu Gheorghe for the doc contribution. |
| 11001 |
- omelasticsearch: _id field support for bulk operations |
| 11002 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=392 |
| 11003 |
Thanks to Jérôme Renard for the idea and patches. |
| 11004 |
- max number of templates for plugin use has been increased to five |
| 11005 |
- platform compatibility enhancement: solve compile issue with libgcrypt |
| 11006 |
do not use GCRY_CIPHER_MODE_AESWRAP where not available |
| 11007 |
- fix compile on Solaris |
| 11008 |
Thanks to Martin Carpenter for the patch. |
| 11009 |
- bugfix: off-by-one error in handling local FQDN name (regression) |
| 11010 |
A temporary buffer was allocated one byte too small. Did only |
| 11011 |
affect startup, not actual operations. Came up during routine tests, |
| 11012 |
and can have no effect once the engine runs. Bug was introduced in |
| 11013 |
7.3.11. |
| 11014 |
- bugfix: build problems on Solaris |
| 11015 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=436 |
| 11016 |
- bugfix: block size limit was not properly honored |
| 11017 |
- bugfix: potential segfault in guardtime signature provider |
| 11018 |
it could segfault if an error was reported by the GuardTime API, because |
| 11019 |
an invalid free could happen then |
| 11020 |
--------------------------------------------------------------------------- |
| 11021 |
Version 7.3.11 [devel] 2013-04-23 |
| 11022 |
- added support for encrypting log files |
| 11023 |
- omhiredis: added support for redis pipeline support |
| 11024 |
Thanks to Brian Knox for the patch. |
| 11025 |
- bugfix: $PreserveFQDN is not properly working |
| 11026 |
Thanks to Louis Bouchard for the patch |
| 11027 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=426 |
| 11028 |
- bugfix: imuxsock aborted due to problem in ratelimiting code |
| 11029 |
Thanks to Tomas Heinrich for the patch. |
| 11030 |
- bugfix: imuxsock aborted under some conditions |
| 11031 |
regression from ratelimiting enhancements - this was a different one |
| 11032 |
to the one Tomas Heinrich patched. |
| 11033 |
- bugfix: timestamp problems in imkmsg |
| 11034 |
--------------------------------------------------------------------------- |
| 11035 |
Version 7.3.10 [devel] 2013-04-10 |
| 11036 |
- added RainerScript re_extract() function |
| 11037 |
- omrelp: added support for RainerScript-based configuration |
| 11038 |
- omrelp: added ability to specify session timeout |
| 11039 |
- templates now permit substring extraction relative to end-of-string |
| 11040 |
- bugfix: failover/action suspend did not work correctly |
| 11041 |
This was experienced if the retry action took more than one second |
| 11042 |
to complete. For suspending, a cached timestamp was used, and if the |
| 11043 |
retry took longer, that timestamp was already in the past. As a |
| 11044 |
result, the action never was kept in suspended state, and as such |
| 11045 |
no failover happened. The suspend functionality now does no longer use |
| 11046 |
the cached timestamp (should not have any performance implication, as |
| 11047 |
action suspend occurs very infrequently). |
| 11048 |
- bugfix: gnutls RFC5425 driver had some undersized buffers |
| 11049 |
Thanks to Tomas Heinrich for the patch. |
| 11050 |
- bugfix: nested if/prifilt conditions did not work properly |
| 11051 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=415 |
| 11052 |
- bugfix: imuxsock aborted under some conditions |
| 11053 |
regression from ratelimiting enhancements |
| 11054 |
- bugfix: build problems on Solaris |
| 11055 |
Thanks to Martin Carpenter for the patches. |
| 11056 |
--------------------------------------------------------------------------- |
| 11057 |
Version 7.3.9 [devel] 2013-03-27 |
| 11058 |
- support for signing logs added |
| 11059 |
- imudp: now supports user-selectable inputname |
| 11060 |
- omlibdbi: now supports transaction interface |
| 11061 |
if recent enough lbdbi is present |
| 11062 |
- imuxsock: add ability to NOT create/delete sockets during startup and |
| 11063 |
shutdown |
| 11064 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=259 |
| 11065 |
- imfile: errors persisting state file are now reported |
| 11066 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=292 |
| 11067 |
- imfile: now detects file change when rsyslog was inactive |
| 11068 |
Previously, this case could not be detected, so if a file was overwritten |
| 11069 |
or rotated away while rsyslog was stopped, some data was missing. This |
| 11070 |
is now detected and the new file being forwarded right from the |
| 11071 |
beginning. |
| 11072 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=228 |
| 11073 |
- updated systemd files to match current systemd source |
| 11074 |
- bugfix: imudp scheduling parameters did affect main thread, not imudp |
| 11075 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=409 |
| 11076 |
- bugfix: build problem on platforms without GLOB_NOMAGIC |
| 11077 |
- bugfix: build problems on non-Linux platforms |
| 11078 |
- bugfix: stdout/stderr were not closed on forking |
| 11079 |
but were closed when running in the foreground - this was just reversed |
| 11080 |
of what it should be. This is a regression of a recent change. |
| 11081 |
--------------------------------------------------------------------------- |
| 11082 |
Version 7.3.8 [devel] 2013-03-18 |
| 11083 |
- imrelp: now supports listening to IPv4/v6 only instead of always both |
| 11084 |
build now requires librelp 1.0.2 |
| 11085 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=378 |
| 11086 |
- bugfix: mmanon did not build on some platforms (e.g. Ubuntu) |
| 11087 |
- bugfix: segfault in expression optimizer |
| 11088 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=423 |
| 11089 |
- bugfix: imuxsock was missing SysSock.ParseTrusted module parameter |
| 11090 |
To use that functionality, legacy rsyslog.conf syntax had to be used. |
| 11091 |
Also, the doc was missing information on the "ParseTrusted" set of |
| 11092 |
config directives. |
| 11093 |
- bugfix: include files got included in the wrong order |
| 11094 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=411 |
| 11095 |
This happens if an $IncludeConfig directive was done on multiple |
| 11096 |
files (e.g. the distro default of $IncludeConfig /etc/rsyslog.d/*.conf). |
| 11097 |
In that case, the order of include file processing is reversed, which |
| 11098 |
could lead to all sorts of problems. |
| 11099 |
Thanks to Nathan Stratton Treadway for his great analysis of the problem, |
| 11100 |
which made bug fixing really easy. |
| 11101 |
--------------------------------------------------------------------------- |
| 11102 |
Version 7.3.7 [devel] 2013-03-12 |
| 11103 |
- add support for anonymizing IPv4 addresses |
| 11104 |
- add support for writing to the Linux Journal (omjournal) |
| 11105 |
- imuxsock: add capability to ignore messages from ourselves |
| 11106 |
This helps prevent message routing loops, and is vital to have |
| 11107 |
if omjournal is used together with traditional syslog. |
| 11108 |
- field() function now supports a string as field delimiter |
| 11109 |
- added ability to configure debug system via rsyslog.conf |
| 11110 |
- bugfix: imuxsock segfault when system log socket was used |
| 11111 |
- bugfix: mmjsonparse segfault if new-style config was used |
| 11112 |
- bugfix: script == comparison did not work properly on JSON objects |
| 11113 |
- bugfix: field() function did never return "***FIELD NOT FOUND***" |
| 11114 |
instead it returned "***ERROR in field() FUNCTION***" in that case |
| 11115 |
--------------------------------------------------------------------------- |
| 11116 |
Version 7.3.6 [devel] 2013-01-28 |
| 11117 |
- greatly improved speed of large-array [N]EQ RainerScript comparisons |
| 11118 |
Thanks to David Lang for a related discussion that inspired the idea |
| 11119 |
to do this with a much simpler (yet sufficient) approach than originally |
| 11120 |
planned for. |
| 11121 |
- greatly improved speed of DNS cache for large cache sizes |
| 11122 |
- general performance improvements |
| 11123 |
- omfile: added stats counters for dynafile caches |
| 11124 |
- omfile: improved async writing, finally enabled full async write |
| 11125 |
also fixed a couple of smaller issues along that way |
| 11126 |
- impstats: added ability to write stats records to local file |
| 11127 |
and avoid going through the syslog log stream. syslog logging can now |
| 11128 |
also be turned off (see doc for details). |
| 11129 |
- bugfix: imklog issued wrong facility in error messages |
| 11130 |
...what could lead to problems in other parts of the code |
| 11131 |
- fix compile problem in imklog |
| 11132 |
- added capability to output thread-id-to-function debug info |
| 11133 |
This is a useful debug aid, but nothing of concern for regular users. |
| 11134 |
--------------------------------------------------------------------------- |
| 11135 |
Version 7.3.5 [devel] 2012-12-19 |
| 11136 |
- ommysql: addded batching/transaction support |
| 11137 |
- enhanced script optimizer to optimize common PRI-based comparisons |
| 11138 |
These constructs are especially used in SUSE default config files, |
| 11139 |
but also by many users (as they are more readable than the equivalent |
| 11140 |
PRI-based filter). |
| 11141 |
- omudpspoof: add support for new config system |
| 11142 |
- omudpspoof: add support for packets larger than 1472 bytes |
| 11143 |
On Ethernet, they need to be transmitted in multiple fragments. While |
| 11144 |
it is known that fragmentation can cause issues, it is the best choice |
| 11145 |
to be made in that case. Also improved debug output. |
| 11146 |
- bugfix: omudpspoof failed depending on the execution environment |
| 11147 |
The v7 engine closes fds, and closed some of libnet's fds as well, what |
| 11148 |
lead to problems (unfortunately, at least some libnet versions do not |
| 11149 |
report a proper error state but still "success"...). The order of libnet |
| 11150 |
calls has been adjusted to by in sync with what the core engine does. |
| 11151 |
- bugfix: segfault on imuxsock startup if system log socket is used |
| 11152 |
and no ratelimiting supported. Happens only during initial config |
| 11153 |
read phase, once this is over, everything works stable. |
| 11154 |
- bugfix: mmnormalize build problems |
| 11155 |
- bugfix: mmnormalize could abort rsyslog if config parameter was in error |
| 11156 |
- bugfix: no error message for invalid string template parameters |
| 11157 |
rather a malformed template was generated, and error information emitted |
| 11158 |
at runtime. However, this could be quite confusing. Note that with this |
| 11159 |
"bugfix" user experience changes: formerly, rsyslog and the affected |
| 11160 |
actions properly started up, but the actions did not produce proper |
| 11161 |
data. Now, there are startup error messages and the actions are NOT |
| 11162 |
executed (due to missing template due to template error). |
| 11163 |
- bugfix[minor]: invalid error code when mmnormalize could not access |
| 11164 |
rulebase |
| 11165 |
- bugfix(kind of): script optimizer did not work for complex boolean |
| 11166 |
expressions |
| 11167 |
- doc bugfix: corrections and improvements in mmnormalize html doc page |
| 11168 |
- bugfix: some message properties could be garbled due to race condition |
| 11169 |
This happened only on very high volume systems, if the same message was |
| 11170 |
being processed by two different actions. This was a regression caused |
| 11171 |
by the new config processor, which did no longer properly enable msg |
| 11172 |
locking in multithreaded cases. The bugfix is actually a refactoring of |
| 11173 |
the msg locking code - we no longer do unlocked operations, as the use |
| 11174 |
case for it has mostly gone away. It is potentially possible only at |
| 11175 |
very low-end systems, and there the small additional overhead of doing |
| 11176 |
the locking does not really hurt. Instead, the removal of that |
| 11177 |
capability can actually slightly improve performance in common cases, |
| 11178 |
as the code path is smaller and requires slightly less memory writes. |
| 11179 |
That probably outperforms the extra locking overhead (which in the |
| 11180 |
low-end case always happens in user space, without need for kernel |
| 11181 |
support as we can always directly acquire the lock - there is no |
| 11182 |
contention at all). |
| 11183 |
- build system cleanup (thanks to Michael Biebl for this!) |
| 11184 |
- bugfix: omelasticsearch did not properly compile on some platforms |
| 11185 |
due to missing libmath. Thanks to Michael Biebl for the fix |
| 11186 |
--------------------------------------------------------------------------- |
| 11187 |
Version 7.3.4 [devel] 2012-11-23 |
| 11188 |
- further (and rather drastically) improved disk queue performance |
| 11189 |
we now save one third of the IO calls |
| 11190 |
- imklog: added ParseKernelTimestamp parameter (import from 5.10.2) |
| 11191 |
Thanks to Marius Tomaschewski for the patch. |
| 11192 |
- imklog: added KeepKernelTimestamp parameter (import from 5.10.2) |
| 11193 |
Thanks to Marius Tomaschewski for the patch. |
| 11194 |
- bugfix: improper handling of backslash in string-type template()s |
| 11195 |
- bugfix: leading quote (") in string-type template() lead to tight loop |
| 11196 |
on startup |
| 11197 |
- bugfix: no error msg on invalid field option in legacy/string template |
| 11198 |
- bugfix: imklog mistakenly took kernel timestamp subseconds as nanoseconds |
| 11199 |
... actually, they are microseconds. So the fractional part of the |
| 11200 |
timestamp was not properly formatted. (import from 5.10.2) |
| 11201 |
Thanks to Marius Tomaschewski for the bug report and the patch idea. |
| 11202 |
--------------------------------------------------------------------------- |
| 11203 |
Version 7.3.3 [devel] 2012-11-07 |
| 11204 |
- improved disk queue performance |
| 11205 |
- bugfix: dynafile zip files could be corrupted |
| 11206 |
This could happen if a dynafile was destructed before the first write. |
| 11207 |
In practice, this could happen if few lines were written to a file and |
| 11208 |
it then became evicted from the dynafile cache. This would probably |
| 11209 |
look very random, because it depended on the timing in regard to |
| 11210 |
message volume and dynafile cache size. |
| 11211 |
--------------------------------------------------------------------------- |
| 11212 |
Version 7.3.2 [devel] 2012-10-30 |
| 11213 |
- mmnormalize: support for v6+ config interface added |
| 11214 |
- mmjsonparse: support for v6+ config interface added |
| 11215 |
--------------------------------------------------------------------------- |
| 11216 |
Version 7.3.2 [devel] 2012-10-30 |
| 11217 |
- totally reworked ratelimiting and "last message repeated n times" |
| 11218 |
all over rsyslog code. Each of the supported inputs now supports |
| 11219 |
linux-like ratelimiting (formerly only imuxsock did). Also, the |
| 11220 |
"last message repeated n times" is now processed at the input side |
| 11221 |
and no longer at the output side of rsyslog processing. This |
| 11222 |
provides the basis for new future additions as well as usually more |
| 11223 |
performance and a much simpler output part (which can be even further |
| 11224 |
refactored). |
| 11225 |
- imtcp: support for Linux-Type ratelimiting added |
| 11226 |
- imptcp: support for Linux-Type ratelimiting added |
| 11227 |
- imudp enhancements: |
| 11228 |
* support for input batching added (performance improvement) |
| 11229 |
* support for Linux-Type ratelimiting added |
| 11230 |
- permited action-like statements (stop, call, ...) in action lists |
| 11231 |
- bugfix: segfault on startup when modules using MSG_PASSING mode are used |
| 11232 |
- omelasticsearch: support for writing data errors to local file added |
| 11233 |
- omelasticsearch: fix check for bulk processing status response |
| 11234 |
--------------------------------------------------------------------------- |
| 11235 |
Version 7.3.1 [devel] 2012-10-19 |
| 11236 |
- optimized template processing performance, especially for $NOW family |
| 11237 |
of properties |
| 11238 |
- change lumberjack cookie to "@cee:" from "@cee: " |
| 11239 |
CEE originally specified the cookie with SP, whereas other lumberjack |
| 11240 |
tools used it without space. In order to keep interop with lumberjack, |
| 11241 |
we now use the cookie without space as well. I hope this can be changed |
| 11242 |
in CEE as well when it is released at a later time. |
| 11243 |
Thanks to Miloslav Trmač for pointing this out and a similar v7 patch. |
| 11244 |
- bugfix: imuxsock and imklog truncated head of received message |
| 11245 |
This happened only under some circumstances. Thanks to Marius |
| 11246 |
Tomaschewski, Florian Piekert and Milan Bartos for their help in |
| 11247 |
solving this issue. |
| 11248 |
- bugfix: imuxsock did not properly honor $LocalHostIPIF |
| 11249 |
--------------------------------------------------------------------------- |
| 11250 |
Version 7.3.0 [devel] 2012-10-09 |
| 11251 |
- omlibdbi improvements, added |
| 11252 |
* support for config load phases & module() parameters |
| 11253 |
* support for default templates |
| 11254 |
* driverdirectory is now cleanly a global parameter, but can no longer |
| 11255 |
be specified as an action parameter. Note that in previous versions |
| 11256 |
this parameter was ignored in all but the first action definition |
| 11257 |
- improved omfile zip writer to increase compression |
| 11258 |
This was achieved by somewhat reducing the robustness of the zip archive. |
| 11259 |
This is controlled by the new action parameter "VeryReliableZip". |
| 11260 |
---------------------------------------------------------------------------- |
| 11261 |
Version 7.2.8 [v7-stable] 2013-0?-?? |
| 11262 |
- bugfix: potential segfault on startup when builtin module was specified |
| 11263 |
in module() statement. |
| 11264 |
Thanks to Marius Tomaschewski for reporting the bug. |
| 11265 |
- bugfix: segfault due to invalid dynafile cache handling |
| 11266 |
Accidentally, the old-style cache size parameter was used when the |
| 11267 |
dynafile cache was created in a RainerScript action. If the old-style |
| 11268 |
size was lower than the one actually set, this lead to misaddressing |
| 11269 |
when the size was overrun, and that could lead to all kinds of |
| 11270 |
"interesting things", often in segfaults. |
| 11271 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=440 |
| 11272 |
---------------------------------------------------------------------------- |
| 11273 |
Version 7.2.7 [v7-stable] 2013-04-17 |
| 11274 |
- rsyslogd startup information is now properly conveyed back to init |
| 11275 |
when privileges are being dropped |
| 11276 |
Actually, we have moved termination of the parent in front of the |
| 11277 |
priv drop. So it shall work now in all cases. See code comments in |
| 11278 |
commit for more details. |
| 11279 |
- If forking, the parent now waits for a maximum of 60 seconds for |
| 11280 |
termination by the child |
| 11281 |
- improved debugging support in forked (auto-backgrounding) mode |
| 11282 |
The rsyslog debug log file is now continued to be written across the |
| 11283 |
fork. |
| 11284 |
- updated systemd files to match current systemd source |
| 11285 |
- bugfix: failover/action suspend did not work correctly |
| 11286 |
This was experienced if the retry action took more than one second |
| 11287 |
to complete. For suspending, a cached timestamp was used, and if the |
| 11288 |
retry took longer, that timestamp was already in the past. As a |
| 11289 |
result, the action never was kept in suspended state, and as such |
| 11290 |
no failover happened. The suspend functionality now does no longer use |
| 11291 |
the cached timestamp (should not have any performance implication, as |
| 11292 |
action suspend occurs very infrequently). |
| 11293 |
- bugfix: nested if/prifilt conditions did not work properly |
| 11294 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=415 |
| 11295 |
- bugfix: script == comparison did not work properly on JSON objects |
| 11296 |
[backport from 7.3 branch] |
| 11297 |
- bugfix: imudp scheduling parameters did affect main thread, not imudp |
| 11298 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=409 |
| 11299 |
- bugfix: imuxsock rate-limiting could not be configured via legacy conf |
| 11300 |
Rate-limiting for the system socket could not be configured via legacy |
| 11301 |
configuration directives. However, the new-style RainerScript config |
| 11302 |
options worked. |
| 11303 |
Thanks to Milan Bartos for the patch. |
| 11304 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=390 |
| 11305 |
- bugfix: using group resolution could lead to endless loop |
| 11306 |
Thanks to Tomas Heinrich for the patch. |
| 11307 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=310 |
| 11308 |
- bugfix: $mmnormalizeuseramsg parameter was specified with wrong type |
| 11309 |
Thank to Renzhong Zhang for alerting us of the problem. |
| 11310 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=420 |
| 11311 |
- bugfix: RainerScript getenv() function caused segfault when var was |
| 11312 |
not found. |
| 11313 |
Thanks to Philippe Muller for the patch. |
| 11314 |
- bugfix: several issues in imkmsg |
| 11315 |
see bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=421#c8 |
| 11316 |
- bugfix: imuxsock was missing SysSock.ParseTrusted module parameter |
| 11317 |
To use that functionality, legacy rsyslog.conf syntax had to be used. |
| 11318 |
Also, the doc was missing information on the "ParseTrusted" set of |
| 11319 |
config directives. |
| 11320 |
- bugfix: parameter action.execOnlyWhenPreviousIsSuspended was accidentally |
| 11321 |
of integer-type. For obvious reasons, it needs to be boolean. Note |
| 11322 |
that this change can break existing configurations if they circumvented |
| 11323 |
the problem by using 0/1 values. |
| 11324 |
- doc bugfix: rsyslog.conf man page had invalid file format info |
| 11325 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=418 |
| 11326 |
---------------------------------------------------------------------------- |
| 11327 |
Version 7.2.6 [v7-stable] 2013-03-05 |
| 11328 |
- slightly improved config parser error messages when invalid escapes happen |
| 11329 |
- bugfix: include files got included in the wrong order |
| 11330 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=411 |
| 11331 |
This happens if an $IncludeConfig directive was done on multiple |
| 11332 |
files (e.g. the distro default of $IncludeConfig /etc/rsyslog.d/*.conf). |
| 11333 |
In that case, the order of include file processing is reversed, which |
| 11334 |
could lead to all sorts of problems. |
| 11335 |
Thanks to Nathan Stratton Treadway for his great analysis of the problem, |
| 11336 |
which made bug fixing really easy. |
| 11337 |
- bugfix: omelasticsearch failed when authentication data was provided |
| 11338 |
... at least in most cases it emitted an error message: |
| 11339 |
"snprintf failed when trying to build auth string" |
| 11340 |
Thanks to Joerg Heinemann for alerting us. |
| 11341 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=404 |
| 11342 |
- bugfix: some property-based filter were incorrectly parsed |
| 11343 |
This usually lead to a syntax error on startup and rsyslogd not actually |
| 11344 |
starting up. The problem was the regex, which did not care for double |
| 11345 |
quote characters to follow in the action part - unfortunately something |
| 11346 |
that can frequently happen with v6+ format. An example: |
| 11347 |
:programname, isequal, "as" {action(type="omfile" ...) } |
| 11348 |
Here, the part |
| 11349 |
:programname, isequal, "as" {action(type="omfile" |
| 11350 |
was treated as the property filter, and the rest as action part. |
| 11351 |
Obviously, this did not work out. Unfortunately, such situations usually |
| 11352 |
resulted in very hard to understand error messages. |
| 11353 |
---------------------------------------------------------------------------- |
| 11354 |
Version 7.2.5 [v7-stable] 2013-01-08 |
| 11355 |
- build system cleanup (thanks to Michael Biebl for this!) |
| 11356 |
- bugfix: omelasticsearch did not properly compile on some platforms |
| 11357 |
due to missing libmath. Thanks to Michael Biebl for the fix |
| 11358 |
- bugfix: invalid DST handling under Solaris |
| 11359 |
Thanks to Scott Severtson for the patch. |
| 11360 |
- bugfix: on termination, actions were incorrectly called |
| 11361 |
The problem was that incomplete fiter evaluation was done *during the |
| 11362 |
shutdown phase*. This affected only the LAST batches being processed. No |
| 11363 |
problem existed during the regular run. Could usually only happen on |
| 11364 |
very busy systems, which were still busy during shutdown. |
| 11365 |
- bugfix: very large memory consumption (and probably out of memory) when |
| 11366 |
FromPos was specified in template, but ToPos not. |
| 11367 |
Thanks to Radu Gheorghe for alerting us of this bug. |
| 11368 |
- bugfix: timeval2syslogTime cause problems on some platforms |
| 11369 |
due to invalid assumption on structure data types. |
| 11370 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=394 |
| 11371 |
Thanks to David Hill for the patch [under ASL2.0 as per email conversation |
| 11372 |
2013-01-03]. |
| 11373 |
- bugfix: compile errors in im3195 |
| 11374 |
Thanks to Martin Körper for the patch |
| 11375 |
- bugfix: doGetFileCreateMode() had invalid validity check ;) |
| 11376 |
Thanks to Chandler Latour for the patch. |
| 11377 |
- bugfix: mmjsonparse erroneously returned action error when no CEE cookie |
| 11378 |
was present. |
| 11379 |
---------------------------------------------------------------------------- |
| 11380 |
Version 7.2.4 [v7-stable] 2012-12-07 |
| 11381 |
- enhance: permit RFC3339 timestamp in local log socket messages |
| 11382 |
Thanks to Sebastien Ponce for the patch. |
| 11383 |
- imklog: added ParseKernelTimestamp parameter (import from 5.10.2) |
| 11384 |
Thanks to Marius Tomaschewski for the patch. |
| 11385 |
- fix missing functionality: ruleset(){} could not specify ruleset queue |
| 11386 |
The "queue.xxx" parameter set was not supported, and legacy ruleset |
| 11387 |
config statements did not work (by intention). The fix introduces the |
| 11388 |
"queue.xxx" parameter set. It has some regression potential, but only |
| 11389 |
for the new functionality. Note that using that interface it is possible |
| 11390 |
to specify duplicate queue file names, which will cause trouble. This |
| 11391 |
will be solved in v7.3, because there is a too-large regression |
| 11392 |
potential for the v7.2 stable branch. |
| 11393 |
- imklog: added KeepKernelTimestamp parameter (import from 5.10.2) |
| 11394 |
Thanks to Marius Tomaschewski for the patch. |
| 11395 |
- bugfix: imklog mistakenly took kernel timestamp subseconds as nanoseconds |
| 11396 |
... actually, they are microseconds. So the fractional part of the |
| 11397 |
timestamp was not properly formatted. (import from 5.10.2) |
| 11398 |
Thanks to Marius Tomaschewski for the bug report and the patch idea. |
| 11399 |
- bugfix: supportoctetcountedframing parameter did not work in imptcp |
| 11400 |
- bugfix: modules not (yet) supporting new conf format were not properly |
| 11401 |
registered. This lead to a "module not found" error message instead of |
| 11402 |
the to-be-expected "module does not support new style" error message. |
| 11403 |
That invalid error message could be quite misleading and actually stop |
| 11404 |
people from addressing the real problem (aka "go nuts" ;)) |
| 11405 |
- bugfix: template "type" parameter is mandatory (but was not) |
| 11406 |
- bugfix: some message properties could be garbled due to race condition |
| 11407 |
This happened only on very high volume systems, if the same message was |
| 11408 |
being processed by two different actions. This was a regression caused |
| 11409 |
by the new config processor, which did no longer properly enable msg |
| 11410 |
locking in multithreaded cases. The bugfix is actually a refactoring of |
| 11411 |
the msg locking code - we no longer do unlocked operations, as the use |
| 11412 |
case for it has mostly gone away. It is potentially possible only at |
| 11413 |
very low-end systems, and there the small additional overhead of doing |
| 11414 |
the locking does not really hurt. Instead, the removal of that |
| 11415 |
capability can actually slightly improve performance in common cases, |
| 11416 |
as the code path is smaller and requires slightly less memory writes. |
| 11417 |
That probably outperforms the extra locking overhead (which in the |
| 11418 |
low-end case always happens in user space, without need for kernel |
| 11419 |
support as we can always directly acquire the lock - there is no |
| 11420 |
contention at all). |
| 11421 |
---------------------------------------------------------------------------- |
| 11422 |
Version 7.2.3 [v7-stable] 2012-10-21 |
| 11423 |
- regression fix: rsyslogd terminated when wild-card $IncludeConfig did not |
| 11424 |
find actual include files. For example, if this directive is present: |
| 11425 |
$IncludeConfig /etc/rsyslog.d/*.conf |
| 11426 |
and there are no *.conf files in /etc/rsyslog.d (but rsyslog.d exists), |
| 11427 |
rsyslogd will emit an error message and terminate. Previous (and expected) |
| 11428 |
behavior is that an empty file set is no problem. HOWEVER, if the |
| 11429 |
directory itself does not exist, this is flagged as an error and will |
| 11430 |
load to termination (no startup). |
| 11431 |
Unfortunately, this is often the case by default in many distros, so this |
| 11432 |
actually prevents rsyslog startup. |
| 11433 |
---------------------------------------------------------------------------- |
| 11434 |
Version 7.2.2 [v7-stable] 2012-10-16 |
| 11435 |
- doc improvements |
| 11436 |
- enabled to build without libuuid, at loss of uuid functionality |
| 11437 |
this enables smoother builds on older systems that do not support |
| 11438 |
libuuid. Loss of functionality should usually not matter too much as |
| 11439 |
uuid support has only recently been added and is very seldom used. |
| 11440 |
- bugfix: omfwd did not properly support "template" parameter |
| 11441 |
- bugfix: potential segfault when re_match() function was used |
| 11442 |
Thanks to oxpa for the patch. |
| 11443 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=371 |
| 11444 |
- bugfix: potential abort of imtcp on rsyslogd shutdown |
| 11445 |
- bugfix: imzmq3 segfault with PULL subscription |
| 11446 |
Thanks to Martin Nilsson for the patch. |
| 11447 |
- bugfix: improper handling of backslash in string-type template()s |
| 11448 |
- bugfix: leading quote (") in string-type template() lead to tight loop |
| 11449 |
on startup |
| 11450 |
- bugfix: no error msg on invalid field option in legacy/string template |
| 11451 |
- bugfix: potential segfault due to invalid param handling in comparisons |
| 11452 |
This could happen in RainerScript comparisons (like contains); in some |
| 11453 |
cases an uninitialized variable was accessed, which could lead to an |
| 11454 |
invalid free and in turn to a segfault. |
| 11455 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=372 |
| 11456 |
Thanks to Georgi Georgiev for reporting this bug and his great help |
| 11457 |
in solving it. |
| 11458 |
- bugfix: no error msg on unreadable $IncludeConfig path |
| 11459 |
- bugfix: $IncludeConfig did not correctly process directories |
| 11460 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=376 |
| 11461 |
The testbench was also enhanced to check for these cases. |
| 11462 |
Thanks to Georgi Georgiev for the bug report. |
| 11463 |
- bugfix: make rsyslog compile on kfreebsd again |
| 11464 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=380 |
| 11465 |
Thanks to Guillem Jover for the patch. |
| 11466 |
- bugfix: garbled message if field name was used with jsonf property option |
| 11467 |
The length for the field name was invalidly computed, resulting in either |
| 11468 |
truncated field names or including extra random data. If the random data |
| 11469 |
contained NULs, the rest of the message became unreadable. |
| 11470 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=374 |
| 11471 |
- bugfix: potential segfault at startup with property-based filter |
| 11472 |
If the property name was followed by a space before the comma, rsyslogd |
| 11473 |
aborted on startup. Note that no segfault could happen if the initial |
| 11474 |
startup went well (this was a problem with the config parser). |
| 11475 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=381 |
| 11476 |
- bugfix: imfile discarded some file parts |
| 11477 |
File lines that were incomplete (LF missing) *at the time imfile polled |
| 11478 |
the file* were partially discarded. That part of the line that was read |
| 11479 |
without the LF was discarded, and the rest of the line was submitted in |
| 11480 |
the next polling cycle. This is now changed so that the partial content |
| 11481 |
is saved until the complete line is read. Note that the patch affects |
| 11482 |
only read mode 0. |
| 11483 |
Thanks to Milan Bartos for providing the base idea for the solution. |
| 11484 |
---------------------------------------------------------------------------- |
| 11485 |
Version 7.2.1 [v7-stable] 2012-10-29 |
| 11486 |
- bugfix: ruleset()-object did only support a single statement |
| 11487 |
- added -D rsyslogd option to enable config parser debug mode |
| 11488 |
- improved syntax error messages by outputting the error token |
| 11489 |
- the rsyslog core now suspends actions after 10 failures in a row |
| 11490 |
This was former the case after 1,000 failures and could cause rsyslog |
| 11491 |
to be spammed/resources misused. See the v6 compatibility doc for more |
| 11492 |
details. |
| 11493 |
- ommongodb rate-limits error messages to prevent spamming the syslog |
| 11494 |
closes (for v7.2): http://bugzilla.adiscon.com/show_bug.cgi?id=366 |
| 11495 |
---------------------------------------------------------------------------- |
| 11496 |
Version 7.2.0 [v7-stable] 2012-10-22 |
| 11497 |
This starts a new stable branch based on 7.1.12 plus the following changes: |
| 11498 |
- bugfix: imuxsock did not properly honor $LocalHostIPIF |
| 11499 |
- omruleset/omdiscard do no longer issue "deprecated" warnings, as 7.1 |
| 11500 |
grammar does not permit to use the replacements under all circumstances |
| 11501 |
---------------------------------------------------------------------------- |
| 11502 |
Version 7.1.12 [beta] 2012-10-18 |
| 11503 |
- minor updates to better support newer systemd developments |
| 11504 |
Thanks to Michael Biebl for the patches. |
| 11505 |
- build system cleanup |
| 11506 |
Thanks to Michael Biebl for the patch series. |
| 11507 |
- cleanup: removed remains of -c option (compatibility mode) |
| 11508 |
both from code & doc and emitted warning message if still used |
| 11509 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=361 |
| 11510 |
Thanks to Michael Biebl for reporting & suggestions |
| 11511 |
- bugfix: imklog truncated head of received message |
| 11512 |
This happened only under some circumstances. Thanks to Marius |
| 11513 |
Tomaschewski and Florian Piekert for their help in solving this issue. |
| 11514 |
---------------------------------------------------------------------------- |
| 11515 |
Version 7.1.11 [beta] 2012-10-16 |
| 11516 |
- bugfix: imuxsock truncated head of received message |
| 11517 |
This happened only under some circumstances. Thanks to Marius |
| 11518 |
Tomaschewski, Florian Piekert and Milan Bartos for their help in |
| 11519 |
solving this issue. |
| 11520 |
- bugfix: do not crash if set statement is used with date field |
| 11521 |
Thanks to Miloslav Trmač for the patch. |
| 11522 |
- change lumberjack cookie to "@cee:" from "@cee: " |
| 11523 |
CEE originally specified the cookie with SP, whereas other lumberjack |
| 11524 |
tools used it without space. In order to keep interop with lumberjack, |
| 11525 |
we now use the cookie without space as well. I hope this can be changed |
| 11526 |
in CEE as well when it is released at a later time. |
| 11527 |
Thanks to Miloslav Trmač for pointing this out and a similar v7 patch. |
| 11528 |
- added deprecated note to omruleset (plus clue to use "call") |
| 11529 |
- added deprecated note to discard action (plus clue to use "stop") |
| 11530 |
--------------------------------------------------------------------------- |
| 11531 |
Version 7.1.10 [beta] 2012-10-11 |
| 11532 |
- bugfix: m4 directory was not present in release tarball |
| 11533 |
- bugfix: small memory leak with string-type templates |
| 11534 |
- bugfix: small memory leak when template was specified in omfile |
| 11535 |
- bugfix: some config processing warning messages were treated as errors |
| 11536 |
- bugfix: small memory leak when processing action() statements |
| 11537 |
- bugfix: unknown action() parameters were not reported |
| 11538 |
--------------------------------------------------------------------------- |
| 11539 |
Version 7.1.9 [beta] 2012-10-09 |
| 11540 |
- bugfix: comments inside objects (e.g. action()) were not properly handled |
| 11541 |
- bugfix: in (non)equal comparisons the position of arrays influenced result |
| 11542 |
This behavior is OK for "contains"-type of comparisons (which have quite |
| 11543 |
different semantics), but not for == and <>, which shall be commutative. |
| 11544 |
This has been fixed now, so there is no difference any longer if the |
| 11545 |
constant string array is the left or right hand operand. We solved this |
| 11546 |
via the optimizer, as it keeps the actual script execution code small. |
| 11547 |
--------------------------------------------------------------------------- |
| 11548 |
Version 7.1.8 [beta] 2012-10-02 |
| 11549 |
- bugfix: ruleset(){} directive erroneously changed default ruleset |
| 11550 |
much like the $ruleset legacy conf statement. This potentially lead |
| 11551 |
to statements being assigned to the wrong ruleset. |
| 11552 |
- improved module doc |
| 11553 |
- added "parser" parameter to ruleset(), so that parser chain can be |
| 11554 |
configured |
| 11555 |
- implemented "continue" RainerScript statement |
| 11556 |
--------------------------------------------------------------------------- |
| 11557 |
Version 7.1.7 [devel] 2012-10-01 |
| 11558 |
- implemented RainerScript "call" statement |
| 11559 |
- implemented RainerScript array-based string comparison operations |
| 11560 |
- implemented imtcp "permittedPeers" module-global parameter |
| 11561 |
- imudp: support for specifying multiple ports via array added |
| 11562 |
--------------------------------------------------------------------------- |
| 11563 |
Version 7.1.6 [devel] 2012-09-28 |
| 11564 |
- implemented RainerScript input() statement, including support for it |
| 11565 |
in major input plugins |
| 11566 |
- implemented RainerScript ruleset() statement |
| 11567 |
--------------------------------------------------------------------------- |
| 11568 |
Version 7.1.5 [devel] 2012-09-25 |
| 11569 |
- implemented RainerScript prifield() function |
| 11570 |
- implemented RainerScript field() function |
| 11571 |
- added new module imkmsg to process structured kernel log |
| 11572 |
Thanks to Milan Bartos for contributing this module |
| 11573 |
- implemented basic RainerScript optimizer, which will speed up script |
| 11574 |
operations |
| 11575 |
- bugfix: invalid free if function re_match() was incorrectly used |
| 11576 |
if the config file parser detected that param 2 was not constant, some |
| 11577 |
data fields were not initialized. The destructor did not care about that. |
| 11578 |
This bug happened only if rsyslog startup was unclean. |
| 11579 |
--------------------------------------------------------------------------- |
| 11580 |
Version 7.1.4 [devel] 2012-09-19 |
| 11581 |
- implemented ability for CEE-based properties to be stored in disk queues |
| 11582 |
- implemented string concatenation in expressions via &-operator |
| 11583 |
- implemented json subtree copy in variable assignment |
| 11584 |
- implemented full JSON support for variable manipulation |
| 11585 |
- introduced "subtree"-type templates |
| 11586 |
- bugfix: omfile action did not respect "template" parameter |
| 11587 |
... and used default template in all cases |
| 11588 |
- bugfix: MsgDup() did not copy CEE structure |
| 11589 |
This function was called at various places, most importantly during |
| 11590 |
"last messages repeated n times" processing and omruleset. If CEE(JSON) |
| 11591 |
data was present, it was lost as part of the copy process. |
| 11592 |
- bugfix: debug output indicated improper queue type |
| 11593 |
--------------------------------------------------------------------------- |
| 11594 |
Version 7.1.3 [devel] 2012-09-17 |
| 11595 |
- introduced "set" and "unset" config statements |
| 11596 |
- bugfix: missing support for escape sequences in RainerScript |
| 11597 |
only \' was supported. Now the usual set is supported. Note that v5 |
| 11598 |
used \x as escape where x was any character (e.g. "\n" meant "n" and NOT |
| 11599 |
LF). This also means there is some incompatibility to v5 for well-know |
| 11600 |
sequences. Better break it now than later. |
| 11601 |
- bugfix: invalid property name in property-filter could cause abort |
| 11602 |
if action chaining (& operator) was used |
| 11603 |
http://bugzilla.adiscon.com/show_bug.cgi?id=355 |
| 11604 |
Thanks to [email protected] for the bug report |
| 11605 |
--------------------------------------------------------------------------- |
| 11606 |
Version 7.1.2 [devel] 2012-09-12 |
| 11607 |
- bugfix: messages were duplicated, sometimes massively |
| 11608 |
regression from new code in 7.1.1 and reason for early release |
| 11609 |
- bugfix: remove invalid socket option call from imuxsock |
| 11610 |
Thanks to Cristian Ionescu-Idbohrn and Jonny Törnbom |
| 11611 |
- bugfix: abort when invalid property name was configured |
| 11612 |
in property-based filter |
| 11613 |
- bugfix: multiple rulesets did no longer work correctly (7.1.1 regression) |
| 11614 |
--------------------------------------------------------------------------- |
| 11615 |
Version 7.1.1 [devel] 2012-09-11 |
| 11616 |
- MAJOR NEW FEATURE: ruleengine now fully supports nesting |
| 11617 |
including if ... then ... else ... constructs. This is a big change |
| 11618 |
and it obviously has a lot of bug potential. |
| 11619 |
- BSD-style (filter) blocks are no longer supported |
| 11620 |
see https://www.rsyslog.com/g/BSD for details and solution |
| 11621 |
- imuxsock now stores trusted properties by default in the CEE root |
| 11622 |
This was done in order to keep compatible with other implementations of |
| 11623 |
the lumberjack schema |
| 11624 |
Thanks to Miloslav Trmač for pointing to this. |
| 11625 |
- bugfix: string-generating templates caused abort if CEE field could not |
| 11626 |
be found |
| 11627 |
--------------------------------------------------------------------------- |
| 11628 |
Version 7.1.0 [devel] 2012-09-06 |
| 11629 |
- added support for hierarchical properties (CEE/lumberjack) |
| 11630 |
- added pure JSON output plugin parameter passing mode |
| 11631 |
- ommongodb now supports templates |
| 11632 |
- bugfix: imtcp could abort on exit due to invalid free() |
| 11633 |
- imported bugfixes from 6.4.1 |
| 11634 |
--------------------------------------------------------------------------- |
| 11635 |
Version 6.6.1 [v6-stable] 2012-10-?? |
| 11636 |
- bugfix: build problems on some platforms |
| 11637 |
- bugfix: misaddressing of $mmnormalizeuserawmsg parameter |
| 11638 |
On many platforms, this has no effect at all. At some, it may cause |
| 11639 |
a segfault. The problem occurs only during config phase, no segfault |
| 11640 |
happens when rsyslog has fully started. |
| 11641 |
- fix API "glitch" in some plugins |
| 11642 |
This did not affect users, but could have caused trouble in the future |
| 11643 |
for developers. |
| 11644 |
- bugfix: no error msg on invalid field option in legacy/string template |
| 11645 |
- bugfix: no error msg on unreadable $IncludeConfig path |
| 11646 |
- bugfix: $IncludeConfig did not correctly process directories |
| 11647 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=376 |
| 11648 |
The testbench was also enhanced to check for these cases. |
| 11649 |
Thanks to Georgi Georgiev for the bug report. |
| 11650 |
- bugfix: spurios error messages from imuxsock about (non-error) EAGAIN |
| 11651 |
Thanks to Marius Tomaschewski for the patch. |
| 11652 |
- imklog: added $klogParseKernelTimestamp option |
| 11653 |
When enabled, kernel message [timestamp] is converted for message time. |
| 11654 |
Default is to use receive time as in 5.8.x and before, because the clock |
| 11655 |
used to create the timestamp is not supposed to be as accurate as the |
| 11656 |
monotonic clock (depends on hardware and kernel) resulting in differences |
| 11657 |
between kernel and system messages which occurred at same time. |
| 11658 |
Thanks to Marius Tomaschewski for the patch. |
| 11659 |
- imklog: added $klogKeepKernelTimestamp option |
| 11660 |
When enabled, the kernel [timestamp] remains at begin of |
| 11661 |
each message, even it is used for the message time too. |
| 11662 |
Thanks to Marius Tomaschewski for the patch. |
| 11663 |
- bugfix: imklog mistakenly took kernel timestamp subseconds as nanoseconds |
| 11664 |
... actually, they are microseconds. So the fractional part of the |
| 11665 |
timestamp was not properly formatted. |
| 11666 |
Thanks to Marius Tomaschewski for the bug report and the patch idea. |
| 11667 |
- bugfix: hostname set in rsyslog.conf was not picked up until HUP |
| 11668 |
which could also mean "never" or "not for a very long time". |
| 11669 |
Thanks to oxpa for providing analysis and a patch |
| 11670 |
- bugfix: some message properties could be garbled due to race condition |
| 11671 |
This happened only on very high volume systems, if the same message was |
| 11672 |
being processed by two different actions. This was a regression caused |
| 11673 |
by the new config processor, which did no longer properly enable msg |
| 11674 |
locking in multithreaded cases. The bugfix is actually a refactoring of |
| 11675 |
the msg locking code - we no longer do unlocked operations, as the use |
| 11676 |
case for it has mostly gone away. It is potentially possible only at |
| 11677 |
very low-end systems, and there the small additional overhead of doing |
| 11678 |
the locking does not really hurt. Instead, the removal of that |
| 11679 |
capability can actually slightly improve performance in common cases, |
| 11680 |
as the code path is smaller and requires slightly less memory writes. |
| 11681 |
That probably outperforms the extra locking overhead (which in the |
| 11682 |
low-end case always happens in user space, without need for kernel |
| 11683 |
support as we can always directly acquire the lock - there is no |
| 11684 |
contention at all). |
| 11685 |
- bugfix: invalid DST handling under Solaris |
| 11686 |
Thanks to Scott Severtson for the patch. |
| 11687 |
--------------------------------------------------------------------------- |
| 11688 |
Version 6.6.0 [v6-stable] 2012-10-22 |
| 11689 |
This starts a new stable branch, based on the 6.5.x series, plus: |
| 11690 |
- bugfix: imuxsock did not properly honor $LocalHostIPIF |
| 11691 |
--------------------------------------------------------------------------- |
| 11692 |
Version 6.5.1 [beta] 2012-10-11 |
| 11693 |
- added tool "logctl" to handle lumberjack logs in MongoDB |
| 11694 |
- imfile ported to new v6 config interface |
| 11695 |
- imfile now supports config parameter for maximum number of submits |
| 11696 |
which is a fine-tuning parameter in regard to input batching |
| 11697 |
- added pure JSON output plugin parameter passing mode |
| 11698 |
- ommongodb now supports templates |
| 11699 |
- bugfix: imtcp could abort on exit due to invalid free() |
| 11700 |
- bugfix: remove invalid socket option call from imuxsock |
| 11701 |
Thanks to Cristian Ionescu-Idbohrn and Jonny Törnbom |
| 11702 |
- added pure JSON output plugin parameter passing mode |
| 11703 |
- ommongodb now supports templates |
| 11704 |
- bugfix: imtcp could abort on exit due to invalid free() |
| 11705 |
- bugfix: missing support for escape sequences in RainerScript |
| 11706 |
only \' was supported. Now the usual set is supported. Note that v5 |
| 11707 |
used \x as escape where x was any character (e.g. "\n" meant "n" and NOT |
| 11708 |
LF). This also means there is some incompatibility to v5 for well-know |
| 11709 |
sequences. Better break it now than later. |
| 11710 |
- bugfix: small memory leaks in template() statements |
| 11711 |
these were one-time memory leaks during startup, so they did NOT grow |
| 11712 |
during runtime |
| 11713 |
- bugfix: config validation run did not always return correct return state |
| 11714 |
- bugfix: config errors did not always cause statement to fail |
| 11715 |
This could lead to startup with invalid parameters. |
| 11716 |
--------------------------------------------------------------------------- |
| 11717 |
Version 6.5.0 [devel] 2012-08-28 |
| 11718 |
- imrelp now supports non-cancel thread termination |
| 11719 |
(but now requires at least librelp 1.0.1) |
| 11720 |
- implemented freeCnf() module interface |
| 11721 |
This was actually not present in older versions, even though some modules |
| 11722 |
already used it. The implementation was now done, and not in 6.3/6.4 |
| 11723 |
because the resulting memory leak was ultra-slim and the new interface |
| 11724 |
handling has some potential to seriously break things. Not the kind of |
| 11725 |
thing you want to add in late beta state, if avoidable. |
| 11726 |
- added --enable-debugless configure option for very high demanding envs |
| 11727 |
This actually at compile time disables a lot of debug code, resulting |
| 11728 |
in some speedup (but serious loss of debugging capabilities) |
| 11729 |
- added new 0mq plugins (via czmq lib) |
| 11730 |
Thanks to David Kelly for contributing these modules |
| 11731 |
- bugfix: omhdfs did no longer compile |
| 11732 |
- bugfix: SystemLogSocketAnnotate did not work correctly |
| 11733 |
Thanks to Miloslav Trmač for the patch |
| 11734 |
- $SystemLogParseTrusted config file option |
| 11735 |
Thanks to Milan Bartos for the patch |
| 11736 |
- added template config directive |
| 11737 |
- added new uuid message property |
| 11738 |
Thanks to Jérôme Renard for the idea and patches. |
| 11739 |
Note: patches were released under ASL 2.0, see |
| 11740 |
http://bugzilla.adiscon.com/show_bug.cgi?id=353 |
| 11741 |
--------------------------------------------------------------------------- |
| 11742 |
Version 6.4.3 [V6-STABLE/NEVER RELEASED] 2012-??-?? |
| 11743 |
This version was never released as 6.6.0 came quickly enough. Note that |
| 11744 |
all these patches here are present in 6.6.0. |
| 11745 |
- cleanup: removed remains of -c option (compatibility mode) |
| 11746 |
both from code & doc and emitted warning message if still used |
| 11747 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=361 |
| 11748 |
Thanks to Michael Biebl for reporting & suggestions |
| 11749 |
- bugfix: imuxsock and imklog truncated head of received message |
| 11750 |
This happened only under some circumstances. Thanks to Marius |
| 11751 |
Tomaschewski, Florian Piekert and Milan Bartos for their help in |
| 11752 |
solving this issue. |
| 11753 |
- change lumberjack cookie to "@cee:" from "@cee: " |
| 11754 |
CEE originally specified the cookie with SP, whereas other lumberjack |
| 11755 |
tools used it without space. In order to keep interop with lumberjack, |
| 11756 |
we now use the cookie without space as well. I hope this can be changed |
| 11757 |
in CEE as well when it is released at a later time. |
| 11758 |
Thanks to Miloslav Trmač for pointing this out and a similar v7 patch. |
| 11759 |
- bugfix: comments inside objects (e.g. action()) were not properly handled |
| 11760 |
- bugfix: sysklogd-emulating standard template was no longer present in v6 |
| 11761 |
This was obviously lost during the transition to the new config format. |
| 11762 |
Thanks to Milan Bartos for alerting us and a patch! |
| 11763 |
- bugfix: some valid legacy PRI filters were flagged as erroneous |
| 11764 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=358 |
| 11765 |
This happened to filters of the style "local0,local1.*", where the |
| 11766 |
multiple facilities were comma-separated. |
| 11767 |
- bugfix: imuxsock did not properly honor $LocalHostIPIF |
| 11768 |
--------------------------------------------------------------------------- |
| 11769 |
Version 6.4.2 [V6-STABLE] 2012-09-20 |
| 11770 |
- bugfix: potential abort, if action queue could not be properly started |
| 11771 |
This most importantly could happen due to configuration errors. |
| 11772 |
- bugfix: remove invalid socket option call from imuxsock |
| 11773 |
Thanks to Cristian Ionescu-Idbohrn and Jonny Törnbom |
| 11774 |
- bugfix: missing support for escape sequences in RainerScript |
| 11775 |
only \' was supported. Now the usual set is supported. Note that v5 |
| 11776 |
used \x as escape where x was any character (e.g. "\n" meant "n" and NOT |
| 11777 |
LF). This also means there is some incompatibility to v5 for well-know |
| 11778 |
sequences. Better break it now than later. |
| 11779 |
- bugfix: config validation run did not always return correct return state |
| 11780 |
--------------------------------------------------------------------------- |
| 11781 |
Version 6.4.1 [V6-STABLE] 2012-09-06 |
| 11782 |
- bugfix: multiple main queues with same queue file name were not detected |
| 11783 |
This lead to queue file corruption. While the root cause is a config |
| 11784 |
error, it is a bug that this important and hard to find config error |
| 11785 |
was not detected by rsyslog. |
| 11786 |
- bugfix: "jsonf" property replacer option did generate invalid JSON |
| 11787 |
in JSON, we have "fieldname":"value", but the option emitted |
| 11788 |
"fieldname"="value". Interestingly, this was accepted by a couple |
| 11789 |
of sinks, most importantly elasticsearch. Now the correct format is |
| 11790 |
emitted, which causes a remote chance that some things that relied on |
| 11791 |
the wrong format will break. |
| 11792 |
Thanks to Miloslav Trmač for the patch |
| 11793 |
- change $!all-json did emit an empty (thus non-JSON) string if no libee |
| 11794 |
data was present. It now emits {} and thus valid JSON. There is a |
| 11795 |
small risk that this may break some things that relied on the previous |
| 11796 |
inconsistency. |
| 11797 |
Thanks to Miloslav Trmač for the patch |
| 11798 |
- bugfix: omusrmsg incorrect return state & config warning handling |
| 11799 |
During config file processing, Omusrmsg often incorrectly returned a |
| 11800 |
warning status, even when no warning was present (caused by |
| 11801 |
uninitialized variable). Also, the core handled warning messages |
| 11802 |
incorrectly, and treated them as errors. As a result, omusrmsg |
| 11803 |
(most often) could not properly be loaded. Note that this only |
| 11804 |
occurs with legacy config action syntax. This was a regression |
| 11805 |
caused by an incorrect merge in to the 6.3.x codebase. |
| 11806 |
Thanks to Stefano Mason for alerting us of this bug. |
| 11807 |
- bugfix: Fixed TCP CheckConnection handling in omfwd.c. Interface needed |
| 11808 |
to be changed in lower stream classes. Syslog TCP Sending is now resumed |
| 11809 |
properly. Unfixed, that lead to non-detection of downstate of remote |
| 11810 |
hosts. |
| 11811 |
--------------------------------------------------------------------------- |
| 11812 |
Version 6.4.0 [V6-STABLE] 2012-08-20 |
| 11813 |
- THIS IS THE FIRST VERSION OF THE 6.4.x STABLE BRANCH |
| 11814 |
It includes all enhancements made in 6.3.x plus what is written in the |
| 11815 |
ChangeLog below. |
| 11816 |
- omelasticsearch: support for parameters parent & dynparent added |
| 11817 |
- bugfix: imtcp aborted when more than 2 connections were used. |
| 11818 |
Incremented pthread stack size to 4MB for imtcp, imptcp and imttcp |
| 11819 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=342 |
| 11820 |
- bugfix: imptcp aborted when $InputPTCPServerBindRuleset was used |
| 11821 |
- bugfix: problem with cutting first 16 characters from message with |
| 11822 |
bAnnotate |
| 11823 |
Thanks to Milan Bartos for the patch. |
| 11824 |
--------------------------------------------------------------------------- |
| 11825 |
Version 6.3.12 [BETA] 2012-07-02 |
| 11826 |
- support for elasticsearch via omelasticsearch added |
| 11827 |
Note that this module has been tested quite well by a number of folks, |
| 11828 |
and this is why we merge in new functionality in a late beta stage. |
| 11829 |
Even if problems would exist, only users of omelasticsearch would |
| 11830 |
experience them, making it a pretty safe addition. |
| 11831 |
- bugfix: $ActionName was not properly honored |
| 11832 |
Thanks to Abby Edwards for alerting us |
| 11833 |
--------------------------------------------------------------------------- |
| 11834 |
Version 6.3.11 [BETA] 2012-06-18 |
| 11835 |
- bugfix: expression-based filters with AND/OR could segfault |
| 11836 |
due to a problem with boolean shortcut operations. From the user's |
| 11837 |
perspective, the segfault is almost non-deterministic (it occurs when |
| 11838 |
a shortcut is used). |
| 11839 |
Thanks to Lars Peterson for providing the initial bug report and his |
| 11840 |
support in solving it. |
| 11841 |
- bugfix: "last message repeated n times" message was missing hostname |
| 11842 |
Thanks to Zdenek Salvet for finding this bug and to Bodik for reporting |
| 11843 |
--------------------------------------------------------------------------- |
| 11844 |
Version 6.3.10 [BETA] 2012-06-04 |
| 11845 |
- bugfix: delayable source could block action queue, even if there was |
| 11846 |
a disk queue associated with it. The root cause of this problem was |
| 11847 |
that it makes no sense to delay messages once they arrive in the |
| 11848 |
action queue - the "input" that is being held in that case is the main |
| 11849 |
queue worker, what makes no sense. |
| 11850 |
Thanks to Marcin for alerting us on this problem and providing |
| 11851 |
instructions to reproduce it. |
| 11852 |
- bugfix: invalid free in imptcp could lead to abort during startup |
| 11853 |
- bugfix: if debug message could end up in log file when forking |
| 11854 |
if rsyslog was set to auto-background (thus fork, the default) and debug |
| 11855 |
mode to stdout was enabled, debug messages ended up in the first log file |
| 11856 |
opened. Currently, stdout logging is completely disabled in forking mode |
| 11857 |
(but writing to the debug log file is still possible). This is a change |
| 11858 |
in behavior, which is under review. If it causes problems to you, |
| 11859 |
please let us know. |
| 11860 |
Thanks to Tomas Heinrich for the patch. |
| 11861 |
- bugfix: --enable-smcustbindcdr configure directive did not work |
| 11862 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=330 |
| 11863 |
Thanks to Ultrabug for the patch. |
| 11864 |
- bugfix: made rsyslog compile when libestr ist not installed in /usr |
| 11865 |
Thanks to Miloslav Trmač for providing patches and suggestions |
| 11866 |
--------------------------------------------------------------------------- |
| 11867 |
Version 6.3.9 [BETA] 2012-05-22 |
| 11868 |
- bugfix: imtcp could cause hang during reception |
| 11869 |
this also applied to other users of core file tcpsrv.c, but imtcp was |
| 11870 |
by far the most prominent and widely-used, the rest rather exotic |
| 11871 |
(like imdiag) |
| 11872 |
- added capability to specify substrings for field extraction mode |
| 11873 |
- added the "jsonf" property replacer option (and fieldname) |
| 11874 |
- bugfix: omudpspoof did not work correctly if no spoof hostname was |
| 11875 |
configured |
| 11876 |
- bugfix: property replacer option "json" could lead to content loss |
| 11877 |
message was truncated if escaping was necessary |
| 11878 |
- bugfix: assigned ruleset was lost when using disk queues |
| 11879 |
This looked quite hard to diagnose for disk-assisted queues, as the |
| 11880 |
pure memory part worked well, but ruleset info was lost for messages |
| 11881 |
stored inside the disk queue. |
| 11882 |
- bugfix/imuxsock: solving abort if hostname was not set; configured |
| 11883 |
hostname was not used (both merge regressions) |
| 11884 |
-bugfix/omfile: template action parameter was not accepted |
| 11885 |
(and template name set to "??" if the parameter was used) |
| 11886 |
Thanks to Brian Knox for alerting us on this bug. |
| 11887 |
- bugfix: ommysql did not properly init/exit the mysql runtime library |
| 11888 |
this could lead to segfaults. Triggering condition: multiple action |
| 11889 |
instances using ommysql. Thanks to Tomas Heinrich for reporting this |
| 11890 |
problem and providing an initial patch (which my solution is based on, |
| 11891 |
I need to add more code to clean the mess up). |
| 11892 |
- bugfix: rsyslog did not terminate when delayable inputs were blocked |
| 11893 |
due to unavailable sources. Fixes: |
| 11894 |
http://bugzilla.adiscon.com/show_bug.cgi?id=299 |
| 11895 |
Thanks to Marcin M for bringing up this problem and Andre Lorbach |
| 11896 |
for helping to reproduce and fix it. |
| 11897 |
- added capability to specify substrings for field extraction mode |
| 11898 |
- bugfix: disk queue was not persisted on shutdown, regression of fix to |
| 11899 |
http://bugzilla.adiscon.com/show_bug.cgi?id=299 |
| 11900 |
The new code also handles the case of shutdown of blocking light and |
| 11901 |
full delayable sources somewhat smarter and permits, assuming sufficient |
| 11902 |
timeouts, to persist message up to the max queue capacity. Also some nits |
| 11903 |
in debug instrumentation have been fixed. |
| 11904 |
--------------------------------------------------------------------------- |
| 11905 |
Version 6.3.8 [DEVEL] 2012-04-16 |
| 11906 |
- added $PStatJSON directive to permit stats records in JSON format |
| 11907 |
- added "date-unixtimestamp" property replacer option to format as a |
| 11908 |
unix timestamp (seconds since epoch) |
| 11909 |
- added "json" property replacer option to support JSON encoding on a |
| 11910 |
per-property basis |
| 11911 |
- added omhiredis (contributed module) |
| 11912 |
- added mmjsonparse to support recognizing and parsing JSON enhanced syslog |
| 11913 |
messages |
| 11914 |
- upgraded more plugins to support the new v6 config format: |
| 11915 |
- ommysql |
| 11916 |
- omlibdbi |
| 11917 |
- omsnmp |
| 11918 |
- added configuration directives to customize queue light delay marks |
| 11919 |
$MainMsgQueueLightDelayMark, $ActionQueueLightDelayMark; both |
| 11920 |
specify number of messages starting at which a delay happens. |
| 11921 |
- added message property parsesuccess to indicate if the last run |
| 11922 |
higher-level parser could successfully parse the message or not |
| 11923 |
(see property replacer html doc for details) |
| 11924 |
- bugfix: abort during startup when rsyslog.conf v6+ format was used in |
| 11925 |
a certain way |
| 11926 |
- bugfix: property $!all-json made rsyslog abort if no normalized data |
| 11927 |
was available |
| 11928 |
- bugfix: memory leak in array passing output module mode |
| 11929 |
- added configuration directives to customize queue light delay marks |
| 11930 |
- permit size modifiers (k,m,g,...) in integer config parameters |
| 11931 |
Thanks to Jo Rhett for the suggestion. |
| 11932 |
- bugfix: hostname was not requeried on HUP |
| 11933 |
Thanks to Per Jessen for reporting this bug and Marius Tomaschewski for |
| 11934 |
his help in testing the fix. |
| 11935 |
- bugfix: imklog invalidly computed facility and severity |
| 11936 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=313 |
| 11937 |
- added configuration directive to disable octet-counted framing |
| 11938 |
for imtcp, directive is $InputTCPServerSupportOctetCountedFraming |
| 11939 |
for imptcp, directive is $InputPTCPServerSupportOctetCountedFraming |
| 11940 |
- added capability to use a local interface IP address as fromhost-ip for |
| 11941 |
locally originating messages. New directive $LocalHostIPIF |
| 11942 |
--------------------------------------------------------------------------- |
| 11943 |
Version 6.3.7 [DEVEL] 2012-02-02 |
| 11944 |
- imported refactored v5.9.6 imklog linux driver, now combined with BSD |
| 11945 |
driver |
| 11946 |
- removed imtemplate/omtemplate template modules, as this was waste of time |
| 11947 |
The actual input/output modules are better copy templates. Instead, the |
| 11948 |
now-removed modules cost time for maintenance AND often caused confusion |
| 11949 |
on what their role was. |
| 11950 |
- added a couple of new stats objects |
| 11951 |
- improved support for new v6 config system. The build-in output modules |
| 11952 |
now all support the new config language |
| 11953 |
- bugfix: facility local<x> was not correctly interpreted in legacy filters |
| 11954 |
Was only accepted if it was the first PRI in a multi-filter PRI. |
| 11955 |
Thanks to forum user Mark for bringing this to our attention. |
| 11956 |
- bugfix: potential abort after reading invalid X.509 certificate |
| 11957 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=290 |
| 11958 |
Thanks to Tomas Heinrich for the patch |
| 11959 |
- bugfix: legacy parsing of some filters did not work correctly |
| 11960 |
- bugfix: rsyslog aborted during startup if there is an error in loading |
| 11961 |
an action and legacy configuration mode is used |
| 11962 |
- bugfix: bsd klog driver did no longer compile |
| 11963 |
- relicensed larger parts of the code under Apache (ASL) 2.0 |
| 11964 |
--------------------------------------------------------------------------- |
| 11965 |
Version 6.3.6 [DEVEL] 2011-09-19 |
| 11966 |
- added $InputRELPServerBindRuleset directive to specify rulesets for RELP |
| 11967 |
- bugfix: config parser did not support properties with dashes in them |
| 11968 |
inside property-based filters. Thanks to Gerrit Seré for reporting this. |
| 11969 |
--------------------------------------------------------------------------- |
| 11970 |
Version 6.3.5 [DEVEL] (rgerhards/al), 2011-09-01 |
| 11971 |
- bugfix/security: off-by-two bug in legacy syslog parser, CVE-2011-3200 |
| 11972 |
- bugfix: mark message processing did not work correctly |
| 11973 |
- imudp&imtcp now report error if no listener at all was defined |
| 11974 |
Thanks to Marcin for suggesting this error message. |
| 11975 |
- bugfix: potential misaddressing in property replacer |
| 11976 |
--------------------------------------------------------------------------- |
| 11977 |
Version 6.3.4 [DEVEL] (rgerhards), 2011-08-02 |
| 11978 |
- added support for action() config object |
| 11979 |
* in rsyslog core engine |
| 11980 |
* in omfile |
| 11981 |
* in omusrmsg |
| 11982 |
- bugfix: omusrmsg format usr1,usr2 was no longer supported |
| 11983 |
- bugfix: misaddressing in config handler |
| 11984 |
In theory, can cause segfault, in practice this is extremely unlikely |
| 11985 |
Thanks to Marcin for alerting me. |
| 11986 |
--------------------------------------------------------------------------- |
| 11987 |
Version 6.3.3 [DEVEL] (rgerhards), 2011-07-13 |
| 11988 |
- rsyslog.conf format: now parsed by RainerScript parser |
| 11989 |
this provides the necessary base for future enhancements as well as some |
| 11990 |
minor immediate ones. For details see: |
| 11991 |
http://blog.gerhards.net/2011/07/rsyslog-633-config-format-improvements.html |
| 11992 |
- performance of script-based filters notably increased |
| 11993 |
- removed compatibility mode as we expect people have adjusted their |
| 11994 |
confs by now |
| 11995 |
- added support for the ":omfile:" syntax for actions |
| 11996 |
--------------------------------------------------------------------------- |
| 11997 |
Version 6.3.2 [DEVEL] (rgerhards), 2011-07-06 |
| 11998 |
- added support for the ":omusrmsg:" syntax in configuring user messages |
| 11999 |
- systemd support: set stdout/stderr to null - thx to Lennart for the patch |
| 12000 |
- added support for obtaining timestamp for kernel message from message |
| 12001 |
If the kernel time-stamps messages, time is now take from that |
| 12002 |
timestamp instead of the system time when the message was read. This |
| 12003 |
provides much better accuracy. Thanks to Lennart Poettering for |
| 12004 |
suggesting this feature and his help during implementation. |
| 12005 |
- added support for obtaining timestamp from system for imuxsock |
| 12006 |
This permits to read the time a message was submitted to the system |
| 12007 |
log socket. Most importantly, this is provided in microsecond resolution. |
| 12008 |
So we are able to obtain high precision timestampis even for messages |
| 12009 |
that were - as is usual - not formatted with them. This also simplifies |
| 12010 |
things in regard to local time calculation in chroot environments. |
| 12011 |
Many thanks to Lennart Poettering for suggesting this feature, |
| 12012 |
providing some guidance on implementing it and coordinating getting the |
| 12013 |
necessary support into the Linux kernel. |
| 12014 |
- bugfix: timestamp was incorrectly calculated for timezones with minute |
| 12015 |
offset |
| 12016 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=271 |
| 12017 |
- bugfix: memory leak in imtcp & subsystems under some circumstances |
| 12018 |
This leak is tied to error conditions which lead to incorrect cleanup |
| 12019 |
of some data structures. |
| 12020 |
--------------------------------------------------------------------------- |
| 12021 |
Version 6.3.1 [DEVEL] (rgerhards), 2011-06-07 |
| 12022 |
- added a first implementation of a DNS name cache |
| 12023 |
this still has a couple of weaknesses, like no expiration of entries, |
| 12024 |
suboptimal algorithms -- but it should perform much better than |
| 12025 |
what we had previously. Implementation will be improved based on |
| 12026 |
feedback during the next couple of releases |
| 12027 |
--------------------------------------------------------------------------- |
| 12028 |
Version 6.3.0 [DEVEL] (rgerhards), 2011-06-01 |
| 12029 |
- introduced new config system |
| 12030 |
http://blog.gerhards.net/2011/06/new-rsyslog-config-system-materializes.html |
| 12031 |
--------------------------------------------------------------------------- |
| 12032 |
Version 6.2.2 [v6-stable], 2012-06-13 |
| 12033 |
- build system improvements and spec file templates |
| 12034 |
Thanks to Abby Edwards for providing these enhancements |
| 12035 |
- bugfix: disk queue was not persisted on shutdown, regression of fix to |
| 12036 |
http://bugzilla.adiscon.com/show_bug.cgi?id=299 |
| 12037 |
The new code also handles the case of shutdown of blocking light and |
| 12038 |
full delayable sources somewhat smarter and permits, assuming sufficient |
| 12039 |
timeouts, to persist message up to the max queue capacity. Also some nits |
| 12040 |
in debug instrumentation have been fixed. |
| 12041 |
- bugfix: --enable-smcustbindcdr configure directive did not work |
| 12042 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=330 |
| 12043 |
Thanks to Ultrabug for the patch. |
| 12044 |
- add small delay (50ms) after sending shutdown message |
| 12045 |
There seem to be cases where the shutdown message is otherwise not |
| 12046 |
processed, not even on an idle system. Thanks to Marcin for |
| 12047 |
bringing this problem up. |
| 12048 |
- support for resolving huge groups |
| 12049 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=310 |
| 12050 |
Thanks to Alec Warner for the patch |
| 12051 |
- bugfix: potential hang due to mutex deadlock |
| 12052 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=316 |
| 12053 |
Thanks to Andreas Piesk for reporting&analyzing this bug as well as |
| 12054 |
providing patches and other help in resolving it. |
| 12055 |
- bugfix: property PROCID empty instead of proper nilvalue if not present |
| 12056 |
If it is not present, it must have the nilvalue "-" as of RFC5424 |
| 12057 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=332 |
| 12058 |
Thanks to John N for reporting this issue. |
| 12059 |
- bugfix: did not compile under solaris due to $uptime property code |
| 12060 |
For the time being, $uptime is not supported on Solaris |
| 12061 |
- bugfix: "last message repeated n times" message was missing hostname |
| 12062 |
Thanks to Zdenek Salvet for finding this bug and to Bodik for reporting |
| 12063 |
--------------------------------------------------------------------------- |
| 12064 |
Version 6.2.1 [v6-stable], 2012-05-10 |
| 12065 |
- change plugin config interface to be compatible with pre-v6.2 system |
| 12066 |
The functionality was already removed (because it is superseded by the |
| 12067 |
v6.3+ config language), but code was still present. I have now removed |
| 12068 |
those parts that affect interface. Full removal will happen in v6.3, in |
| 12069 |
order to limit potential regressions. However, it was considered useful |
| 12070 |
enough to do the interface change in v6-stable; this also eases merging |
| 12071 |
branches! |
| 12072 |
- re-licensed larger parts of the codebase under the Apache license 2.0 |
| 12073 |
- bugfix: omprog made rsyslog abort on startup if not binary to |
| 12074 |
execute was configured |
| 12075 |
- bugfix: imklog invalidly computed facility and severity |
| 12076 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=313 |
| 12077 |
- bugfix: stopped DA queue was never processed after a restart due to a |
| 12078 |
regression from statistics module |
| 12079 |
- bugfix: memory leak in array passing output module mode |
| 12080 |
- bugfix: ommysql did not properly init/exit the mysql runtime library |
| 12081 |
this could lead to segfaults. Triggering condition: multiple action |
| 12082 |
instances using ommysql. Thanks to Tomas Heinrich for reporting this |
| 12083 |
problem and providing an initial patch (which my solution is based on, |
| 12084 |
I need to add more code to clean the mess up). |
| 12085 |
- bugfix: rsyslog did not terminate when delayable inputs were blocked |
| 12086 |
due to unavailable sources. Fixes: |
| 12087 |
http://bugzilla.adiscon.com/show_bug.cgi?id=299 |
| 12088 |
Thanks to Marcin M for bringing up this problem and Andre Lorbach |
| 12089 |
for helping to reproduce and fix it. |
| 12090 |
- bugfix/tcpflood: sending small test files did not work correctly |
| 12091 |
--------------------------------------------------------------------------- |
| 12092 |
Version 6.2.0 [v6-stable], 2012-01-09 |
| 12093 |
- bugfix (kind of): removed numerical part from pri-text |
| 12094 |
see v6 compatibility document for reasons |
| 12095 |
- bugfix: race condition when extracting program name, APPNAME, structured |
| 12096 |
data and PROCID (RFC5424 fields) could lead to invalid characters e.g. |
| 12097 |
in dynamic file names or during forwarding (general malfunction of these |
| 12098 |
fields in templates, mostly under heavy load) |
| 12099 |
- bugfix: imuxsock did no longer ignore message-provided timestamp, if |
| 12100 |
so configured (the *default*). Lead to no longer sub-second timestamps. |
| 12101 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=281 |
| 12102 |
- bugfix: omfile returns fatal error code for things that go really wrong |
| 12103 |
previously, RS_RET_RESUME was returned, which lead to a loop inside the |
| 12104 |
rule engine as omfile could not really recover. |
| 12105 |
- bugfix: potential abort after reading invalid X.509 certificate |
| 12106 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=290 |
| 12107 |
Thanks to Tomas Heinrich for the patch |
| 12108 |
- enhanced module loader to not rely on PATH_MAX |
| 12109 |
- imuxsock: added capability to "annotate" messages with "trusted |
| 12110 |
information", which contains some properties obtained from the system |
| 12111 |
and as such sure to not be faked. This is inspired by the similar idea |
| 12112 |
introduced in systemd. |
| 12113 |
--------------------------------------------------------------------------- |
| 12114 |
Version 6.1.12 [BETA], 2011-09-01 |
| 12115 |
- bugfix/security: off-by-two bug in legacy syslog parser, CVE-2011-3200 |
| 12116 |
- bugfix: mark message processing did not work correctly |
| 12117 |
- bugfix: potential misaddressing in property replacer |
| 12118 |
- bugfix: memcpy overflow can occur in allowed sender checking |
| 12119 |
if a name is resolved to IPv4-mapped-on-IPv6 address |
| 12120 |
Found by Ismail Dönmez at suse |
| 12121 |
- bugfix: The NUL-Byte for the syslogtag was not copied in MsgDup (msg.c) |
| 12122 |
- bugfix: fixed incorrect state handling for Discard Action (transactions) |
| 12123 |
Note: This caused all messages in a batch to be set to COMMITTED, |
| 12124 |
even if they were discarded. |
| 12125 |
--------------------------------------------------------------------------- |
| 12126 |
Version 6.1.11 [BETA] (rgerhards), 2011-07-11 |
| 12127 |
- systemd support: set stdout/stderr to null - thx to Lennart for the patch |
| 12128 |
- added support for the ":omusrmsg:" syntax in configuring user messages |
| 12129 |
- added support for the ":omfile:" syntax in configuring user messages |
| 12130 |
--------------------------------------------------------------------------- |
| 12131 |
Version 6.1.10 [BETA] (rgerhards), 2011-06-22 |
| 12132 |
- bugfix: problems in failover action handling |
| 12133 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=270 |
| 12134 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=254 |
| 12135 |
- bugfix: mutex was invalidly left unlocked during action processing |
| 12136 |
At least one case where this can occur is during thread shutdown, which |
| 12137 |
may be initiated by lower activity. In most cases, this is quite |
| 12138 |
unlikely to happen. However, if it does, data structures may be |
| 12139 |
corrupted which could lead to fatal failure and segfault. I detected |
| 12140 |
this via a testbench test, not a user report. But I assume that some |
| 12141 |
users may have had unreproducable aborts that were cause by this bug. |
| 12142 |
--------------------------------------------------------------------------- |
| 12143 |
Version 6.1.9 [BETA] (rgerhards), 2011-06-14 |
| 12144 |
- bugfix: problems in failover action handling |
| 12145 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=270 |
| 12146 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=254 |
| 12147 |
- bugfix: mutex was invalidly left unlocked during action processing |
| 12148 |
At least one case where this can occur is during thread shutdown, which |
| 12149 |
may be initiated by lower activity. In most cases, this is quite |
| 12150 |
unlikely to happen. However, if it does, data structures may be |
| 12151 |
corrupted which could lead to fatal failure and segfault. I detected |
| 12152 |
this via a testbench test, not a user report. But I assume that some |
| 12153 |
users may have had unreproducable aborts that were cause by this bug. |
| 12154 |
- bugfix/improvement:$WorkDirectory now gracefully handles trailing slashes |
| 12155 |
- bugfix: memory leak in imtcp & subsystems under some circumstances |
| 12156 |
This leak is tied to error conditions which lead to incorrect cleanup |
| 12157 |
of some data structures. [backport from v6.3] |
| 12158 |
- bugfix: $ActionFileDefaultTemplate did not work |
| 12159 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=262 |
| 12160 |
--------------------------------------------------------------------------- |
| 12161 |
Version 6.1.8 [BETA] (rgerhards), 2011-05-20 |
| 12162 |
- official new beta version (note that in a sense 6.1.7 was already beta, |
| 12163 |
so we may release the first stable v6 earlier than usual) |
| 12164 |
- new module mmsnmptrapd, a sample message modification module |
| 12165 |
- import of minor bug fixes from v4 & v5 |
| 12166 |
--------------------------------------------------------------------------- |
| 12167 |
Version 6.1.7 [DEVEL] (rgerhards), 2011-04-15 |
| 12168 |
- added log classification capabilities (via mmnormalize & tags) |
| 12169 |
- speeded up tcp forwarding by reducing number of API calls |
| 12170 |
this especially speeds up TLS processing |
| 12171 |
- somewhat improved documentation index |
| 12172 |
- bugfix: enhanced imudp config processing code disabled due to wrong |
| 12173 |
merge (affected UDP realtime capabilities) |
| 12174 |
- bugfix (kind of): memory leak with tcp reception epoll handler |
| 12175 |
This was an extremely unlikely leak and, if it happened, quite small. |
| 12176 |
Still it is better to handle this border case. |
| 12177 |
- bugfix: IPv6-address could not be specified in omrelp |
| 12178 |
this was due to improper parsing of ":" |
| 12179 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=250 |
| 12180 |
- bugfix: do not open files with full privileges, if privs will be dropped |
| 12181 |
This make the privilege drop code more bulletproof, but breaks Ubuntu's |
| 12182 |
work-around for log files created by external programs with the wrong |
| 12183 |
user and/or group. Note that it was long said that this "functionality" |
| 12184 |
would break once we go for serious privilege drop code, so hopefully |
| 12185 |
nobody still depends on it (and, if so, they lost...). |
| 12186 |
- bugfix: pipes not opened in full priv mode when privs are to be dropped |
| 12187 |
--------------------------------------------------------------------------- |
| 12188 |
Version 6.1.6 [DEVEL] (rgerhards), 2011-03-14 |
| 12189 |
- enhanced omhdfs to support batching mode. This permits to increase |
| 12190 |
performance, as we now call the HDFS API with much larger message |
| 12191 |
sizes and far more infrequently |
| 12192 |
- improved testbench |
| 12193 |
among others, life tests for ommysql (against a test database) have |
| 12194 |
been added, valgrind-based testing enhanced, ... |
| 12195 |
- bugfix: minor memory leak in omlibdbi (< 1k per instance and run) |
| 12196 |
- bugfix: (regression) omhdfs did no longer compile |
| 12197 |
- bugfix: omlibdbi did not use password from rsyslog.con |
| 12198 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=203 |
| 12199 |
- systemd support somewhat improved (can now take over existing log sockt) |
| 12200 |
- bugfix: discard action did not work under some circumstances |
| 12201 |
fixes: http://bugzilla.adiscon.com/show_bug.cgi?id=217 |
| 12202 |
- bugfix: file descriptor leak in gnutls netstream driver |
| 12203 |
fixes: http://bugzilla.adiscon.com/show_bug.cgi?id=222 |
| 12204 |
- fixed compile problem in imtemplate |
| 12205 |
fixes: http://bugzilla.adiscon.com/show_bug.cgi?id=235 |
| 12206 |
--------------------------------------------------------------------------- |
| 12207 |
Version 6.1.5 [DEVEL] (rgerhards), 2011-03-04 |
| 12208 |
- improved testbench |
| 12209 |
- enhanced imtcp to use a pool of worker threads to process incoming |
| 12210 |
messages. This enables higher processing rates, especially in the TLS |
| 12211 |
case (where more CPU is needed for the crypto functions) |
| 12212 |
- added support for TLS (in anon mode) to tcpflood |
| 12213 |
- improved TLS error reporting |
| 12214 |
- improved TLS startup (Diffie-Hellman bits do not need to be generated, |
| 12215 |
as we do not support full anon key exchange -- we always need certs) |
| 12216 |
- bugfix: fixed a memory leak and potential abort condition |
| 12217 |
this could happen if multiple rulesets were used and some output batches |
| 12218 |
contained messages belonging to more than one ruleset. |
| 12219 |
fixes: http://bugzilla.adiscon.com/show_bug.cgi?id=226 |
| 12220 |
fixes: http://bugzilla.adiscon.com/show_bug.cgi?id=218 |
| 12221 |
- bugfix: memory leak when $RepeatedMsgReduction on was used |
| 12222 |
bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=225 |
| 12223 |
- bugfix: potential abort condition when $RepeatedMsgReduction set to on |
| 12224 |
as well as potentially in a number of other places where MsgDup() was |
| 12225 |
used. This only happened when the imudp input module was used and it |
| 12226 |
depended on name resolution not yet had taken place. In other words, |
| 12227 |
this was a strange problem that could lead to hard to diagnose |
| 12228 |
instability. So if you experience instability, chances are good that |
| 12229 |
this fix will help. |
| 12230 |
--------------------------------------------------------------------------- |
| 12231 |
Version 6.1.4 [DEVEL] (rgerhards), 2011-02-18 |
| 12232 |
- bugfix/omhdfs: directive $OMHDFSFileName rendered unusable |
| 12233 |
due to a search and replace-induced bug ;) |
| 12234 |
- bugfix: minor race condition in action.c - considered cosmetic |
| 12235 |
This is considered cosmetic as multiple threads tried to write exactly |
| 12236 |
the same value into the same memory location without sync. The method |
| 12237 |
has been changed so this can no longer happen. |
| 12238 |
- added pmsnare parser module (written by David Lang) |
| 12239 |
- enhanced imfile to support non-cancel input termination |
| 12240 |
- improved systemd socket activation thanks to Marius Tomaschewski |
| 12241 |
- improved error reporting for $WorkDirectory |
| 12242 |
non-existence and other detectable problems are now reported, |
| 12243 |
and the work directory is NOT set in this case |
| 12244 |
- bugfix: pmsnare caused abort under some conditions |
| 12245 |
- bugfix: abort if imfile reads file line of more than 64KiB |
| 12246 |
Thanks to Peter Eisentraut for reporting and analyzing this problem. |
| 12247 |
bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=221 |
| 12248 |
- bugfix: queue engine did not properly slow down inputs in FULL_DELAY mode |
| 12249 |
when in disk-assisted mode. This especially affected imfile, which |
| 12250 |
created unnecessarily queue files if a large set of input file data was |
| 12251 |
to process. |
| 12252 |
- bugfix: very long running actions could prevent shutdown under some |
| 12253 |
circumstances. This has now been solved, at least for common |
| 12254 |
situations. |
| 12255 |
- bugfix: fixed compile problem due to empty structs |
| 12256 |
this occurred only on some platforms/compilers. thanks to Dražen Kačar |
| 12257 |
for the fix |
| 12258 |
--------------------------------------------------------------------------- |
| 12259 |
Version 6.1.3 [DEVEL] (rgerhards), 2011-02-01 |
| 12260 |
- experimental support for mongodb added |
| 12261 |
- added $IMUDPSchedulingPolicy and $IMUDPSchedulingPriority config settings |
| 12262 |
- added $LocalHostName config directive |
| 12263 |
- improved tcpsrv performance by enabling multiple-entry epoll |
| 12264 |
so far, we always pulled a single event from the epoll interface. |
| 12265 |
Now 128, what should result in performance improvement (less API |
| 12266 |
calls) on busy systems. Most importantly affects imtcp. |
| 12267 |
- imptcp now supports non-cancel termination mode, a plus in stability |
| 12268 |
- imptcp speedup: multiple worker threads can now be used to read data |
| 12269 |
- new directive $InputIMPTcpHelperThreads added |
| 12270 |
- bugfix: fixed build problems on some platforms |
| 12271 |
namely those that have 32bit atomic operations but not 64 bit ones |
| 12272 |
- bugfix: local hostname was pulled too-early, so that some config |
| 12273 |
directives (namely FQDN settings) did not have any effect |
| 12274 |
- enhanced tcpflood to support multiple sender threads |
| 12275 |
this is required for some high-throughput scenarios (and necessary to |
| 12276 |
run some performance tests, because otherwise the sender is too slow). |
| 12277 |
- added some new custom parsers (snare, aix, some Cisco "specialities") |
| 12278 |
thanks to David Lang |
| 12279 |
--------------------------------------------------------------------------- |
| 12280 |
Version 6.1.2 [DEVEL] (rgerhards), 2010-12-16 |
| 12281 |
- added experimental support for log normalization (via liblognorm) |
| 12282 |
support for normalizing log messages has been added in the form of |
| 12283 |
mmnormalize. The core engine (property replacer, filter engine) has |
| 12284 |
been enhanced to support properties from normalized events. |
| 12285 |
Note: this is EXPERIMENTAL code. It is currently know that |
| 12286 |
there are issues if the functionality is used with |
| 12287 |
- disk-based queues |
| 12288 |
- asynchronous action queues |
| 12289 |
You can not use the new functionality together with these features. |
| 12290 |
This limitation will be removed in later releases. However, we |
| 12291 |
preferred to release early, so that one can experiment with the new |
| 12292 |
feature set and accepted the price that this means the full set of |
| 12293 |
functionality is not yet available. If not used together with |
| 12294 |
these features, log normalizing should be pretty stable. |
| 12295 |
- enhanced testing tool tcpflood |
| 12296 |
now supports sending via UDP and the capability to run multiple |
| 12297 |
iterations and generate statistics data records |
| 12298 |
- bugfix: potential abort when output modules with different parameter |
| 12299 |
passing modes were used in configured output modules |
| 12300 |
--------------------------------------------------------------------------- |
| 12301 |
Version 6.1.1 [DEVEL] (rgerhards), 2010-11-30 |
| 12302 |
- bugfix(important): problem in TLS handling could cause rsyslog to loop |
| 12303 |
in a tight loop, effectively disabling functionality and bearing the |
| 12304 |
risk of unresponsiveness of the whole system. |
| 12305 |
Bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=194 |
| 12306 |
- support for omhdfs officially added (import from 5.7.1) |
| 12307 |
- merged imuxsock improvements from 5.7.1 (see there) |
| 12308 |
- support for systemd officially added (import from 5.7.0) |
| 12309 |
- bugfix: a couple of problems that imfile had on some platforms, namely |
| 12310 |
Ubuntu (not their fault, but occurred there) |
| 12311 |
- bugfix: imfile utilizes 32 bit to track offset. Most importantly, |
| 12312 |
this problem can not experienced on Fedora 64 bit OS (which has |
| 12313 |
64 bit long's!) |
| 12314 |
- a number of other bugfixes from older versions imported |
| 12315 |
--------------------------------------------------------------------------- |
| 12316 |
Version 6.1.0 [DEVEL] (rgerhards), 2010-08-12 |
| 12317 |
|
| 12318 |
*********************************** NOTE ********************************** |
| 12319 |
The v6 versions of rsyslog feature a greatly redesigned config system |
| 12320 |
which, among others, supports scoping. However, the initial version does |
| 12321 |
not contain the whole new system. Rather it will evolve. So it is |
| 12322 |
expected that interfaces, even new ones, break during the initial |
| 12323 |
6.x.y releases. |
| 12324 |
*********************************** NOTE ********************************** |
| 12325 |
|
| 12326 |
- added $Begin, $End and $ScriptScoping config scope statements |
| 12327 |
(at this time for actions only). |
| 12328 |
- added imptcp, a simplified, Linux-specific and potentially fast |
| 12329 |
syslog plain tcp input plugin (NOT supporting TLS!) |
| 12330 |
[ported from v4] |
| 12331 |
--------------------------------------------------------------------------- |
| 12332 |
Version 5.10.2 [V5-STABLE], 201?-??-?? |
| 12333 |
- bugfix: queue file size was not correctly processed |
| 12334 |
this could lead to using one queue file per message for sizes >2GiB |
| 12335 |
Thanks to Tomas Heinrich for the patch. |
| 12336 |
- updated systemd files to match current systemd source |
| 12337 |
- bugfix: spurios error messages from imuxsock about (non-error) EAGAIN |
| 12338 |
Thanks to Marius Tomaschewski for the patch. |
| 12339 |
- imklog: added $klogParseKernelTimestamp option |
| 12340 |
When enabled, kernel message [timestamp] is converted for message time. |
| 12341 |
Default is to use receive time as in 5.8.x and before, because the clock |
| 12342 |
used to create the timestamp is not supposed to be as accurate as the |
| 12343 |
monotonic clock (depends on hardware and kernel) resulting in differences |
| 12344 |
between kernel and system messages which occurred at same time. |
| 12345 |
Thanks to Marius Tomaschewski for the patch. |
| 12346 |
- imklog: added $klogKeepKernelTimestamp option |
| 12347 |
When enabled, the kernel [timestamp] remains at begin of |
| 12348 |
each message, even it is used for the message time too. |
| 12349 |
Thanks to Marius Tomaschewski for the patch. |
| 12350 |
- bugfix: imklog mistakenly took kernel timestamp subseconds as nanoseconds |
| 12351 |
... actually, they are microseconds. So the fractional part of the |
| 12352 |
timestamp was not properly formatted. |
| 12353 |
Thanks to Marius Tomaschewski for the bug report and the patch idea. |
| 12354 |
- imklog: added $klogKeepKernelTimestamp option |
| 12355 |
When enabled, the kernel [timestamp] remains at begin of |
| 12356 |
each message, even it is used for the message time too. |
| 12357 |
Thanks to Marius Tomaschewski for the patch. |
| 12358 |
- bugfix: imklog mistakenly took kernel timestamp subseconds as nanoseconds |
| 12359 |
... actually, they are microseconds. So the fractional part of the |
| 12360 |
timestamp was not properly formatted. |
| 12361 |
Thanks to Marius Tomaschewski for the bug report and the patch idea. |
| 12362 |
- bugfix: invalid DST handling under Solaris |
| 12363 |
Thanks to Scott Severtson for the patch. |
| 12364 |
- bugfix: invalid decrement in pm5424 could lead to log truncation |
| 12365 |
Thanks to Tomas Heinrich for the patch. |
| 12366 |
- bugfix[kind of]: omudpspoof discarded messages >1472 bytes (MTU size) |
| 12367 |
it now truncates these message, but ensures they are sent. Note that |
| 12368 |
7.3.5+ will switch to fragmented UDP messages instead (up to 64K) |
| 12369 |
--------------------------------------------------------------------------- |
| 12370 |
Version 5.10.1 [V5-STABLE], 2012-10-17 |
| 12371 |
- bugfix: imuxsock and imklog truncated head of received message |
| 12372 |
This happened only under some circumstances. Thanks to Marius |
| 12373 |
Tomaschewski, Florian Piekert and Milan Bartos for their help in |
| 12374 |
solving this issue. |
| 12375 |
- enable DNS resolution in imrelp |
| 12376 |
Thanks to Apollon Oikonomopoulos for the patch |
| 12377 |
- bugfix: invalid property name in property-filter could cause abort |
| 12378 |
if action chaining (& operator) was used |
| 12379 |
http://bugzilla.adiscon.com/show_bug.cgi?id=355 |
| 12380 |
Thanks to [email protected] for the bug report |
| 12381 |
- bugfix: remove invalid socket option call from imuxsock |
| 12382 |
Thanks to Cristian Ionescu-Idbohrn and Jonny Törnbom |
| 12383 |
- bugfix: fixed wrong bufferlength for snprintf in tcpflood.c when using |
| 12384 |
the -f (dynafiles) option. |
| 12385 |
- fixed issues in build system (namely related to cust1 dummy plugin) |
| 12386 |
--------------------------------------------------------------------------- |
| 12387 |
Version 5.10.0 [V5-STABLE], 2012-08-23 |
| 12388 |
|
| 12389 |
NOTE: this is the new rsyslog v5-stable, incorporating all changes from the |
| 12390 |
5.9.x series. In addition to that, it contains the fixes and |
| 12391 |
enhancements listed below in this entry. |
| 12392 |
|
| 12393 |
- bugfix: delayable source could block action queue, even if there was |
| 12394 |
a disk queue associated with it. The root cause of this problem was |
| 12395 |
that it makes no sense to delay messages once they arrive in the |
| 12396 |
action queue - the "input" that is being held in that case is the main |
| 12397 |
queue worker, what makes no sense. |
| 12398 |
Thanks to Marcin for alerting us on this problem and providing |
| 12399 |
instructions to reproduce it. |
| 12400 |
- bugfix: disk queue was not persisted on shutdown, regression of fix to |
| 12401 |
http://bugzilla.adiscon.com/show_bug.cgi?id=299 |
| 12402 |
The new code also handles the case of shutdown of blocking light and |
| 12403 |
full delayable sources somewhat smarter and permits, assuming sufficient |
| 12404 |
timeouts, to persist message up to the max queue capacity. Also some nits |
| 12405 |
in debug instrumentation have been fixed. |
| 12406 |
- add small delay (50ms) after sending shutdown message |
| 12407 |
There seem to be cases where the shutdown message is otherwise not |
| 12408 |
processed, not even on an idle system. Thanks to Marcin for |
| 12409 |
bringing this problem up. |
| 12410 |
- support for resolving huge groups |
| 12411 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=310 |
| 12412 |
Thanks to Alec Warner for the patch |
| 12413 |
- bugfix: potential hang due to mutex deadlock |
| 12414 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=316 |
| 12415 |
Thanks to Andreas Piesk for reporting&analyzing this bug as well as |
| 12416 |
providing patches and other help in resolving it. |
| 12417 |
- bugfix: property PROCID empty instead of proper nilvalue if not present |
| 12418 |
If it is not present, it must have the nilvalue "-" as of RFC5424 |
| 12419 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=332 |
| 12420 |
Thanks to John N for reporting this issue. |
| 12421 |
- bugfix: "last message repeated n times" message was missing hostname |
| 12422 |
Thanks to Zdenek Salvet for finding this bug and to Bodik for reporting |
| 12423 |
- bugfix: multiple main queues with same queue file name was not detected |
| 12424 |
This lead to queue file corruption. While the root cause is a config |
| 12425 |
error, it is a bug that this important and hard to find config error |
| 12426 |
was not detected by rsyslog. |
| 12427 |
--------------------------------------------------------------------------- |
| 12428 |
Version 5.9.7 [V5-BETA], 2012-05-10 |
| 12429 |
- added capability to specify substrings for field extraction mode |
| 12430 |
- bugfix: ommysql did not properly init/exit the mysql runtime library |
| 12431 |
this could lead to segfaults. Triggering condition: multiple action |
| 12432 |
instances using ommysql. Thanks to Tomas Heinrich for reporting this |
| 12433 |
problem and providing an initial patch (which my solution is based on, |
| 12434 |
I need to add more code to clean the mess up). |
| 12435 |
- bugfix: rsyslog did not terminate when delayable inputs were blocked |
| 12436 |
due to unavailable sources. Fixes: |
| 12437 |
http://bugzilla.adiscon.com/show_bug.cgi?id=299 |
| 12438 |
Thanks to Marcin M for bringing up this problem and Andre Lorbach |
| 12439 |
for helping to reproduce and fix it. |
| 12440 |
- bugfix/tcpflood: sending small test files did not work correctly |
| 12441 |
--------------------------------------------------------------------------- |
| 12442 |
Version 5.9.6 [V5-BETA], 2012-04-12 |
| 12443 |
- added configuration directives to customize queue light delay marks |
| 12444 |
- permit size modifiers (k,m,g,...) in integer config parameters |
| 12445 |
Thanks to Jo Rhett for the suggestion. |
| 12446 |
- bugfix: hostname was not requeried on HUP |
| 12447 |
Thanks to Per Jessen for reporting this bug and Marius Tomaschewski for |
| 12448 |
his help in testing the fix. |
| 12449 |
- bugfix: imklog invalidly computed facility and severity |
| 12450 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=313 |
| 12451 |
- bugfix: imptcp input name could not be set |
| 12452 |
config directive was accepted, but had no effect |
| 12453 |
- added configuration directive to disable octet-counted framing |
| 12454 |
for imtcp, directive is $InputTCPServerSupportOctetCountedFraming |
| 12455 |
for imptcp, directive is $InputPTCPServerSupportOctetCountedFraming |
| 12456 |
- added capability to use a local interface IP address as fromhost-ip for |
| 12457 |
locally originating messages. New directive $LocalHostIPIF |
| 12458 |
- added configuration directives to customize queue light delay marks |
| 12459 |
$MainMsgQueueLightDelayMark, $ActionQueueLightDelayMark; both |
| 12460 |
specify number of messages starting at which a delay happens. |
| 12461 |
--------------------------------------------------------------------------- |
| 12462 |
Version 5.9.5 [V5-DEVEL], 2012-01-27 |
| 12463 |
- improved impstats subsystem, added many new counters |
| 12464 |
- enhanced module loader to not rely on PATH_MAX |
| 12465 |
- refactored imklog linux driver, now combined with BSD driver |
| 12466 |
The Linux driver no longer supports outdated kernel symbol resolution, |
| 12467 |
which was disabled by default for very long. Also overall cleanup, |
| 12468 |
resulting in much smaller code. Linux and BSD are now covered by a |
| 12469 |
single small driver. |
| 12470 |
- $IMUXSockRateLimitInterval DEFAULT CHANGED, was 5, now 0 |
| 12471 |
The new default turns off rate limiting. This was chosen as people |
| 12472 |
experienced problems with rate-limiting activated by default. Now it |
| 12473 |
needs an explicit opt-in by setting this parameter. |
| 12474 |
Thanks to Chris Gaffney for suggesting to make it opt-in; thanks to |
| 12475 |
many unnamed others who already had complained at the time Chris made |
| 12476 |
the suggestion ;-) |
| 12477 |
--------------------------------------------------------------------------- |
| 12478 |
Version 5.9.4 [V5-DEVEL], 2011-11-29 |
| 12479 |
- imuxsock: added capability to "annotate" messages with "trusted |
| 12480 |
information", which contains some properties obtained from the system |
| 12481 |
and as such sure to not be faked. This is inspired by the similar idea |
| 12482 |
introduced in systemd. |
| 12483 |
- removed dependency on gcrypt for recently-enough GnuTLS |
| 12484 |
see: http://bugzilla.adiscon.com/show_bug.cgi?id=289 |
| 12485 |
- bugfix: imuxsock did no longer ignore message-provided timestamp, if |
| 12486 |
so configured (the *default*). Lead to no longer sub-second timestamps. |
| 12487 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=281 |
| 12488 |
- bugfix: omfile returns fatal error code for things that go really wrong |
| 12489 |
previously, RS_RET_RESUME was returned, which lead to a loop inside the |
| 12490 |
rule engine as omfile could not really recover. |
| 12491 |
- bugfix: rsyslogd -v always said 64 atomics were not present |
| 12492 |
thanks to mono_matsuko for the patch |
| 12493 |
--------------------------------------------------------------------------- |
| 12494 |
Version 5.9.3 [V5-DEVEL], 2011-09-01 |
| 12495 |
- bugfix/security: off-by-two bug in legacy syslog parser, CVE-2011-3200 |
| 12496 |
- bugfix: mark message processing did not work correctly |
| 12497 |
- added capability to emit config error location info for warnings |
| 12498 |
otherwise, omusrmsg's warning about new config format was not |
| 12499 |
accompanied by problem location. |
| 12500 |
- bugfix: potential misaddressing in property replacer |
| 12501 |
- bugfix: MSGID corruption in RFC5424 parser under some circumstances |
| 12502 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=275 |
| 12503 |
- bugfix: The NUL-Byte for the syslogtag was not copied in MsgDup (msg.c) |
| 12504 |
--------------------------------------------------------------------------- |
| 12505 |
Version 5.9.2 [V5-DEVEL] (rgerhards), 2011-07-11 |
| 12506 |
- systemd support: set stdout/stderr to null - thx to Lennart for the patch |
| 12507 |
- added support for the ":omusrmsg:" syntax in configuring user messages |
| 12508 |
- added support for the ":omfile:" syntax for actions |
| 12509 |
--------------------------------------------------------------------------- |
| 12510 |
Version 5.9.1 [V5-DEVEL] (rgerhards), 2011-06-30 |
| 12511 |
- added support for obtaining timestamp for kernel message from message |
| 12512 |
If the kernel time-stamps messages, time is now take from that |
| 12513 |
timestamp instead of the system time when the message was read. This |
| 12514 |
provides much better accuracy. Thanks to Lennart Poettering for |
| 12515 |
suggesting this feature and his help during implementation. |
| 12516 |
- added support for obtaining timestamp from system for imuxsock |
| 12517 |
This permits to read the time a message was submitted to the system |
| 12518 |
log socket. Most importantly, this is provided in microsecond resolution. |
| 12519 |
So we are able to obtain high precision timestampis even for messages |
| 12520 |
that were - as is usual - not formatted with them. This also simplifies |
| 12521 |
things in regard to local time calculation in chroot environments. |
| 12522 |
Many thanks to Lennart Poettering for suggesting this feature, |
| 12523 |
providing some guidance on implementing it and coordinating getting the |
| 12524 |
necessary support into the Linux kernel. |
| 12525 |
- bugfix: timestamp was incorrectly calculated for timezones with minute |
| 12526 |
offset |
| 12527 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=271 |
| 12528 |
- bugfix: problems in failover action handling |
| 12529 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=270 |
| 12530 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=254 |
| 12531 |
- bugfix: mutex was invalidly left unlocked during action processing |
| 12532 |
At least one case where this can occur is during thread shutdown, which |
| 12533 |
may be initiated by lower activity. In most cases, this is quite |
| 12534 |
unlikely to happen. However, if it does, data structures may be |
| 12535 |
corrupted which could lead to fatal failure and segfault. I detected |
| 12536 |
this via a testbench test, not a user report. But I assume that some |
| 12537 |
users may have had unreproducable aborts that were cause by this bug. |
| 12538 |
- bugfix: memory leak in imtcp & subsystems under some circumstances |
| 12539 |
This leak is tied to error conditions which lead to incorrect cleanup |
| 12540 |
of some data structures. [backport from v6] |
| 12541 |
- bugfix/improvement:$WorkDirectory now gracefully handles trailing slashes |
| 12542 |
--------------------------------------------------------------------------- |
| 12543 |
Version 5.9.0 [V5-DEVEL] (rgerhards), 2011-06-08 |
| 12544 |
- imfile: added $InputFileMaxLinesAtOnce directive |
| 12545 |
- enhanced imfile to support input batching |
| 12546 |
- added capability for imtcp and imptcp to activate keep-alive packets |
| 12547 |
at the socket layer. This has not been added to imttcp, as the latter is |
| 12548 |
only an experimental module, and one which did not prove to be useful. |
| 12549 |
reference: http://kb.monitorware.com/post20791.html |
| 12550 |
- added support to control KEEPALIVE settings in imptcp |
| 12551 |
this has not yet been added to imtcp, but could be done on request. |
| 12552 |
- $ActionName is now also used for naming of queues in impstats |
| 12553 |
as well as in the debug output |
| 12554 |
- bugfix: do not open files with full privileges, if privs will be dropped |
| 12555 |
This make the privilege drop code more bulletproof, but breaks Ubuntu's |
| 12556 |
work-around for log files created by external programs with the wrong |
| 12557 |
user and/or group. Note that it was long said that this "functionality" |
| 12558 |
would break once we go for serious privilege drop code, so hopefully |
| 12559 |
nobody still depends on it (and, if so, they lost...). |
| 12560 |
- bugfix: pipes not opened in full priv mode when privs are to be dropped |
| 12561 |
- this begins a new devel branch for v5 |
| 12562 |
- better handling of queue i/o errors in disk queues. This is kind of a |
| 12563 |
bugfix, but a very intrusive one, this it goes into the devel version |
| 12564 |
first. Right now, "file not found" is handled and leads to the new |
| 12565 |
emergency mode, in which disk action is stopped and the queue run |
| 12566 |
in direct mode. An error message is emited if this happens. |
| 12567 |
- added support for user-level PRI provided via systemd |
| 12568 |
- added new config directive $InputTCPFlowControl to select if tcp |
| 12569 |
received messages shall be flagged as light delayable or not. |
| 12570 |
- enhanced omhdfs to support batching mode. This permits to increase |
| 12571 |
performance, as we now call the HDFS API with much larger message |
| 12572 |
sizes and far more infrequently |
| 12573 |
- bugfix: failover did not work correctly if repeated msg reduction was on |
| 12574 |
affected directive was: $ActionExecOnlyWhenPreviousIsSuspended on |
| 12575 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=236 |
| 12576 |
--------------------------------------------------------------------------- |
| 12577 |
Version 5.8.13 [V5-stable] 2012-08-22 |
| 12578 |
- bugfix: DA queue could cause abort |
| 12579 |
- bugfix: "last message repeated n times" message was missing hostname |
| 12580 |
Thanks to Zdenek Salvet for finding this bug and to Bodik for reporting |
| 12581 |
- bugfix "$PreserveFQDN on" was not honored in some modules |
| 12582 |
Thanks to bodik for reporting this bug. |
| 12583 |
- bugfix: randomized IP option header in omudpspoof caused problems |
| 12584 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=327 |
| 12585 |
Thanks to Rick Brown for helping to test out the patch. |
| 12586 |
- bugfix: potential abort if output plugin logged message during shutdown |
| 12587 |
note that none of the rsyslog-provided plugins does this |
| 12588 |
Thanks to bodik and Rohit Prasad for alerting us on this bug and |
| 12589 |
analyzing it. |
| 12590 |
fixes: http://bugzilla.adiscon.com/show_bug.cgi?id=347 |
| 12591 |
- bugfix: multiple main queues with same queue file name was not detected |
| 12592 |
This lead to queue file corruption. While the root cause is a config |
| 12593 |
error, it is a bug that this important and hard to find config error |
| 12594 |
was not detected by rsyslog. |
| 12595 |
--------------------------------------------------------------------------- |
| 12596 |
Version 5.8.12 [V5-stable] 2012-06-06 |
| 12597 |
- add small delay (50ms) after sending shutdown message |
| 12598 |
There seem to be cases where the shutdown message is otherwise not |
| 12599 |
processed, not even on an idle system. Thanks to Marcin for |
| 12600 |
bringing this problem up. |
| 12601 |
- support for resolving huge groups |
| 12602 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=310 |
| 12603 |
Thanks to Alec Warner for the patch |
| 12604 |
- bugfix: delayable source could block action queue, even if there was |
| 12605 |
a disk queue associated with it. The root cause of this problem was |
| 12606 |
that it makes no sense to delay messages once they arrive in the |
| 12607 |
action queue - the "input" that is being held in that case is the main |
| 12608 |
queue worker, what makes no sense. |
| 12609 |
Thanks to Marcin for alerting us on this problem and providing |
| 12610 |
instructions to reproduce it. |
| 12611 |
- bugfix: disk queue was not persisted on shutdown, regression of fix to |
| 12612 |
http://bugzilla.adiscon.com/show_bug.cgi?id=299 |
| 12613 |
The new code also handles the case of shutdown of blocking light and |
| 12614 |
full delayable sources somewhat smarter and permits, assuming sufficient |
| 12615 |
timeouts, to persist message up to the max queue capacity. Also some nits |
| 12616 |
in debug instrumentation have been fixed. |
| 12617 |
- bugfix/omudpspoof: problems, including abort, happened when run on |
| 12618 |
multiple threads. Root cause is that libnet is not thread-safe. |
| 12619 |
omudpspoof now guards libnet calls with their own mutex. |
| 12620 |
- bugfix: if debug message could end up in log file when forking |
| 12621 |
if rsyslog was set to auto-background (thus fork, the default) and debug |
| 12622 |
mode to stdout was enabled, debug messages ended up in the first log file |
| 12623 |
opened. Currently, stdout logging is completely disabled in forking mode |
| 12624 |
(but writing to the debug log file is still possible). This is a change |
| 12625 |
in behavior, which is under review. If it causes problems to you, |
| 12626 |
please let us know. |
| 12627 |
Thanks to Tomas Heinrich for the patch. |
| 12628 |
- bugfix/tcpflood: sending small test files did not work correctly |
| 12629 |
- bugfix: potential hang due to mutex deadlock |
| 12630 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=316 |
| 12631 |
Thanks to Andreas Piesk for reporting&analyzing this bug as well as |
| 12632 |
providing patches and other help in resolving it. |
| 12633 |
- bugfix: property PROCID empty instead of proper nilvalue if not present |
| 12634 |
If it is not present, it must have the nilvalue "-" as of RFC5424 |
| 12635 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=332 |
| 12636 |
Thanks to John N for reporting this issue. |
| 12637 |
--------------------------------------------------------------------------- |
| 12638 |
Version 5.8.11 [V5-stable] 2012-05-03 |
| 12639 |
- bugfix: ommysql did not properly init/exit the mysql runtime library |
| 12640 |
this could lead to segfaults. Triggering condition: multiple action |
| 12641 |
instances using ommysql. Thanks to Tomas Heinrich for reporting this |
| 12642 |
problem and providing an initial patch (which my solution is based on, |
| 12643 |
I need to add more code to clean the mess up). |
| 12644 |
- bugfix: rsyslog did not terminate when delayable inputs were blocked |
| 12645 |
due to unavailable sources. Fixes: |
| 12646 |
http://bugzilla.adiscon.com/show_bug.cgi?id=299 |
| 12647 |
Thanks to Marcin M for bringing up this problem and Andre Lorbach |
| 12648 |
for helping to reproduce and fix it. |
| 12649 |
- bugfix: active input in "light delay state" could block rsyslog |
| 12650 |
termination, at least for prolonged period of time |
| 12651 |
- bugfix: imptcp input name could not be set |
| 12652 |
config directive was accepted, but had no effect |
| 12653 |
- bugfix: assigned ruleset was lost when using disk queues |
| 12654 |
This looked quite hard to diagnose for disk-assisted queues, as the |
| 12655 |
pure memory part worked well, but ruleset info was lost for messages |
| 12656 |
stored inside the disk queue. |
| 12657 |
- bugfix: hostname was not requeried on HUP |
| 12658 |
Thanks to Per Jessen for reporting this bug and Marius Tomaschewski for |
| 12659 |
his help in testing the fix. |
| 12660 |
- bugfix: inside queue.c, some thread cancel states were not correctly |
| 12661 |
reset. While this is a bug, we assume it did have no practical effect |
| 12662 |
because the reset as it was done was set to the state the code actually |
| 12663 |
had at this point. But better fix this... |
| 12664 |
--------------------------------------------------------------------------- |
| 12665 |
Version 5.8.10 [V5-stable] 2012-04-05 |
| 12666 |
- bugfix: segfault on startup if $actionqueuefilename was missing for disk |
| 12667 |
queue config |
| 12668 |
Thanks to Tomas Heinrich for the patch. |
| 12669 |
- bugfix: segfault if disk-queue was started up with old queue file |
| 12670 |
Thanks to Tomas Heinrich for the patch. |
| 12671 |
- bugfix: memory leak in array passing output module mode |
| 12672 |
--------------------------------------------------------------------------- |
| 12673 |
Version 5.8.9 [V5-stable] 2012-03-15 |
| 12674 |
- added tool to recover disk queue if .qi file is missing (recover_qi.pl) |
| 12675 |
Thanks to Kaiwang Chen for contributing this tool |
| 12676 |
- bugfix: stopped DA queue was never processed after a restart due to a |
| 12677 |
regression from statistics module |
| 12678 |
- added better doc for statsobj interface |
| 12679 |
Thanks to Kaiwang Chen for his suggestions and analysis in regard to the |
| 12680 |
stats subsystem. |
| 12681 |
--------------------------------------------------------------------------- |
| 12682 |
Version 5.8.8 [V5-stable] 2012-03-05 |
| 12683 |
- added capability to use a local interface IP address as fromhost-ip for |
| 12684 |
imuxsock imklog |
| 12685 |
new config directives: $IMUXSockLocalIPIF, $klogLocalIPIF |
| 12686 |
- added configuration directives to customize queue light delay marks |
| 12687 |
$MainMsgQueueLightDelayMark, $ActionQueueLightDelayMark; both |
| 12688 |
specify number of messages starting at which a delay happens. |
| 12689 |
- bugfix: omprog made rsyslog abort on startup if not binary to |
| 12690 |
execute was configured |
| 12691 |
- bugfix: imklog invalidly computed facility and severity |
| 12692 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=313 |
| 12693 |
--------------------------------------------------------------------------- |
| 12694 |
Version 5.8.7 [V5-stable] 2012-01-17 |
| 12695 |
- bugfix: instabilities when using RFC5424 header fields |
| 12696 |
Thanks to Kaiwang Chen for the patch |
| 12697 |
- bugfix: imuxsock did truncate part of received message if it did not |
| 12698 |
contain a proper date. The truncation occurred because we removed that |
| 12699 |
part of the messages that was expected to be the date. |
| 12700 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=295 |
| 12701 |
- bugfix: potential abort after reading invalid X.509 certificate |
| 12702 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=290 |
| 12703 |
Thanks to Tomas Heinrich for the patch |
| 12704 |
- bugfix: stats counter were not properly initialized on creation |
| 12705 |
- FQDN hostname for multihomed host was not always set to the correct name |
| 12706 |
if multiple aliases existed. Thanks to Tomas Heinreich for the patch. |
| 12707 |
- re-licensed larger parts of the codebase under the Apache license 2.0 |
| 12708 |
--------------------------------------------------------------------------- |
| 12709 |
Version 5.8.6 [V5-stable] 2011-10-21 |
| 12710 |
- bugfix: missing whitespace after property-based filter was not detected |
| 12711 |
- bugfix: $OMFileFlushInterval period was doubled - now using correct value |
| 12712 |
- bugfix: ActionQueue could malfunction due to index error |
| 12713 |
Thanks to Vlad Grigorescu for the patch |
| 12714 |
- bugfix: $ActionExecOnlyOnce interval did not work properly |
| 12715 |
Thanks to Tomas Heinrich for the patch |
| 12716 |
- bugfix: race condition when extracting program name, APPNAME, structured |
| 12717 |
data and PROCID (RFC5424 fields) could lead to invalid characters e.g. |
| 12718 |
in dynamic file names or during forwarding (general malfunction of these |
| 12719 |
fields in templates, mostly under heavy load) |
| 12720 |
- bugfix: imuxsock did no longer ignore message-provided timestamp, if |
| 12721 |
so configured (the *default*). Lead to no longer sub-second timestamps. |
| 12722 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=281 |
| 12723 |
- bugfix: omfile returns fatal error code for things that go really wrong |
| 12724 |
previously, RS_RET_RESUME was returned, which lead to a loop inside the |
| 12725 |
rule engine as omfile could not really recover. |
| 12726 |
- bugfix: imfile did invalid system call under some circumstances |
| 12727 |
when a file that was to be monitored did not exist BUT the state file |
| 12728 |
actually existed. Mostly a cosmetic issue. Root cause was incomplete |
| 12729 |
error checking in stream.c; so patch may affect other code areas. |
| 12730 |
- bugfix: rsyslogd -v always said 64 atomics were not present |
| 12731 |
thanks to mono_matsuko for the patch |
| 12732 |
--------------------------------------------------------------------------- |
| 12733 |
Version 5.8.5 [V5-stable] (rgerhards/al), 2011-09-01 |
| 12734 |
- bugfix/security: off-by-two bug in legacy syslog parser, CVE-2011-3200 |
| 12735 |
- bugfix: mark message processing did not work correctly |
| 12736 |
- bugfix: potential hang condition during tag emulation |
| 12737 |
- bugfix: too-early string termination during tag emulation |
| 12738 |
- bugfix: The NUL-Byte for the syslogtag was not copied in MsgDup (msg.c) |
| 12739 |
- bugfix: fixed incorrect state handling for Discard Action (transactions) |
| 12740 |
Note: This caused all messages in a batch to be set to COMMITTED, |
| 12741 |
even if they were discarded. |
| 12742 |
--------------------------------------------------------------------------- |
| 12743 |
Version 5.8.4 [V5-stable] (al), 2011-08-10 |
| 12744 |
- bugfix: potential misaddressing in property replacer |
| 12745 |
- bugfix: memcpy overflow can occur in allowed sender checking |
| 12746 |
if a name is resolved to IPv4-mapped-on-IPv6 address |
| 12747 |
Found by Ismail Dönmez at suse |
| 12748 |
- bugfix: potential misaddressing in property replacer |
| 12749 |
- bugfix: MSGID corruption in RFC5424 parser under some circumstances |
| 12750 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=275 |
| 12751 |
--------------------------------------------------------------------------- |
| 12752 |
Version 5.8.3 [V5-stable] (rgerhards), 2011-07-11 |
| 12753 |
- systemd support: set stdout/stderr to null - thx to Lennart for the patch |
| 12754 |
- added support for the ":omusrmsg:" syntax in configuring user messages |
| 12755 |
- added support for the ":omfile:" syntax for actions |
| 12756 |
Note: previous outchannel syntax will generate a warning message. This |
| 12757 |
may be surprising to some users, but it is quite urgent to alert them |
| 12758 |
of the new syntax as v6 can no longer support the previous one. |
| 12759 |
--------------------------------------------------------------------------- |
| 12760 |
Version 5.8.2 [V5-stable] (rgerhards), 2011-06-21 |
| 12761 |
- bugfix: problems in failover action handling |
| 12762 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=270 |
| 12763 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=254 |
| 12764 |
- bugfix: mutex was invalidly left unlocked during action processing |
| 12765 |
At least one case where this can occur is during thread shutdown, which |
| 12766 |
may be initiated by lower activity. In most cases, this is quite |
| 12767 |
unlikely to happen. However, if it does, data structures may be |
| 12768 |
corrupted which could lead to fatal failure and segfault. I detected |
| 12769 |
this via a testbench test, not a user report. But I assume that some |
| 12770 |
users may have had unreproducable aborts that were cause by this bug. |
| 12771 |
- bugfix: memory leak in imtcp & subsystems under some circumstances |
| 12772 |
This leak is tied to error conditions which lead to incorrect cleanup |
| 12773 |
of some data structures. [backport from v6] |
| 12774 |
- bugfix/improvement:$WorkDirectory now gracefully handles trailing slashes |
| 12775 |
--------------------------------------------------------------------------- |
| 12776 |
Version 5.8.1 [V5-stable] (rgerhards), 2011-05-19 |
| 12777 |
- bugfix: invalid processing in QUEUE_FULL condition |
| 12778 |
If the the multi-submit interface was used and a QUEUE_FULL condition |
| 12779 |
occurred, the failed message was properly destructed. However, the |
| 12780 |
rest of the input batch, if it existed, was not processed. So this |
| 12781 |
lead to potential loss of messages and a memory leak. The potential |
| 12782 |
loss of messages was IMHO minor, because they would have been dropped |
| 12783 |
in most cases due to the queue remaining full, but very few lucky ones |
| 12784 |
from the batch may have made it. Anyhow, this has now been changed so |
| 12785 |
that the rest of the batch is properly tried to be enqueued and, if |
| 12786 |
not possible, destructed. |
| 12787 |
- new module mmsnmptrapd, a sample message modification module |
| 12788 |
This can be useful to reformat snmptrapd messages and also serves as |
| 12789 |
a sample for how to write message modification modules using the |
| 12790 |
output module interface. Note that we introduced this new |
| 12791 |
functionality directly into the stable release, as it does not |
| 12792 |
modify the core and as such cannot have any side-effects if it is |
| 12793 |
not used (and thus the risk is solely on users requiring that |
| 12794 |
functionality). |
| 12795 |
- bugfix: rate-limiting inside imuxsock did not work 100% correct |
| 12796 |
reason was that a global config variable was invalidly accessed where a |
| 12797 |
listener variable should have been used. |
| 12798 |
Also performance-improved the case when rate limiting is turned off (this |
| 12799 |
is a very unintrusive change, thus done directly to the stable version). |
| 12800 |
- bugfix: $myhostname not available in RainerScript (and no error message) |
| 12801 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=233 |
| 12802 |
- bugfix: memory and file descriptor leak in stream processing |
| 12803 |
Leaks could occur under some circumstances if the file stream handler |
| 12804 |
errored out during the open call. Among others, this could cause very |
| 12805 |
big memory leaks if there were a problem with unreadable disk queue |
| 12806 |
files. In regard to the memory leak, this |
| 12807 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=256 |
| 12808 |
- bugfix: doc for impstats had wrong config statements |
| 12809 |
also, config statements were named a bit inconsistent, resolved that |
| 12810 |
problem by introducing an alias and only documenting the consistent |
| 12811 |
statements |
| 12812 |
Thanks to Marcin for bringing up this problem. |
| 12813 |
- bugfix: IPv6-address could not be specified in omrelp |
| 12814 |
this was due to improper parsing of ":" |
| 12815 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=250 |
| 12816 |
- bugfix: TCP connection invalidly aborted when messages needed to be |
| 12817 |
discarded (due to QUEUE_FULL or similar problem) |
| 12818 |
- bugfix: $LocalHostName was not honored under all circumstances |
| 12819 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=258 |
| 12820 |
- bugfix(minor): improper template function call in syslogd.c |
| 12821 |
--------------------------------------------------------------------------- |
| 12822 |
Version 5.8.0 [V5-stable] (rgerhards), 2011-04-12 |
| 12823 |
|
| 12824 |
This is the new v5-stable branch, importing all feature from the 5.7.x |
| 12825 |
versions. To see what has changed in regard to the previous v5-stable, |
| 12826 |
check the Changelog for 5.7.x below. |
| 12827 |
|
| 12828 |
- bugfix: race condition in deferred name resolution |
| 12829 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=238 |
| 12830 |
Special thanks to Marcin for his persistence in helping to solve this |
| 12831 |
bug. |
| 12832 |
- bugfix: DA queue was never shutdown once it was started |
| 12833 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=241 |
| 12834 |
--------------------------------------------------------------------------- |
| 12835 |
Version 5.7.10 [V5-BETA] (rgerhards), 2011-03-29 |
| 12836 |
- bugfix: ompgsql did not work properly with ANSI SQL strings |
| 12837 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=229 |
| 12838 |
- bugfix: rsyslog did not build with --disable-regexp configure option |
| 12839 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=243 |
| 12840 |
- bugfix: PRI was invalid on Solaris for message from local log socket |
| 12841 |
- enhance: added $BOM system property to ease writing byte order masks |
| 12842 |
- bugfix: RFC5424 parser confused by empty structured data |
| 12843 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=237 |
| 12844 |
- bugfix: error return from strgen caused abort, now causes action to be |
| 12845 |
ignored (just like a failed filter) |
| 12846 |
- new sample plugin for a strgen to generate sql statement consumable |
| 12847 |
by a database plugin |
| 12848 |
- bugfix: strgen could not be used together with database outputs |
| 12849 |
because the sql/stdsql option could not be specified. This has been |
| 12850 |
solved by permitting the strgen to include the opton inside its name. |
| 12851 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=195 |
| 12852 |
--------------------------------------------------------------------------- |
| 12853 |
Version 5.7.9 [V5-BETA] (rgerhards), 2011-03-16 |
| 12854 |
- improved testbench |
| 12855 |
among others, life tests for ommysql (against a test database) have |
| 12856 |
been added, valgrind-based testing enhanced, ... |
| 12857 |
- enhance: fallback *at runtime* to epoll_create if epoll_create1 is not |
| 12858 |
available. Thanks to Michael Biebl for analysis and patch! |
| 12859 |
- bugfix: failover did not work correctly if repeated msg reduction was on |
| 12860 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=236 |
| 12861 |
affected directive was: $ActionExecOnlyWhenPreviousIsSuspended on |
| 12862 |
- bugfix: minor memory leak in omlibdbi (< 1k per instance and run) |
| 12863 |
- bugfix: (regression) omhdfs did no longer compile |
| 12864 |
- bugfix: omlibdbi did not use password from rsyslog.conf |
| 12865 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=203 |
| 12866 |
--------------------------------------------------------------------------- |
| 12867 |
Version 5.7.8 [V5-BETA] (rgerhards), 2011-03-09 |
| 12868 |
- systemd support somewhat improved (can now take over existing log sockt) |
| 12869 |
- bugfix: discard action did not work under some circumstances |
| 12870 |
fixes: http://bugzilla.adiscon.com/show_bug.cgi?id=217 |
| 12871 |
- bugfix: file descriptor leak in gnutls netstream driver |
| 12872 |
fixes: http://bugzilla.adiscon.com/show_bug.cgi?id=222 |
| 12873 |
--------------------------------------------------------------------------- |
| 12874 |
Version 5.7.7 [V5-BETA] (rgerhards), 2011-03-02 |
| 12875 |
- bugfix: potential abort condition when $RepeatedMsgReduction set to on |
| 12876 |
as well as potentially in a number of other places where MsgDup() was |
| 12877 |
used. This only happened when the imudp input module was used and it |
| 12878 |
depended on name resolution not yet had taken place. In other words, |
| 12879 |
this was a strange problem that could lead to hard to diagnose |
| 12880 |
instability. So if you experience instability, chances are good that |
| 12881 |
this fix will help. |
| 12882 |
--------------------------------------------------------------------------- |
| 12883 |
Version 5.7.6 [V5-BETA] (rgerhards), 2011-02-25 |
| 12884 |
- bugfix: fixed a memory leak and potential abort condition |
| 12885 |
this could happen if multiple rulesets were used and some output batches |
| 12886 |
contained messages belonging to more than one ruleset. |
| 12887 |
fixes: http://bugzilla.adiscon.com/show_bug.cgi?id=226 |
| 12888 |
fixes: http://bugzilla.adiscon.com/show_bug.cgi?id=218 |
| 12889 |
- bugfix: memory leak when $RepeatedMsgReduction on was used |
| 12890 |
bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=225 |
| 12891 |
--------------------------------------------------------------------------- |
| 12892 |
Version 5.7.5 [V5-BETA] (rgerhards), 2011-02-23 |
| 12893 |
- enhance: imfile did not yet support multiple rulesets, now added |
| 12894 |
we do this directly in the beta because a) it does not affect existing |
| 12895 |
functionality and b) one may argue that this missing functionality is |
| 12896 |
close to a bug. |
| 12897 |
- improved testbench, added tests for imuxsock |
| 12898 |
- bugfix: imuxsock did no longer sanitize received messages |
| 12899 |
This was a regression from the imuxsock partial rewrite. Happened |
| 12900 |
because the message is no longer run through the standard parsers. |
| 12901 |
bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=224 |
| 12902 |
- bugfix: minor race condition in action.c - considered cosmetic |
| 12903 |
This is considered cosmetic as multiple threads tried to write exactly |
| 12904 |
the same value into the same memory location without sync. The method |
| 12905 |
has been changed so this can no longer happen. |
| 12906 |
--------------------------------------------------------------------------- |
| 12907 |
Version 5.7.4 [V5-BETA] (rgerhards), 2011-02-17 |
| 12908 |
- added pmsnare parser module (written by David Lang) |
| 12909 |
- enhanced imfile to support non-cancel input termination |
| 12910 |
- improved systemd socket activation thanks to Marius Tomaschewski |
| 12911 |
- improved error reporting for $WorkDirectory |
| 12912 |
non-existence and other detectable problems are now reported, |
| 12913 |
and the work directory is NOT set in this case |
| 12914 |
- bugfix: pmsnare caused abort under some conditions |
| 12915 |
- bugfix: abort if imfile reads file line of more than 64KiB |
| 12916 |
Thanks to Peter Eisentraut for reporting and analyzing this problem. |
| 12917 |
bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=221 |
| 12918 |
- bugfix: queue engine did not properly slow down inputs in FULL_DELAY mode |
| 12919 |
when in disk-assisted mode. This especially affected imfile, which |
| 12920 |
created unnecessarily queue files if a large set of input file data was |
| 12921 |
to process. |
| 12922 |
- bugfix: very long running actions could prevent shutdown under some |
| 12923 |
circumstances. This has now been solved, at least for common |
| 12924 |
situations. |
| 12925 |
- bugfix: fixed compile problem due to empty structs |
| 12926 |
this occurred only on some platforms/compilers. thanks to Dražen Kačar |
| 12927 |
for the fix |
| 12928 |
--------------------------------------------------------------------------- |
| 12929 |
Version 5.7.3 [V5-BETA] (rgerhards), 2011-02-07 |
| 12930 |
- added support for processing multi-line messages in imfile |
| 12931 |
- added $IMUDPSchedulingPolicy and $IMUDPSchedulingPriority config settings |
| 12932 |
- added $LocalHostName config directive |
| 12933 |
- bugfix: fixed build problems on some platforms |
| 12934 |
namely those that have 32bit atomic operations but not 64 bit ones |
| 12935 |
- bugfix: local hostname was pulled too-early, so that some config |
| 12936 |
directives (namely FQDN settings) did not have any effect |
| 12937 |
- bugfix: imfile did duplicate messages under some circumstances |
| 12938 |
- added $OMMySQLConfigFile config directive |
| 12939 |
- added $OMMySQLConfigSection config directive |
| 12940 |
--------------------------------------------------------------------------- |
| 12941 |
Version 5.7.2 [V5-DEVEL] (rgerhards), 2010-11-26 |
| 12942 |
- bugfix(important): problem in TLS handling could cause rsyslog to loop |
| 12943 |
in a tight loop, effectively disabling functionality and bearing the |
| 12944 |
risk of unresponsiveness of the whole system. |
| 12945 |
Bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=194 |
| 12946 |
- bugfix: imfile state file was not written when relative file name |
| 12947 |
for it was specified |
| 12948 |
- bugfix: compile failed on systems without epoll_create1() |
| 12949 |
Thanks to David Hill for providing a fix. |
| 12950 |
- bugfix: atomic increment for msg object may not work correct on all |
| 12951 |
platforms. Thanks to Chris Metcalf for the patch |
| 12952 |
- bugfix: replacements for atomic operations for non-int sized types had |
| 12953 |
problems. At least one instance of that problem could potentially lead |
| 12954 |
to abort (inside omfile). |
| 12955 |
--------------------------------------------------------------------------- |
| 12956 |
Version 5.7.1 [V5-DEVEL] (rgerhards), 2010-10-05 |
| 12957 |
- support for Hadoop's HDFS added (via omhdfs) |
| 12958 |
- imuxsock now optionally use SCM_CREDENTIALS to pull the pid from the log |
| 12959 |
socket itself |
| 12960 |
(thanks to Lennart Poettering for the suggesting this feature) |
| 12961 |
- imuxsock now optionally uses per-process input rate limiting, guarding the |
| 12962 |
user against processes spamming the system log |
| 12963 |
(thanks to Lennart Poettering for suggesting this feature) |
| 12964 |
- added new config statements |
| 12965 |
* $InputUnixListenSocketUsePIDFromSystem |
| 12966 |
* $SystemLogUsePIDFromSystem |
| 12967 |
* $SystemLogRateLimitInterval |
| 12968 |
* $SystemLogRateLimitBurst |
| 12969 |
* $SystemLogRateLimitSeverity |
| 12970 |
* $IMUxSockRateLimitInterval |
| 12971 |
* $IMUxSockRateLimitBurst |
| 12972 |
* $IMUxSockRateLimitSeverity |
| 12973 |
- imuxsock now supports up to 50 different sockets for input |
| 12974 |
- some code cleanup in imuxsock (consider this a release a major |
| 12975 |
modification, especially if problems show up) |
| 12976 |
- bugfix: /dev/log was unlinked even when passed in from systemd |
| 12977 |
in which case it should be preserved as systemd owns it |
| 12978 |
--------------------------------------------------------------------------- |
| 12979 |
Version 5.7.0 [V5-DEVEL] (rgerhards), 2010-09-16 |
| 12980 |
- added module impstat to emit periodic statistics on rsyslog counters |
| 12981 |
- support for systemd officially added |
| 12982 |
* acquire /dev/log socket optionally from systemd |
| 12983 |
thanks to Lennart Poettering for this patch |
| 12984 |
* sd-systemd API added as part of rsyslog runtime library |
| 12985 |
--------------------------------------------------------------------------- |
| 12986 |
Version 5.6.5 [V5-STABLE] (rgerhards), 2011-03-22 |
| 12987 |
- bugfix: failover did not work correctly if repeated msg reduction was on |
| 12988 |
affected directive was: $ActionExecOnlyWhenPreviousIsSuspended on |
| 12989 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=236 |
| 12990 |
- bugfix: omlibdbi did not use password from rsyslog.con |
| 12991 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=203 |
| 12992 |
- bugfix(kind of): tell users that config graph can currently not be |
| 12993 |
generated |
| 12994 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=232 |
| 12995 |
- bugfix: discard action did not work under some circumstances |
| 12996 |
fixes: http://bugzilla.adiscon.com/show_bug.cgi?id=217 |
| 12997 |
(backport from 5.7.8) |
| 12998 |
--------------------------------------------------------------------------- |
| 12999 |
Version 5.6.4 [V5-STABLE] (rgerhards), 2011-03-03 |
| 13000 |
- bugfix: potential abort condition when $RepeatedMsgReduction set to on |
| 13001 |
as well as potentially in a number of other places where MsgDup() was |
| 13002 |
used. This only happened when the imudp input module was used and it |
| 13003 |
depended on name resolution not yet had taken place. In other words, |
| 13004 |
this was a strange problem that could lead to hard to diagnose |
| 13005 |
instability. So if you experience instability, chances are good that |
| 13006 |
this fix will help. |
| 13007 |
- bugfix: fixed a memory leak and potential abort condition |
| 13008 |
this could happen if multiple rulesets were used and some output batches |
| 13009 |
contained messages belonging to more than one ruleset. |
| 13010 |
fixes: http://bugzilla.adiscon.com/show_bug.cgi?id=226 |
| 13011 |
fixes: http://bugzilla.adiscon.com/show_bug.cgi?id=218 |
| 13012 |
- bugfix: memory leak when $RepeatedMsgReduction on was used |
| 13013 |
bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=225 |
| 13014 |
--------------------------------------------------------------------------- |
| 13015 |
Version 5.6.3 [V5-STABLE] (rgerhards), 2011-01-26 |
| 13016 |
- bugfix: action processor released memory too early, resulting in |
| 13017 |
potential issue in retry cases (but very unlikely due to another |
| 13018 |
bug, which I also fixed -- only after the fix this problem here |
| 13019 |
became actually visible). |
| 13020 |
- bugfix: batch processing flagged invalid message as "bad" under some |
| 13021 |
circumstances |
| 13022 |
- bugfix: uninitialized variable could cause issues under extreme conditions |
| 13023 |
plus some minor nits. This was found after a clang static code analyzer |
| 13024 |
analysis (great tool, and special thanks to Marcin for telling me about |
| 13025 |
it!) |
| 13026 |
- bugfix: batches which had actions in error were not properly retried in |
| 13027 |
all cases |
| 13028 |
- bugfix: imfile did duplicate messages under some circumstances |
| 13029 |
- bugfix: testbench was not activated if no Java was present on system |
| 13030 |
... what actually was a left-over. Java is no longer required. |
| 13031 |
--------------------------------------------------------------------------- |
| 13032 |
Version 5.6.2 [V5-STABLE] (rgerhards), 2010-11-30 |
| 13033 |
- bugfix: compile failed on systems without epoll_create1() |
| 13034 |
Thanks to David Hill for providing a fix. |
| 13035 |
- bugfix: atomic increment for msg object may not work correct on all |
| 13036 |
platforms. Thanks to Chris Metcalf for the patch |
| 13037 |
- bugfix: replacements for atomic operations for non-int sized types had |
| 13038 |
problems. At least one instance of that problem could potentially lead |
| 13039 |
to abort (inside omfile). |
| 13040 |
- added the $InputFilePersistStateInterval config directive to imfile |
| 13041 |
- changed imfile so that the state file is never deleted (makes imfile |
| 13042 |
more robust in regard to fatal failures) |
| 13043 |
- bugfix: a slightly more informative error message when a TCP |
| 13044 |
connections is aborted |
| 13045 |
--------------------------------------------------------------------------- |
| 13046 |
Version 5.6.1 [V5-STABLE] (rgerhards), 2010-11-24 |
| 13047 |
- bugfix(important): problem in TLS handling could cause rsyslog to loop |
| 13048 |
in a tight loop, effectively disabling functionality and bearing the |
| 13049 |
risk of unresponsiveness of the whole system. |
| 13050 |
Bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=194 |
| 13051 |
- permitted imptcp to work on systems which support epoll(), but not |
| 13052 |
epoll_create(). |
| 13053 |
Bug: http://bugzilla.adiscon.com/show_bug.cgi?id=204 |
| 13054 |
Thanks to Nicholas Brink for reporting this problem. |
| 13055 |
- bugfix: testbench failed if imptcp was not enabled |
| 13056 |
- bugfix: segfault when an *empty* template was used |
| 13057 |
Bug: http://bugzilla.adiscon.com/show_bug.cgi?id=206 |
| 13058 |
Thanks to David Hill for alerting us. |
| 13059 |
- bugfix: compile failed with --enable-unlimited-select |
| 13060 |
thanks varmojfekoj for the patch |
| 13061 |
--------------------------------------------------------------------------- |
| 13062 |
Version 5.6.0 [V5-STABLE] (rgerhards), 2010-10-19 |
| 13063 |
|
| 13064 |
This release brings all changes and enhancements of the 5.5.x series |
| 13065 |
to the v5-stable branch. |
| 13066 |
|
| 13067 |
- bugfix: a couple of problems that imfile had on some platforms, namely |
| 13068 |
Ubuntu (not their fault, but occurred there) |
| 13069 |
- bugfix: imfile utilizes 32 bit to track offset. Most importantly, |
| 13070 |
this problem can not experienced on Fedora 64 bit OS (which has |
| 13071 |
64 bit long's!) |
| 13072 |
--------------------------------------------------------------------------- |
| 13073 |
Version 5.5.7 [V5-BETA] (rgerhards), 2010-08-09 |
| 13074 |
- changed omudpspoof default spoof address to simplify typical use case |
| 13075 |
thanks to David Lang for suggesting this |
| 13076 |
- doc bugfix: pmlastmsg doc samples had errors |
| 13077 |
- bugfix[minor]: pmrfc3164sd had invalid name (resided in rsyslog name |
| 13078 |
space, what should not be the case for a contributed module) |
| 13079 |
- added omuxsock, which permits to write message to local Unix sockets |
| 13080 |
this is the counterpart to imuxsock, enabling fast local forwarding |
| 13081 |
--------------------------------------------------------------------------- |
| 13082 |
Version 5.5.6 [DEVEL] (rgerhards), 2010-07-21 |
| 13083 |
- added parser modules |
| 13084 |
* pmlastmsg, which supports the notoriously malformed "last message |
| 13085 |
repeated n times" messages from some syslogd's (namely sysklogd) |
| 13086 |
* pmrfc3164sd (contributed), supports RFC5424 structured data in |
| 13087 |
RFC3164 messages [untested] |
| 13088 |
- added new module type "string generator", used to speed up output |
| 13089 |
processing. Expected speedup for (typical) rsyslog processing is |
| 13090 |
roughly 5 to 6 percent compared to using string-based templates. |
| 13091 |
They may also be used to do more complex formatting with custom |
| 13092 |
C code, what provided greater flexibility and probably far higher |
| 13093 |
speed, for example if using multiple regular expressions within a |
| 13094 |
template. |
| 13095 |
- added 4 string generators for |
| 13096 |
* RSYSLOG_FileFormat |
| 13097 |
* RSYSLOG_TraditionalFileFormat |
| 13098 |
* RSYSLOG_ForwardFormat |
| 13099 |
* RSYSLOG_TraditionalForwardFormat |
| 13100 |
- bugfix: mutexes used to simulate atomic instructions were not destructed |
| 13101 |
- bugfix: regression caused more locking action in msg.c than necessary |
| 13102 |
- bugfix: "$ActionExecOnlyWhenPreviousIsSuspended on" was broken |
| 13103 |
- bugfix: segfault on HUP when "HUPIsRestart" was set to "on" |
| 13104 |
thanks varmojfekoj for the patch |
| 13105 |
- bugfix: default for $OMFileFlushOnTXEnd was wrong ("off"). |
| 13106 |
This, in default mode, caused buffered writing to be used, what |
| 13107 |
means that it looked like no output were written or partial |
| 13108 |
lines. Thanks to Michael Biebl for pointing out this bug. |
| 13109 |
- bugfix: programname filter in ! configuration can not be reset |
| 13110 |
Thanks to Kiss Gabor for the patch. |
| 13111 |
--------------------------------------------------------------------------- |
| 13112 |
Version 5.5.5 [DEVEL] (rgerhards), 2010-05-20 |
| 13113 |
- added new cancel-reduced action thread termination method |
| 13114 |
We now manage to cancel threads that block inside a retry loop to |
| 13115 |
terminate without the need to cancel the thread. Avoiding cancellation |
| 13116 |
helps keep the system complexity minimal and thus provides for better |
| 13117 |
stability. This also solves some issues with improper shutdown when |
| 13118 |
inside an action retry loop. |
| 13119 |
--------------------------------------------------------------------------- |
| 13120 |
Version 5.5.4 [DEVEL] (rgerhards), 2010-05-03 |
| 13121 |
- This version offers full support for Solaris on Intel and Sparc |
| 13122 |
- bugfix: problems with atomic operations emulation |
| 13123 |
replaced atomic operation emulation with new code. The previous code |
| 13124 |
seemed to have some issue and also limited concurrency severely. The |
| 13125 |
whole atomic operation emulation has been rewritten. |
| 13126 |
- bugfix: netstream ptcp support class was not correctly build on systems |
| 13127 |
without epoll() support |
| 13128 |
- bugfix: segfault on Solaris/Sparc |
| 13129 |
--------------------------------------------------------------------------- |
| 13130 |
Version 5.5.3 [DEVEL] (rgerhards), 2010-04-09 |
| 13131 |
- added basic but functional support for Solaris |
| 13132 |
- imported many bugfixes from 3.6.2/4.6.1 (see ChangeLog below!) |
| 13133 |
- added new property replacer option "date-rfc3164-buggyday" primarily |
| 13134 |
to ease migration from syslog-ng. See property replacer doc for |
| 13135 |
details. |
| 13136 |
- added capability to turn off standard LF delimiter in TCP server |
| 13137 |
via new directive "$InputTCPServerDisableLFDelimiter on" |
| 13138 |
- bugfix: failed to compile on systems without epoll support |
| 13139 |
- bugfix: comment char ('#') in literal terminated script parsing |
| 13140 |
and thus could not be used. |
| 13141 |
but tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=119 |
| 13142 |
[merged in from v3.22.2] |
| 13143 |
- imported patches from 4.6.0: |
| 13144 |
* improved testbench to contain samples for totally malformed messages |
| 13145 |
which miss parts of the message content |
| 13146 |
* bugfix: some malformed messages could lead to a missing LF inside files |
| 13147 |
or some other missing parts of the template content. |
| 13148 |
* bugfix: if a message ended immediately with a hostname, the hostname |
| 13149 |
was mistakenly interpreted as TAG, and localhost be used as hostname |
| 13150 |
--------------------------------------------------------------------------- |
| 13151 |
Version 5.5.2 [DEVEL] (rgerhards), 2010-02-05 |
| 13152 |
- applied patches that make rsyslog compile under Apple OS X. |
| 13153 |
Thanks to trey for providing these. |
| 13154 |
- replaced data type "bool" by "sbool" because this created some |
| 13155 |
portability issues. |
| 13156 |
- added $Escape8BitCharactersOnReceive directive |
| 13157 |
Thanks to David Lang for suggesting it. |
| 13158 |
- worked around an issue where omfile failed to compile on 32 bit platforms |
| 13159 |
under some circumstances (this smells like a gcc problem, but a simple |
| 13160 |
solution was available). Thanks to Kenneth Marshall for some advice. |
| 13161 |
- extended testbench |
| 13162 |
--------------------------------------------------------------------------- |
| 13163 |
Version 5.5.1 [DEVEL] (rgerhards), 2009-11-27 |
| 13164 |
- introduced the ability for netstream drivers to utilize an epoll interface |
| 13165 |
This offers increased performance and removes the select() FDSET size |
| 13166 |
limit from imtcp. Note that we fall back to select() if there is no |
| 13167 |
epoll netstream drivers. So far, an epoll driver has only been |
| 13168 |
implemented for plain tcp syslog, the rest will follow once the code |
| 13169 |
proves well in practice AND there is demand. |
| 13170 |
- re-implemented $EscapeControlCharacterTab config directive |
| 13171 |
Based on Jonathan Bond-Caron's patch for v4. This now also includes some |
| 13172 |
automated tests. |
| 13173 |
- bugfix: enabling GSSServer crashes rsyslog startup |
| 13174 |
Thanks to Tomas Kubina for the patch [imgssapi] |
| 13175 |
- bugfix (kind of): check if TCP connection is still alive if using TLS |
| 13176 |
Thanks to Jonathan Bond-Caron for the patch. |
| 13177 |
--------------------------------------------------------------------------- |
| 13178 |
Version 5.5.0 [DEVEL] (rgerhards), 2009-11-18 |
| 13179 |
- moved DNS resolution code out of imudp and into the backend processing |
| 13180 |
Most importantly, DNS resolution now never happens if the resolved name |
| 13181 |
is not required. Note that this applies to imudp - for the other inputs, |
| 13182 |
DNS resolution almost comes for free, so we do not do it there. However, |
| 13183 |
the new method has been implemented in a generic way and as such may |
| 13184 |
also be used by other modules in the future. |
| 13185 |
- added option to use unlimited-size select() calls |
| 13186 |
Thanks to varmojfekoj for the patch |
| 13187 |
This is not done in imudp, as it natively supports epoll(). |
| 13188 |
- doc: improved description of what loadable modules can do |
| 13189 |
--------------------------------------------------------------------------- |
| 13190 |
Version 5.4.2 [v5-stable] (rgerhards), 2010-03-?? |
| 13191 |
- bugfix(kind of): output plugin retry behavior could cause engine to loop |
| 13192 |
The rsyslog engine did not guard itself against output modules that do |
| 13193 |
not properly convey back the tryResume() behavior. This then leads to |
| 13194 |
what looks like an endless loop. I consider this to be a bug of the |
| 13195 |
engine not only because it should be hardened against plugin misbehavior, |
| 13196 |
but also because plugins may not be totally able to avoid this situation |
| 13197 |
(depending on the type of and processing done by the plugin). |
| 13198 |
- bugfix: testbench failed when not executed in UTC+1 timezone |
| 13199 |
accidentally, the time zone information was kept inside some |
| 13200 |
to-be-checked-for responses |
| 13201 |
- temporary bugfix replaced by permanent one for |
| 13202 |
message-induced off-by-one error (potential segfault) (see 4.6.2) |
| 13203 |
The analysis has been completed and a better fix been crafted and |
| 13204 |
integrated. |
| 13205 |
- bugfix(minor): status variable was uninitialized |
| 13206 |
However, this would have caused harm only if NO parser modules at |
| 13207 |
all were loaded, which would lead to a defunctional configuration |
| 13208 |
at all. And, even more important, this is impossible as two parser |
| 13209 |
modules are built-in and thus can not be "not loaded", so we always |
| 13210 |
have a minimum of two. |
| 13211 |
--------------------------------------------------------------------------- |
| 13212 |
Version 5.4.1 [v5-stable] (rgerhards), 2010-03-?? |
| 13213 |
- added new property replacer option "date-rfc3164-buggyday" primarily |
| 13214 |
to ease migration from syslog-ng. See property replacer doc for |
| 13215 |
details. [backport from 5.5.3 because urgently needed by some] |
| 13216 |
- imported all bugfixes vom 4.6.2 (see below) |
| 13217 |
--------------------------------------------------------------------------- |
| 13218 |
Version 5.4.0 [v5-stable] (rgerhards), 2010-03-08 |
| 13219 |
*************************************************************************** |
| 13220 |
* This is a new stable v5 version. It contains all fixes and enhancements * |
| 13221 |
* made during the 5.3.x phase as well as those listed below. * |
| 13222 |
* Note that the 5.2.x series was quite buggy and as such all users are * |
| 13223 |
* strongly advised to upgrade to 5.4.0. * |
| 13224 |
*************************************************************************** |
| 13225 |
- bugfix: omruleset failed to work in many cases |
| 13226 |
bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=179 |
| 13227 |
Thanks to Ryan B. Lynch for reporting this issue. |
| 13228 |
- bugfix: comment char ('#') in literal terminated script parsing |
| 13229 |
and thus could not be used. |
| 13230 |
but tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=119 |
| 13231 |
[merged in from v3.22.2] |
| 13232 |
--------------------------------------------------------------------------- |
| 13233 |
Version 5.3.7 [BETA] (rgerhards), 2010-01-27 |
| 13234 |
- bugfix: queues in direct mode could case a segfault, especially if an |
| 13235 |
action failed for action queues. The issue was an invalid increment of |
| 13236 |
a stack-based pointer which lead to destruction of the stack frame and |
| 13237 |
thus a segfault on function return. |
| 13238 |
Thanks to Michael Biebl for alerting us on this problem. |
| 13239 |
- bugfix: hostname accidentally set to IP address for some message sources, |
| 13240 |
for example imudp. Thanks to Anton for reporting this bug. [imported v4] |
| 13241 |
- bugfix: ompgsql had problems with transaction support, what actually |
| 13242 |
rendered it unusable. Thanks to forum user "horhe" for alerting me |
| 13243 |
on this bug and helping to debug/fix it! [imported from 5.3.6] |
| 13244 |
- bugfix: $CreateDirs variable not properly initialized, default thus |
| 13245 |
was random (but most often "on") [imported from v3] |
| 13246 |
- bugfix: potential segfaults during queue shutdown |
| 13247 |
(bugs require certain non-standard settings to appear) |
| 13248 |
Thanks to varmojfekoj for the patch [imported from 4.5.8] |
| 13249 |
[backport from 5.5.2] |
| 13250 |
- bugfix: wrong memory assignment for a config variable (probably |
| 13251 |
without causing any harm) [backport from 5.2.2] |
| 13252 |
- bugfix: rsyslog hangs when writing to a named pipe which nobody was |
| 13253 |
reading. Thanks to Michael Biebl for reporting this bug. |
| 13254 |
Bugzilla entry: http://bugzilla.adiscon.com/show_bug.cgi?id=169 |
| 13255 |
[imported from 4.5.8] |
| 13256 |
--------------------------------------------------------------------------- |
| 13257 |
Version 5.3.6 [BETA] (rgerhards), 2010-01-13 |
| 13258 |
- bugfix: ompgsql did not properly check the server connection in |
| 13259 |
tryResume(), which could lead to rsyslog running in a tight loop |
| 13260 |
- bugfix: suspension during beginTransaction() was not properly handled |
| 13261 |
by rsyslog core |
| 13262 |
- bugfix: omfile output was only written when buffer was full, not at |
| 13263 |
end of transaction |
| 13264 |
- bugfix: commit transaction was not properly conveyed to message layer, |
| 13265 |
potentially resulting in non-message destruction and thus hangs |
| 13266 |
- bugfix: enabling GSSServer crashes rsyslog startup |
| 13267 |
Thanks to Tomas Kubina for the patch [imgssapi] |
| 13268 |
- bugfix (kind of): check if TCP connection is still alive if using TLS |
| 13269 |
Thanks to Jonathan Bond-Caron for the patch. |
| 13270 |
- bugfix: $CreateDirs variable not properly initialized, default thus |
| 13271 |
was random (but most often "on") [imported from v3] |
| 13272 |
- bugfix: ompgsql had problems with transaction support, what actually |
| 13273 |
rendered it unusable. Thanks to forum user "horhe" for alerting me |
| 13274 |
on this bug and helping to debug/fix it! |
| 13275 |
- bugfix: memory leak when sending messages in zip-compressed format |
| 13276 |
Thanks to Naoya Nakazawa for analyzing this issue and providing a patch. |
| 13277 |
- worked around an issue where omfile failed to compile on 32 bit platforms |
| 13278 |
under some circumstances (this smells like a gcc problem, but a simple |
| 13279 |
solution was available). Thanks to Kenneth Marshall for some advice. |
| 13280 |
[backported from 5.5.x branch] |
| 13281 |
--------------------------------------------------------------------------- |
| 13282 |
Version 5.3.5 [BETA] (rgerhards), 2009-11-13 |
| 13283 |
- some light performance enhancement by replacing time() call with much |
| 13284 |
faster (at least under linux) gettimeofday() calls. |
| 13285 |
- some improvement of omfile performance with dynafiles |
| 13286 |
saved costly time() calls by employing a logical clock, which is |
| 13287 |
sufficient for the use case |
| 13288 |
- bugfix: omudpspoof miscalculated source and destination ports |
| 13289 |
while this was probably not noticed for source ports, it resulted in |
| 13290 |
almost all destination ports being wrong, except for the default port |
| 13291 |
of 514, which by virtue of its binary representation was calculated |
| 13292 |
correct (and probably thus the bug not earlier detected). |
| 13293 |
- bugfixes imported from earlier releases |
| 13294 |
* bugfix: named pipes did no longer work (they always got an open error) |
| 13295 |
this was a regression from the omfile rewrite in 4.5.0 |
| 13296 |
* bugfix(testbench): sequence check was not always performed correctly, |
| 13297 |
that could result in tests reporting success when they actually failed |
| 13298 |
- improved testbench: added tests for UDP forwarding and omudpspoof |
| 13299 |
- doc bugfix: omudpspoof had wrong config command names ("om" missing) |
| 13300 |
- bugfix [imported from 4.4.3]: $ActionExecOnlyOnceEveryInterval did |
| 13301 |
not work. |
| 13302 |
- [inport v4] improved testbench, contains now tcp and gzip test cases |
| 13303 |
- [import v4] added a so-called "On Demand Debug" mode, in which debug |
| 13304 |
output can be generated only after the process has started, but not right |
| 13305 |
from the beginning. This is assumed to be useful for hard-to-find bugs. |
| 13306 |
Also improved the doc on the debug system. |
| 13307 |
- bugfix: segfault on startup when -q or -Q option was given |
| 13308 |
[imported from v3-stable] |
| 13309 |
--------------------------------------------------------------------------- |
| 13310 |
Version 5.3.4 [DEVEL] (rgerhards), 2009-11-04 |
| 13311 |
- added the ability to create custom message parsers |
| 13312 |
- added $RulesetParser config directive that permits to bind specific |
| 13313 |
parsers to specific rulesets |
| 13314 |
- added omruleset output module, which provides great flexibility in |
| 13315 |
action processing. THIS IS A VERY IMPORTANT ADDITION, see its doc |
| 13316 |
for why. |
| 13317 |
- added the capability to have ruleset-specific main message queues |
| 13318 |
This offers considerable additional flexibility AND superior performance |
| 13319 |
(in cases where multiple inputs now can avoid lock contention) |
| 13320 |
- bugfix: correct default for escape ('#') character restored |
| 13321 |
This was accidentally changed to '\\', thanks to David Lang for reporting |
| 13322 |
- bugfix(testbench): testcase did not properly wait for rsyslogd shutdown |
| 13323 |
thus some unpredictable behavior and a false negative test result |
| 13324 |
could occur. |
| 13325 |
--------------------------------------------------------------------------- |
| 13326 |
Version 5.3.3 [DEVEL] (rgerhards), 2009-10-27 |
| 13327 |
- simplified and thus speeded up the queue engine, also fixed some |
| 13328 |
potential race conditions (in very unusual shutdown conditions) |
| 13329 |
along the way. The threading model has seriously changes, so there may |
| 13330 |
be some regressions. |
| 13331 |
- enhanced test environment (including testbench): support for enhancing |
| 13332 |
probability of memory addressing failure by using non-NULL default |
| 13333 |
value for malloced memory (optional, only if requested by configure |
| 13334 |
option). This helps to track down some otherwise undetected issues |
| 13335 |
within the testbench. |
| 13336 |
- bugfix: potential abort if inputname property was not set |
| 13337 |
primarily a problem of imdiag |
| 13338 |
- bugfix: message processing states were not set correctly in all cases |
| 13339 |
however, this had no negative effect, as the message processing state |
| 13340 |
was not evaluated when a batch was deleted, and that was the only case |
| 13341 |
where the state could be wrong. |
| 13342 |
--------------------------------------------------------------------------- |
| 13343 |
Version 5.3.2 [DEVEL] (rgerhards), 2009-10-21 |
| 13344 |
- enhanced omfile to support transactional interface. This will increase |
| 13345 |
performance in many cases. |
| 13346 |
- added multi-ruleset support to imudp |
| 13347 |
- re-enabled input thread termination handling that does avoid thread |
| 13348 |
cancellation where possible. This provides a more reliable mode of |
| 13349 |
rsyslogd termination (canceling threads my result in not properly |
| 13350 |
freed resources and potential later hangs, even though we perform |
| 13351 |
proper cancel handling in our code). This is part of an effort to |
| 13352 |
reduce thread cancellation as much as possible in rsyslog. |
| 13353 |
NOTE: the code previously written code for this functionality had a |
| 13354 |
subtle race condition. The new code solves that. |
| 13355 |
- enhanced immark to support non-cancel input module termination |
| 13356 |
- improved imudp so that epoll can be used in more environments, |
| 13357 |
fixed potential compile time problem if EPOLL_CLOEXEC is not available. |
| 13358 |
- some cleanup/slight improvement: |
| 13359 |
* changed imuxsock to no longer use deprecated submitAndParseMsg() IF |
| 13360 |
* changed submitAndParseMsg() interface to be a wrapper around the new |
| 13361 |
way of message creation/submission. This enables older plugins to be |
| 13362 |
used together with the new interface. The removal also enables us to |
| 13363 |
drop a lot of duplicate code, reducing complexity and increasing |
| 13364 |
maintainability. |
| 13365 |
- bugfix: segfault when starting up with an invalid .qi file for a disk queue |
| 13366 |
Failed for both pure disk as well as DA queues. Now, we emit an error |
| 13367 |
message and disable disk queueing facility. |
| 13368 |
- bugfix: potential segfault on messages with empty MSG part. This was a |
| 13369 |
recently introduced regression. |
| 13370 |
- bugfix: debug string larger than 1K were improperly displayed. Max size |
| 13371 |
is now 32K, and if a string is even longer it is meaningfully truncated. |
| 13372 |
--------------------------------------------------------------------------- |
| 13373 |
Version 5.3.1 [DEVEL] (rgerhards), 2009-10-05 |
| 13374 |
- added $AbortOnUncleanConfig directive - permits to prevent startup when |
| 13375 |
there are problems with the configuration file. See it's doc for |
| 13376 |
details. |
| 13377 |
- included some important fixes from v4-stable: |
| 13378 |
* bugfix: invalid handling of zero-sized messages |
| 13379 |
* bugfix: zero-sized UDP messages are no longer processed |
| 13380 |
* bugfix: random data could be appended to message |
| 13381 |
* bugfix: reverse lookup reduction logic in imudp do DNS queries too often |
| 13382 |
- bugfixes imported from 4.5.4: |
| 13383 |
* bugfix: potential segfault in stream writer on destruction |
| 13384 |
* bugfix: potential race in object loader (obj.c) during use/release |
| 13385 |
* bugfixes: potential problems in out file zip writer |
| 13386 |
--------------------------------------------------------------------------- |
| 13387 |
Version 5.3.0 [DEVEL] (rgerhards), 2009-09-14 |
| 13388 |
- begun to add simple GUI programs to gain insight into running rsyslogd |
| 13389 |
instances and help setup and troubleshooting (active via the |
| 13390 |
--enable-gui ./configure switch) |
| 13391 |
- changed imudp to utilize epoll(), where available. This shall provide |
| 13392 |
slightly better performance (just slightly because we called select() |
| 13393 |
rather infrequently on a busy system) |
| 13394 |
--------------------------------------------------------------------------- |
| 13395 |
Version 5.2.2 [v5-stable] (rgerhards), 2009-11-?? |
| 13396 |
- bugfix: enabling GSSServer crashes rsyslog startup |
| 13397 |
Thanks to Tomas Kubina for the patch [imgssapi] |
| 13398 |
--------------------------------------------------------------------------- |
| 13399 |
Version 5.2.1 [v5-stable] (rgerhards), 2009-11-02 |
| 13400 |
- bugfix [imported from 4.4.3]: $ActionExecOnlyOnceEveryInterval did |
| 13401 |
not work. |
| 13402 |
- bugfix: segfault on startup when -q or -Q option was given |
| 13403 |
[imported from v3-stable] |
| 13404 |
--------------------------------------------------------------------------- |
| 13405 |
Version 5.2.0 [v5-stable] (rgerhards), 2009-11-02 |
| 13406 |
This is a re-release of version 5.1.6 as stable after we did not get any bug |
| 13407 |
reports during the whole beta phase. Still, this first v5-stable may not be |
| 13408 |
as stable as one hopes for, I am not sure if we did not get bug reports |
| 13409 |
just because nobody tried it. Anyhow, we need to go forward and so we |
| 13410 |
have the initial v5-stable. |
| 13411 |
--------------------------------------------------------------------------- |
| 13412 |
Version 5.1.6 [v5-beta] (rgerhards), 2009-10-15 |
| 13413 |
- feature imports from v4.5.6 |
| 13414 |
- bugfix: potential race condition when queue worker threads were |
| 13415 |
terminated |
| 13416 |
- bugfix: solved potential (temporary) stall of messages when the queue was |
| 13417 |
almost empty and few new data added (caused testbench to sometimes hang!) |
| 13418 |
- fixed some race condition in testbench |
| 13419 |
- added more elaborate diagnostics to parts of the testbench |
| 13420 |
- bugfixes imported from 4.5.4: |
| 13421 |
* bugfix: potential segfault in stream writer on destruction |
| 13422 |
* bugfix: potential race in object loader (obj.c) during use/release |
| 13423 |
* bugfixes: potential problems in out file zip writer |
| 13424 |
- included some important fixes from 4.4.2: |
| 13425 |
* bugfix: invalid handling of zero-sized messages |
| 13426 |
* bugfix: zero-sized UDP messages are no longer processed |
| 13427 |
* bugfix: random data could be appended to message |
| 13428 |
* bugfix: reverse lookup reduction logic in imudp do DNS queries too often |
| 13429 |
--------------------------------------------------------------------------- |
| 13430 |
Version 5.1.5 [v5-beta] (rgerhards), 2009-09-11 |
| 13431 |
- added new config option $ActionWriteAllMarkMessages |
| 13432 |
this option permits to process mark messages under all circumstances, |
| 13433 |
even if an action was recently called. This can be useful to use mark |
| 13434 |
messages as a kind of heartbeat. |
| 13435 |
- added new config option $InputUnixListenSocketCreatePath |
| 13436 |
to permit the auto-creation of paths to additional log sockets. This |
| 13437 |
turns out to be useful if they reside on temporary file systems and |
| 13438 |
rsyslogd starts up before the daemons that create these sockets |
| 13439 |
(rsyslogd always creates the socket itself if it does not exist). |
| 13440 |
- added $LogRSyslogStatusMessages configuration directive |
| 13441 |
permitting to turn off rsyslog start/stop/HUP messages. See Debian |
| 13442 |
ticket http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=463793 |
| 13443 |
- bugfix: hostnames with dashes in them were incorrectly treated as |
| 13444 |
malformed, thus causing them to be treated as TAG (this was a regression |
| 13445 |
introduced from the "rfc3164 strict" change in 4.5.0). Testbench has been |
| 13446 |
updated to include a sample message with a hostname containing a dash. |
| 13447 |
- bugfix: strings improperly reused, resulting in some message properties |
| 13448 |
be populated with strings from previous messages. This was caused by |
| 13449 |
an improper predicate check. |
| 13450 |
- added new config directive $omfileForceChown [import from 4.7.0] |
| 13451 |
--------------------------------------------------------------------------- |
| 13452 |
Version 5.1.4 [DEVEL] (rgerhards), 2009-08-20 |
| 13453 |
- legacy syslog parser changed so that it now accepts date stamps in |
| 13454 |
wrong case. Some devices seem to create them and I do not see any harm |
| 13455 |
in supporting that. |
| 13456 |
- added $InputTCPMaxListeners directive - permits to specify how many |
| 13457 |
TCP servers shall be possible (default is 20). |
| 13458 |
- bugfix: memory leak with some input modules. Those inputs that |
| 13459 |
use parseAndSubmitMsg() leak two small memory blocks with every message. |
| 13460 |
Typically, those process only relatively few messages, so the issue |
| 13461 |
does most probably not have any effect in practice. |
| 13462 |
- bugfix: if tcp listen port could not be created, no error message was |
| 13463 |
emitted |
| 13464 |
- bugfix: discard action did not work (did not discard messages) |
| 13465 |
- bugfix: discard action caused segfault |
| 13466 |
- bugfix: potential segfault in output file writer (omfile) |
| 13467 |
In async write mode, we use modular arithmetic to index the output |
| 13468 |
buffer array. However, the counter variables accidentally were signed, |
| 13469 |
thus resulting in negative indices after integer overflow. That in turn |
| 13470 |
could lead to segfaults, but was depending on the memory layout of |
| 13471 |
the instance in question (which in turn depended on a number of |
| 13472 |
variables, like compile settings but also configuration). The counters |
| 13473 |
are now unsigned (as they always should have been) and so the dangling |
| 13474 |
mis-indexing does no longer happen. This bug potentially affected all |
| 13475 |
installations, even if only some may actually have seen a segfault. |
| 13476 |
--------------------------------------------------------------------------- |
| 13477 |
Version 5.1.3 [DEVEL] (rgerhards), 2009-07-28 |
| 13478 |
- architecture change: queue now always has at least one worker thread |
| 13479 |
if not running in direct mode. Previous versions could run without |
| 13480 |
any active workers. This simplifies the code at a very small expense. |
| 13481 |
See v5 compatibility note document for more in-depth discussion. |
| 13482 |
- enhance: UDP spoofing supported via new output module omudpspoof |
| 13483 |
See the omudpspoof documentation for details and samples |
| 13484 |
- bugfix: message could be truncated after TAG, often when forwarding |
| 13485 |
This was a result of an internal processing error if maximum field |
| 13486 |
sizes had been specified in the property replacer. |
| 13487 |
- bugfix: minor static memory leak while reading configuration |
| 13488 |
did NOT leak based on message volume |
| 13489 |
- internal: added ability to terminate input modules not via pthread_cancel |
| 13490 |
but an alternate approach via pthread_kill. This is somewhat safer as we |
| 13491 |
do not need to think about the cancel-safeness of all libraries we use. |
| 13492 |
However, not all inputs can easily supported, so this now is a feature |
| 13493 |
that can be requested by the input module (the most important ones |
| 13494 |
request it). |
| 13495 |
--------------------------------------------------------------------------- |
| 13496 |
Version 5.1.2 [DEVEL] (rgerhards), 2009-07-08 |
| 13497 |
- bugfix: properties inputname, fromhost, fromhost-ip, msg were lost when |
| 13498 |
working with disk queues |
| 13499 |
- some performance enhancements |
| 13500 |
- bugfix: abort condition when RecvFrom was not set and message reduction |
| 13501 |
was on. Happened e.g. with imuxsock. |
| 13502 |
- added $klogConsoleLogLevel directive which permits to set a new |
| 13503 |
console log level while rsyslog is active |
| 13504 |
- some internal code cleanup |
| 13505 |
--------------------------------------------------------------------------- |
| 13506 |
Version 5.1.1 [DEVEL] (rgerhards), 2009-07-03 |
| 13507 |
- bugfix: huge memory leak in queue engine (made rsyslogd unusable in |
| 13508 |
production). Occurred if at least one queue was in direct mode |
| 13509 |
(the default for action queues) |
| 13510 |
- imported many performance optimizations from v4-devel (4.5.0) |
| 13511 |
- bugfix: subtle (and usually irrelevant) issue in timeout processing |
| 13512 |
timeout could be one second too early if nanoseconds wrapped |
| 13513 |
- set a more sensible timeout for shutdown, now 1.5 seconds to complete |
| 13514 |
processing (this also removes those cases where the shutdown message |
| 13515 |
was not written because the termination happened before it) |
| 13516 |
--------------------------------------------------------------------------- |
| 13517 |
Version 5.1.0 [DEVEL] (rgerhards), 2009-05-29 |
| 13518 |
|
| 13519 |
*********************************** NOTE ********************************** |
| 13520 |
The v5 versions of rsyslog feature a greatly redesigned queue engine. The |
| 13521 |
major theme for the v5 release is twofold: |
| 13522 |
|
| 13523 |
a) greatly improved performance |
| 13524 |
b) enable audit-grade processing |
| 13525 |
|
| 13526 |
Here, audit-grade processing means that rsyslog, if used together with |
| 13527 |
audit-grade transports and configured correctly, will never lose messages |
| 13528 |
that already have been acknowledged, not even in fatal failure cases like |
| 13529 |
sudden loss of power. |
| 13530 |
|
| 13531 |
Note that large parts of rsyslog's important core components have been |
| 13532 |
restructured to support these design goals. As such, early versions of |
| 13533 |
the engine will probably be less stable than the v3/v4 engine. |
| 13534 |
|
| 13535 |
Also note that the initial versions do not cover all and everything. As |
| 13536 |
usual, the code will evolve toward the final goal as version numbers |
| 13537 |
increase. |
| 13538 |
*********************************** NOTE ********************************** |
| 13539 |
|
| 13540 |
- redesigned queue engine so that it supports ultra-reliable operations |
| 13541 |
This resulted in a rewrite of large parts. The new capability can be |
| 13542 |
used to build audit-grade systems on the basis of rsyslog. |
| 13543 |
- added $MainMsgQueueDequeueBatchSize and $ActionQueueDequeueBatchSize |
| 13544 |
configuration directives |
| 13545 |
- implemented a new transactional output module interface which provides |
| 13546 |
superior performance (for databases potentially far superior performance) |
| 13547 |
- increased ompgsql performance by adapting to new transactional |
| 13548 |
output module interface |
| 13549 |
--------------------------------------------------------------------------- |
| 13550 |
Version 4.8.1 [v4-stable], 2011-09-?? |
| 13551 |
- increased max config file line size to 64k |
| 13552 |
We now also emit an error message if even 64k is not enough (not |
| 13553 |
doing so previously may rightfully be considered as a bug) |
| 13554 |
- bugfix: omprog made rsyslog abort on startup if not binary to |
| 13555 |
execute was configured |
| 13556 |
- bugfix: $ActionExecOnlyOnce interval did not work properly |
| 13557 |
Thanks to Tomas Heinrich for the patch |
| 13558 |
- bugfix: potential abort if ultra-large file io buffers are used and |
| 13559 |
dynafile cache exhausts address space (primarily a problem on 32 bit |
| 13560 |
platforms) |
| 13561 |
- bugfix: potential abort after reading invalid X.509 certificate |
| 13562 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=290 |
| 13563 |
Thanks to Tomas Heinrich for the patch. |
| 13564 |
- bugfix: potential fatal abort in omgssapi |
| 13565 |
Thanks to Tomas Heinrich for the patch. |
| 13566 |
- added doc for omprog |
| 13567 |
- FQDN hostname for multihomed host was not always set to the correct name |
| 13568 |
if multiple aliases existed. Thanks to Tomas Heinreich for the patch. |
| 13569 |
- re-licensed larger parts of the codebase under the Apache license 2.0 |
| 13570 |
--------------------------------------------------------------------------- |
| 13571 |
Version 4.8.0 [v4-stable] (rgerhards), 2011-09-07 |
| 13572 |
*************************************************************************** |
| 13573 |
* This is a new stable v4 version. It contains all fixes and enhancements * |
| 13574 |
* made during the 4.7.x phase as well as those listed below. * |
| 13575 |
* Note: major new development to v4 is concluded and will only be done * |
| 13576 |
* for custom projects. * |
| 13577 |
*************************************************************************** |
| 13578 |
There are no changes compared to 4.7.5, just a re-release with the new |
| 13579 |
version number as new v4-stable. The most important new feature is Solaris |
| 13580 |
support. |
| 13581 |
--------------------------------------------------------------------------- |
| 13582 |
Version 4.7.5 [v4-beta], 2011-09-01 |
| 13583 |
- bugfix/security: off-by-two bug in legacy syslog parser, CVE-2011-3200 |
| 13584 |
- bugfix: potential misaddressing in property replacer |
| 13585 |
- bugfix: The NUL-Byte for the syslogtag was not copied in MsgDup (msg.c) |
| 13586 |
--------------------------------------------------------------------------- |
| 13587 |
Version 4.7.4 [v4-beta] (rgerhards), 2011-07-11 |
| 13588 |
- added support for the ":omusrmsg:" syntax in configuring user messages |
| 13589 |
- added support for the ":omfile:" syntax in configuring user messages |
| 13590 |
- added $LocalHostName config directive |
| 13591 |
- bugfix: PRI was invalid on Solaris for message from local log socket |
| 13592 |
Version 4.7.3 [v4-devel] (rgerhards), 2010-11-25 |
| 13593 |
- added omuxsock, which permits to write message to local Unix sockets |
| 13594 |
this is the counterpart to imuxsock, enabling fast local forwarding |
| 13595 |
- added imptcp, a simplified, Linux-specific and potentially fast |
| 13596 |
syslog plain tcp input plugin (NOT supporting TLS!) |
| 13597 |
- bugfix: a couple of problems that imfile had on some platforms, namely |
| 13598 |
Ubuntu (not their fault, but occurred there) |
| 13599 |
- bugfix: imfile utilizes 32 bit to track offset. Most importantly, |
| 13600 |
this problem can not experienced on Fedora 64 bit OS (which has |
| 13601 |
64 bit long's!) |
| 13602 |
- added the $InputFilePersistStateInterval config directive to imfile |
| 13603 |
- changed imfile so that the state file is never deleted (makes imfile |
| 13604 |
more robust in regard to fatal failures) |
| 13605 |
--------------------------------------------------------------------------- |
| 13606 |
Version 4.7.2 [v4-devel] (rgerhards), 2010-05-03 |
| 13607 |
- bugfix: problems with atomic operations emulation |
| 13608 |
replaced atomic operation emulation with new code. The previous code |
| 13609 |
seemed to have some issue and also limited concurrency severely. The |
| 13610 |
whole atomic operation emulation has been rewritten. |
| 13611 |
- added new $Sleep directive to hold processing for a couple of seconds |
| 13612 |
during startup |
| 13613 |
- bugfix: programname filter in ! configuration can not be reset |
| 13614 |
Thanks to Kiss Gabor for the patch. |
| 13615 |
--------------------------------------------------------------------------- |
| 13616 |
Version 4.7.1 [v4-devel] (rgerhards), 2010-04-22 |
| 13617 |
- Solaris support much improved -- was not truly usable in 4.7.0 |
| 13618 |
Solaris is no longer supported in imklog, but rather there is a new |
| 13619 |
plugin imsolaris, which is used to pull local log sources on a Solaris |
| 13620 |
machine. |
| 13621 |
- testbench improvement: Java is no longer needed for testing tool creation |
| 13622 |
--------------------------------------------------------------------------- |
| 13623 |
Version 4.7.0 [v4-devel] (rgerhards), 2010-04-14 |
| 13624 |
- new: support for Solaris added (but not yet the Solaris door API) |
| 13625 |
- added function getenv() to RainerScript |
| 13626 |
- added new config option $InputUnixListenSocketCreatePath |
| 13627 |
to permit the auto-creation of paths to additional log sockets. This |
| 13628 |
turns out to be useful if they reside on temporary file systems and |
| 13629 |
rsyslogd starts up before the daemons that create these sockets |
| 13630 |
(rsyslogd always creates the socket itself if it does not exist). |
| 13631 |
- added $LogRSyslogStatusMessages configuration directive |
| 13632 |
permitting to turn off rsyslog start/stop/HUP messages. See Debian |
| 13633 |
ticket http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=463793 |
| 13634 |
- added new config directive $omfileForceChown to (try to) fix some broken |
| 13635 |
system configs. |
| 13636 |
See ticket for details: http://bugzilla.adiscon.com/show_bug.cgi?id=150 |
| 13637 |
- added $EscapeControlCharacterTab config directive |
| 13638 |
Thanks to Jonathan Bond-Caron for the patch. |
| 13639 |
- added option to use unlimited-size select() calls |
| 13640 |
Thanks to varmojfekoj for the patch |
| 13641 |
- debugondemand mode caused backgrounding to fail - close to a bug, but I'd |
| 13642 |
consider the ability to background in this mode a new feature... |
| 13643 |
- bugfix (kind of): check if TCP connection is still alive if using TLS |
| 13644 |
Thanks to Jonathan Bond-Caron for the patch. |
| 13645 |
- imported changes from 4.5.7 and below |
| 13646 |
- bugfix: potential segfault when -p command line option was used |
| 13647 |
Thanks for varmojfekoj for pointing me at this bug. |
| 13648 |
- imported changes from 4.5.6 and below |
| 13649 |
--------------------------------------------------------------------------- |
| 13650 |
Version 4.6.8 [v4-stable] (rgerhards), 2011-09-01 |
| 13651 |
- bugfix/security: off-by-two bug in legacy syslog parser, CVE-2011-3200 |
| 13652 |
- bugfix: potential misaddressing in property replacer |
| 13653 |
- bugfix: memcpy overflow can occur in allowed sender checking |
| 13654 |
if a name is resolved to IPv4-mapped-on-IPv6 address |
| 13655 |
Found by Ismail Dönmez at suse |
| 13656 |
- bugfix: The NUL-Byte for the syslogtag was not copied in MsgDup (msg.c) |
| 13657 |
--------------------------------------------------------------------------- |
| 13658 |
Version 4.6.7 [v4-stable] (rgerhards), 2011-07-11 |
| 13659 |
- added support for the ":omusrmsg:" syntax in configuring user messages |
| 13660 |
- added support for the ":omfile:" syntax for actions |
| 13661 |
--------------------------------------------------------------------------- |
| 13662 |
Version 4.6.6 [v4-stable] (rgerhards), 2011-06-24 |
| 13663 |
- bugfix: memory leak in imtcp & subsystems under some circumstances |
| 13664 |
This leak is tied to error conditions which lead to incorrect cleanup |
| 13665 |
of some data structures. [backport from v6, limited testing under v4] |
| 13666 |
- bugfix: invalid processing in QUEUE_FULL condition |
| 13667 |
If the the multi-submit interface was used and a QUEUE_FULL condition |
| 13668 |
occurred, the failed message was properly destructed. However, the |
| 13669 |
rest of the input batch, if it existed, was not processed. So this |
| 13670 |
lead to potential loss of messages and a memory leak. The potential |
| 13671 |
loss of messages was IMHO minor, because they would have been dropped |
| 13672 |
in most cases due to the queue remaining full, but very few lucky ones |
| 13673 |
from the batch may have made it. Anyhow, this has now been changed so |
| 13674 |
that the rest of the batch is properly tried to be enqueued and, if |
| 13675 |
not possible, destructed. |
| 13676 |
- bugfix: invalid storage type for config variables |
| 13677 |
- bugfix: stream driver mode was not correctly set on tcp output on big |
| 13678 |
endian systems. |
| 13679 |
thanks varmojfekoj for the patch |
| 13680 |
- bugfix: IPv6-address could not be specified in omrelp |
| 13681 |
this was due to improper parsing of ":" |
| 13682 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=250 |
| 13683 |
- bugfix: memory and file descriptor leak in stream processing |
| 13684 |
Leaks could occur under some circumstances if the file stream handler |
| 13685 |
errored out during the open call. Among others, this could cause very |
| 13686 |
big memory leaks if there were a problem with unreadable disk queue |
| 13687 |
files. In regard to the memory leak, this |
| 13688 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=256 |
| 13689 |
- bugfix: imfile potentially duplicates lines |
| 13690 |
This can happen when 0 bytes are read from the input file, and some |
| 13691 |
writer appends data to the file BEFORE we check if a rollover happens. |
| 13692 |
The check for rollover uses the inode and size as a criterion. So far, |
| 13693 |
we checked for equality of sizes, which is not given in this scenario, |
| 13694 |
but that does not indicate a rollover. From the source code comments: |
| 13695 |
Note that when we check the size, we MUST NOT check for equality. |
| 13696 |
The reason is that the file may have been written right after we |
| 13697 |
did try to read (so the file size has increased). That is NOT in |
| 13698 |
indicator of a rollover (this is an actual bug scenario we |
| 13699 |
experienced). So we need to check if the new size is smaller than |
| 13700 |
what we already have seen! |
| 13701 |
Also, under some circumstances an invalid truncation was detected. This |
| 13702 |
code has now been removed, a file change (and thus resent) is only |
| 13703 |
detected if the inode number changes. |
| 13704 |
- bugfix: a couple of problems that imfile had on some platforms, namely |
| 13705 |
Ubuntu (not their fault, but occurred there) |
| 13706 |
- bugfix: imfile utilizes 32 bit to track offset. Most importantly, |
| 13707 |
this problem can not experienced on Fedora 64 bit OS (which has |
| 13708 |
64 bit long's!) |
| 13709 |
- bugfix: abort if imfile reads file line of more than 64KiB |
| 13710 |
Thanks to Peter Eisentraut for reporting and analyzing this problem. |
| 13711 |
bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=221 |
| 13712 |
- bugfix: omlibdbi did not use password from rsyslog.con |
| 13713 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=203 |
| 13714 |
- bugfix: TCP connection invalidly aborted when messages needed to be |
| 13715 |
discarded (due to QUEUE_FULL or similar problem) |
| 13716 |
- bugfix: a slightly more informative error message when a TCP |
| 13717 |
connections is aborted |
| 13718 |
- bugfix: timestamp was incorrectly calculated for timezones with minute |
| 13719 |
offset |
| 13720 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=271 |
| 13721 |
- some improvements thanks to clang's static code analyzer |
| 13722 |
o overall cleanup (mostly unnecessary writes and otherwise unused stuff) |
| 13723 |
o bugfix: fixed a very remote problem in msg.c which could occur when |
| 13724 |
running under extremely low memory conditions |
| 13725 |
--------------------------------------------------------------------------- |
| 13726 |
Version 4.6.5 [v4-stable] (rgerhards), 2010-11-24 |
| 13727 |
- bugfix(important): problem in TLS handling could cause rsyslog to loop |
| 13728 |
in a tight loop, effectively disabling functionality and bearing the |
| 13729 |
risk of unresponsiveness of the whole system. |
| 13730 |
Bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=194 |
| 13731 |
--------------------------------------------------------------------------- |
| 13732 |
Version 4.6.4 [v4-stable] (rgerhards), 2010-08-05 |
| 13733 |
- bugfix: zero-sized (empty) messages were processed by imtcp |
| 13734 |
they are now dropped as they always should have been |
| 13735 |
- bugfix: programname filter in ! configuration can not be reset |
| 13736 |
Thanks to Kiss Gabor for the patch. |
| 13737 |
--------------------------------------------------------------------------- |
| 13738 |
Version 4.6.3 [v4-stable] (rgerhards), 2010-07-07 |
| 13739 |
- improved testbench |
| 13740 |
- added test with truly random data received via syslog to test |
| 13741 |
robustness |
| 13742 |
- added new configure option that permits to disable and enable an |
| 13743 |
extended testbench |
| 13744 |
- bugfix: segfault on HUP when "HUPIsRestart" was set to "on" |
| 13745 |
thanks varmojfekoj for the patch |
| 13746 |
- bugfix: default for $OMFileFlushOnTXEnd was wrong ("off"). |
| 13747 |
This, in default mode, caused buffered writing to be used, what |
| 13748 |
means that it looked like no output were written or partial |
| 13749 |
lines. Thanks to Michael Biebl for pointing out this bug. |
| 13750 |
- bugfix: testbench failed when not executed in UTC+1 timezone |
| 13751 |
accidentally, the time zone information was kept inside some |
| 13752 |
to-be-checked-for responses |
| 13753 |
- temporary bugfix replaced by permanent one for |
| 13754 |
message-induced off-by-one error (potential segfault) (see 4.6.2) |
| 13755 |
The analysis has been completed and a better fix been crafted and |
| 13756 |
integrated. |
| 13757 |
- bugfix: the T/P/E config size specifiers did not work properly under |
| 13758 |
all 32-bit platforms |
| 13759 |
- bugfix: local unix system log socket was deleted even when it was |
| 13760 |
not configured |
| 13761 |
- some doc fixes; incorrect config samples could cause confusion |
| 13762 |
thanks to Anthony Edwards for pointing the problems out |
| 13763 |
--------------------------------------------------------------------------- |
| 13764 |
Version 4.6.2 [v4-stable] (rgerhards), 2010-03-26 |
| 13765 |
- new feature: "." action type added to support writing files to relative |
| 13766 |
paths (this is primarily meant as a debug aid) |
| 13767 |
- added replacements for atomic instructions on systems that do not |
| 13768 |
support them. [backport of Stefen Sledz' patch for v5) |
| 13769 |
- new feature: $OMFileAsyncWriting directive added |
| 13770 |
it permits to specify if asynchronous writing should be done or not |
| 13771 |
- bugfix(temporary): message-induced off-by-one error (potential segfault) |
| 13772 |
Some types of malformed messages could trigger an off-by-one error |
| 13773 |
(for example, \0 or \n as the last character, and generally control |
| 13774 |
character escaption is questionable). This is due to not strictly |
| 13775 |
following a the \0 or string counted string paradigm (during the last |
| 13776 |
optimization on the cstring class). As a temporary fix, we have |
| 13777 |
introduced a proper recalculation of the size. However, a final |
| 13778 |
patch is expected in the future. See bug tracker for further details |
| 13779 |
and when the final patch will be available: |
| 13780 |
http://bugzilla.adiscon.com/show_bug.cgi?id=184 |
| 13781 |
Note that the current patch is considered sufficient to solve the |
| 13782 |
situation, but it requires a bit more runtime than desirable. |
| 13783 |
- bugfix: potential segfault in dynafile cache |
| 13784 |
This bug was triggered by an open failure. The the cache was full and |
| 13785 |
a new entry needed to be placed inside it, a victim for eviction was |
| 13786 |
selected. That victim was freed, then the open of the new file tried. If |
| 13787 |
the open failed, the victim entry was still freed, and the function |
| 13788 |
exited. However, on next invocation and cache search, the victim entry |
| 13789 |
was used as if it were populated, most probably resulting in a segfault. |
| 13790 |
- bugfix: race condition during directory creation |
| 13791 |
If multiple files try to create a directory at (almost) the same time, |
| 13792 |
some of them may fail. This is a data race and also exists with other |
| 13793 |
processes that may create the same directory. We do now check for this |
| 13794 |
condition and gracefully handle it. |
| 13795 |
- bugfix: potential re-use of free()ed file stream object in omfile |
| 13796 |
when dynaCache is enabled, the cache is full, a new entry needs to |
| 13797 |
be allocated, thus the LRU discarded, then a new entry is opend and that |
| 13798 |
fails. In that case, it looks like the discarded stream may be reused |
| 13799 |
improperly (based on code analysis, test case and confirmation pending) |
| 13800 |
- added new property replacer option "date-rfc3164-buggyday" primarily |
| 13801 |
to ease migration from syslog-ng. See property replacer doc for |
| 13802 |
details. [backport from 5.5.3 because urgently needed by some] |
| 13803 |
- improved testbench |
| 13804 |
- bugfix: invalid buffer write in (file) stream class |
| 13805 |
currently being accessed buffer could be overwritten with new data. |
| 13806 |
While this probably did not cause access violations, it could case loss |
| 13807 |
and/or duplication of some data (definitely a race with no deterministic |
| 13808 |
outcome) |
| 13809 |
- bugfix: potential hang condition during filestream close |
| 13810 |
predicate was not properly checked when waiting for the background file |
| 13811 |
writer |
| 13812 |
- bugfix: improper synchronization when "$OMFileFlushOnTXEnd on" was used |
| 13813 |
Internal data structures were not properly protected due to missing |
| 13814 |
mutex calls. |
| 13815 |
- bugfix: potential data loss during file stream shutdown |
| 13816 |
- bugfix: potential problems during file stream shutdown |
| 13817 |
The shutdown/close sequence was not clean, what potentially (but |
| 13818 |
unlikely) could lead to some issues. We have not been able to describe |
| 13819 |
any fatal cases, but there was some bug potential. Sequence has now |
| 13820 |
been straighted out. |
| 13821 |
- bugfix: potential problem (loop, abort) when file write error occurred |
| 13822 |
When a write error occurred in stream.c, variable iWritten had the error |
| 13823 |
code but this was handled as if it were the actual number of bytes |
| 13824 |
written. That was used in pointer arithmetic later on, and thus could |
| 13825 |
lead to all sorts of problems. However, this could only happen if the |
| 13826 |
error was EINTR or the file in question was a tty. All other cases were |
| 13827 |
handled properly. Now, iWritten is reset to zero in such cases, resulting |
| 13828 |
in proper retries. |
| 13829 |
- bugfix: $omfileFlushOnTXEnd was turned on when set to off and vice |
| 13830 |
versa due to an invalid check |
| 13831 |
- bugfix: recent patch to fix small memory leak could cause invalid free. |
| 13832 |
This could only happen during config file parsing. |
| 13833 |
- bugfix(minor): handling of extremely large strings in dbgprintf() fixed |
| 13834 |
Previously, it could lead to garbage output and, in extreme cases, also |
| 13835 |
to segfaults. Note: this was a problem only when debug output was |
| 13836 |
actually enabled, so it caused no problem in production use. |
| 13837 |
- bugfix(minor): BSD_SO_COMPAT query function had some global vars not |
| 13838 |
properly initialized. However, in practice the loader initializes them |
| 13839 |
with zero, the desired value, so there were no actual issue in almost |
| 13840 |
all cases. |
| 13841 |
--------------------------------------------------------------------------- |
| 13842 |
Version 4.6.1 [v4-stable] (rgerhards), 2010-03-04 |
| 13843 |
- re-enabled old pipe output (using new module ompipe, built-in) after |
| 13844 |
some problems with pipes (and especially in regard to xconsole) were |
| 13845 |
discovered. Thanks to Michael Biebl for reporting the issues. |
| 13846 |
- bugfix: potential problems with large file support could cause segfault |
| 13847 |
... and other weird problems. This seemed to affect 32bit-platforms |
| 13848 |
only, but I can not totally outrule there were issues on other |
| 13849 |
platforms as well. The previous code could cause system data types |
| 13850 |
to be defined inconsistently, and that could lead to various |
| 13851 |
troubles. Special thanks go to the Mandriva team for identifying |
| 13852 |
an initial problem, help discussing it and ultimately a fix they |
| 13853 |
contributed. |
| 13854 |
- bugfix: fixed problem that caused compilation on FreeBSD 9.0 to fail. |
| 13855 |
bugtracker: http://bugzilla.adiscon.com/show_bug.cgi?id=181 |
| 13856 |
Thanks to Christiano for reporting. |
| 13857 |
- bugfix: potential segfault in omfile when a dynafile open failed |
| 13858 |
In that case, a partial cache entry was written, and some internal |
| 13859 |
pointers (iCurrElt) not correctly updated. In the next iteration, that |
| 13860 |
could lead to a segfault, especially if iCurrElt then points to the |
| 13861 |
then-partial record. Not very likely, but could happen in practice. |
| 13862 |
- bugfix (theoretical): potential segfault in omfile under low memory |
| 13863 |
condition. This is only a theoretical bug, because it would only |
| 13864 |
happen when strdup() fails to allocate memory - which is highly |
| 13865 |
unlikely and will probably lead to all other sorts of errors. |
| 13866 |
- bugfix: comment char ('#') in literal terminated script parsing |
| 13867 |
and thus could not be used. |
| 13868 |
but tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=119 |
| 13869 |
[merged in from v3.22.2] |
| 13870 |
--------------------------------------------------------------------------- |
| 13871 |
Version 4.6.0 [v4-stable] (rgerhards), 2010-02-24 |
| 13872 |
*************************************************************************** |
| 13873 |
* This is a new stable v4 version. It contains all fixes and enhancements * |
| 13874 |
* made during the 4.5.x phase as well as those listed below. * |
| 13875 |
* Note: this version is scheduled to conclude the v4 development process. * |
| 13876 |
* Do not expect any more new developments in v4. The focus is now * |
| 13877 |
* on v5 (what also means we have a single devel branch again). * |
| 13878 |
* ("development" means new feature development, bug fixes are of * |
| 13879 |
* course provided for v4-stable) * |
| 13880 |
*************************************************************************** |
| 13881 |
- improved testbench to contain samples for totally malformed messages |
| 13882 |
which miss parts of the message content |
| 13883 |
- bugfix: some malformed messages could lead to a missing LF inside files |
| 13884 |
or some other missing parts of the template content. |
| 13885 |
- bugfix: if a message ended immediately with a hostname, the hostname |
| 13886 |
was mistakenly interpreted as TAG, and localhost be used as hostname |
| 13887 |
- bugfix: message without MSG part could case a segfault |
| 13888 |
[backported from v5 commit 98d1ed504ec001728955a5bcd7916f64cd85f39f] |
| 13889 |
This actually was a "recent" regression, but I did not realize that it |
| 13890 |
was introduced by the performance optimization in v4-devel. Shame on |
| 13891 |
me for having two devel versions at the same time... |
| 13892 |
--------------------------------------------------------------------------- |
| 13893 |
Version 4.5.8 [v4-beta] (rgerhards), 2010-02-10 |
| 13894 |
- enhanced doc for using PostgreSQL |
| 13895 |
Thanks to Marc Schiffbauer for the new/updated doc |
| 13896 |
- bugfix: property replacer returned invalid parameters under some (unusual) |
| 13897 |
conditions. In extreme cases, this could lead to garbled logs and/or |
| 13898 |
a system failure. |
| 13899 |
- bugfix: invalid length returned (often) when using regular expressions |
| 13900 |
inside the property replacer |
| 13901 |
- bugfix: submatch regex in property replacer did not honor "return 0 on |
| 13902 |
no match" config case |
| 13903 |
- bugfix: imuxsock incorrectly stated inputname "imudp" |
| 13904 |
Thanks to Ryan Lynch for reporting this. |
| 13905 |
- (slightly) enhanced support for FreeBSD by setting _PATH_MODDIR to |
| 13906 |
the correct value on FreeBSD. |
| 13907 |
Thanks to Cristiano for the patch. |
| 13908 |
- bugfix: -d did not enable display of debug messages |
| 13909 |
regression from introduction of "debug on demand" mode |
| 13910 |
Thanks to Michael Biebl for reporting this bug |
| 13911 |
- bugfix: blanks inside file names did not terminate file name parsing. |
| 13912 |
This could result in the whole rest of a line (including comments) |
| 13913 |
to be treated as file name in "write to file" actions. |
| 13914 |
Thanks to Jack for reporting this issue. |
| 13915 |
- bugfix: rsyslog hang when writing to a named pipe which nobody was |
| 13916 |
reading. Thanks to Michael Biebl for reporting this bug. |
| 13917 |
Bugzilla entry: http://bugzilla.adiscon.com/show_bug.cgi?id=169 |
| 13918 |
- bugfix: potential segfaults during queue shutdown |
| 13919 |
(bugs require certain non-standard settings to appear) |
| 13920 |
Thanks to varmojfekoj for the patch |
| 13921 |
--------------------------------------------------------------------------- |
| 13922 |
Version 4.5.7 [v4-beta] (rgerhards), 2009-11-18 |
| 13923 |
- added a so-called "On Demand Debug" mode, in which debug output can |
| 13924 |
be generated only after the process has started, but not right from |
| 13925 |
the beginning. This is assumed to be useful for hard-to-find bugs. |
| 13926 |
Also improved the doc on the debug system. |
| 13927 |
- bugfix (kind of): check if TCP connection is still alive if using TLS |
| 13928 |
Thanks to Jonathan Bond-Caron for the patch. |
| 13929 |
- bugfix: hostname accidentally set to IP address for some message sources, |
| 13930 |
for example imudp. Thanks to Anton for reporting this bug. |
| 13931 |
- bugfix [imported from 4.4.3]: $ActionExecOnlyOnceEveryInterval did |
| 13932 |
not work. |
| 13933 |
--------------------------------------------------------------------------- |
| 13934 |
Version 4.5.6 [v4-beta] (rgerhards), 2009-11-05 |
| 13935 |
- bugfix: named pipes did no longer work (they always got an open error) |
| 13936 |
this was a regression from the omfile rewrite in 4.5.0 |
| 13937 |
- bugfix(minor): diag function returned wrong queue member count |
| 13938 |
for the main queue if an active DA queue existed. This had no relevance |
| 13939 |
to real deployments (assuming they are not running the debug/diagnostic |
| 13940 |
module...), but sometimes caused grief and false alerts in the |
| 13941 |
testbench. |
| 13942 |
- included some important fixes from v4-stable: |
| 13943 |
* bugfix: invalid handling of zero-sized messages |
| 13944 |
* bugfix: zero-sized UDP messages are no longer processed |
| 13945 |
* bugfix: random data could be appended to message |
| 13946 |
* bugfix: reverse lookup reduction logic in imudp do DNS queries too often |
| 13947 |
- bugfix(testbench): testcase did not properly wait for rsyslog shutdown |
| 13948 |
thus some unpredictable behavior and a false negative test result |
| 13949 |
could occur. [BACKPORTED from v5] |
| 13950 |
- bugfix(testbench): sequence check was not always performed correctly, |
| 13951 |
that could result in tests reporting success when they actually failed |
| 13952 |
--------------------------------------------------------------------------- |
| 13953 |
Version 4.5.5 [v4-beta] (rgerhards), 2009-10-21 |
| 13954 |
- added $InputTCPServerNotifyOnConnectionClose config directive |
| 13955 |
see doc for details |
| 13956 |
- bugfix: debug string larger than 1K were improperly displayed. Max size |
| 13957 |
is now 32K |
| 13958 |
- bugfix: invalid storage class selected for some size config parameters. |
| 13959 |
This resulted in wrong values. The most prominent victim was the |
| 13960 |
directory creation mode, which was set to zero in some cases. For |
| 13961 |
details, see related blog post: |
| 13962 |
http://blog.gerhards.net/2009/10/another-note-on-hard-to-find-bugs.html |
| 13963 |
--------------------------------------------------------------------------- |
| 13964 |
Version 4.5.4 [v4-beta] (rgerhards), 2009-09-29 |
| 13965 |
- bugfix: potential segfault in stream writer on destruction |
| 13966 |
Most severely affected omfile. The problem was that some buffers were |
| 13967 |
freed before the asynchronous writer thread was shut down. So the |
| 13968 |
writer thread accessed invalid data, which may even already be |
| 13969 |
overwritten. Symptoms (with omfile) were segfaults, garbled data |
| 13970 |
and files with random names placed around the file system (most |
| 13971 |
prominently into the root directory). Special thanks to Aaron for |
| 13972 |
helping to track this down. |
| 13973 |
- bugfix: potential race in object loader (obj.c) during use/release |
| 13974 |
of object interface |
| 13975 |
- bugfixes: potential problems in out file zip writer. Problems could |
| 13976 |
lead to abort and/or memory leak. The module is now hardened in a very |
| 13977 |
conservative way, which is sub-optimal from a performance point of view. |
| 13978 |
This should be improved if it has proven reliable in practice. |
| 13979 |
--------------------------------------------------------------------------- |
| 13980 |
Version 4.5.3 [v4-beta] (rgerhards), 2009-09-17 |
| 13981 |
- bugfix: repeated messages were incorrectly processed |
| 13982 |
this could lead to loss of the repeated message content. As a side- |
| 13983 |
effect, it could probably also be possible that some segfault occurs |
| 13984 |
(quite unlikely). The root cause was that some counters introduced |
| 13985 |
during the malloc optimizations were not properly duplicated in |
| 13986 |
MsgDup(). Note that repeated message processing is not enabled |
| 13987 |
by default. |
| 13988 |
- bugfix: message sanitation had some issues: |
| 13989 |
- control character DEL was not properly escaped |
| 13990 |
- NUL and LF characters were not properly stripped if no control |
| 13991 |
character replacement was to be done |
| 13992 |
- NUL characters in the message body were silently dropped (this was |
| 13993 |
a regression introduced by some of the recent optimizations) |
| 13994 |
- bugfix: strings improperly reused, resulting in some message properties |
| 13995 |
be populated with strings from previous messages. This was caused by |
| 13996 |
an improper predicate check. [backported from v5] |
| 13997 |
- fixed some minor portability issues |
| 13998 |
- bugfix: reverse lookup reduction logic in imudp do DNS queries too often |
| 13999 |
[imported from 4.4.2] |
| 14000 |
--------------------------------------------------------------------------- |
| 14001 |
Version 4.5.2 [v4-beta] (rgerhards), 2009-08-21 |
| 14002 |
- legacy syslog parser changed so that it now accepts date stamps in |
| 14003 |
wrong case. Some devices seem to create them and I do not see any harm |
| 14004 |
in supporting that. |
| 14005 |
- added $InputTCPMaxListeners directive - permits to specify how many |
| 14006 |
TCP servers shall be possible (default is 20). |
| 14007 |
- bugfix: memory leak with some input modules. Those inputs that |
| 14008 |
use parseAndSubmitMsg() leak two small memory blocks with every message. |
| 14009 |
Typically, those process only relatively few messages, so the issue |
| 14010 |
does most probably not have any effect in practice. |
| 14011 |
- bugfix: if tcp listen port could not be created, no error message was |
| 14012 |
emitted |
| 14013 |
- bugfix: potential segfault in output file writer (omfile) |
| 14014 |
In async write mode, we use modular arithmetic to index the output |
| 14015 |
buffer array. However, the counter variables accidentally were signed, |
| 14016 |
thus resulting in negative indices after integer overflow. That in turn |
| 14017 |
could lead to segfaults, but was depending on the memory layout of |
| 14018 |
the instance in question (which in turn depended on a number of |
| 14019 |
variables, like compile settings but also configuration). The counters |
| 14020 |
are now unsigned (as they always should have been) and so the dangling |
| 14021 |
mis-indexing does no longer happen. This bug potentially affected all |
| 14022 |
installations, even if only some may actually have seen a segfault. |
| 14023 |
- bugfix: hostnames with dashes in them were incorrectly treated as |
| 14024 |
malformed, thus causing them to be treated as TAG (this was a regression |
| 14025 |
introduced from the "rfc3164 strict" change in 4.5.0). |
| 14026 |
--------------------------------------------------------------------------- |
| 14027 |
Version 4.5.1 [DEVEL] (rgerhards), 2009-07-15 |
| 14028 |
- CONFIG CHANGE: $HUPisRestart default is now "off". We are doing this |
| 14029 |
to support removal of restart-type HUP in v5. |
| 14030 |
- bugfix: fromhost-ip was sometimes truncated |
| 14031 |
- bugfix: potential segfault when zip-compressed syslog records were |
| 14032 |
received (double free) |
| 14033 |
- bugfix: properties inputname, fromhost, fromhost-ip, msg were lost when |
| 14034 |
working with disk queues |
| 14035 |
- performance enhancement: much faster, up to twice as fast (depending |
| 14036 |
on configuration) |
| 14037 |
- bugfix: abort condition when RecvFrom was not set and message reduction |
| 14038 |
was on. Happened e.g. with imuxsock. |
| 14039 |
- added $klogConsoleLogLevel directive which permits to set a new |
| 14040 |
console log level while rsyslog is active |
| 14041 |
- bugfix: message could be truncated after TAG, often when forwarding |
| 14042 |
This was a result of an internal processing error if maximum field |
| 14043 |
sizes had been specified in the property replacer. |
| 14044 |
- added ability for the TCP output action to "rebind" its send socket after |
| 14045 |
sending n messages (actually, it re-opens the connection, the name is |
| 14046 |
used because this is a concept very similar to $ActionUDPRebindInterval). |
| 14047 |
New config directive $ActionSendTCPRebindInterval added for the purpose. |
| 14048 |
By default, rebinding is disabled. This is considered useful for load |
| 14049 |
balancers. |
| 14050 |
- testbench improvements |
| 14051 |
--------------------------------------------------------------------------- |
| 14052 |
Version 4.5.0 [DEVEL] (rgerhards), 2009-07-02 |
| 14053 |
- activation order of inputs changed, they are now activated only after |
| 14054 |
privileges are dropped. Thanks to Michael Terry for the patch. |
| 14055 |
- greatly improved performance |
| 14056 |
- greatly reduced memory requirements of msg object |
| 14057 |
to around half of the previous demand. This means that more messages can |
| 14058 |
be stored in core! Due to fewer cache misses, this also means some |
| 14059 |
performance improvement. |
| 14060 |
- improved config error messages: now contain a copy of the config line |
| 14061 |
that (most likely) caused the error |
| 14062 |
- reduced max value for $DynaFileCacheSize to 1,000 (the former maximum |
| 14063 |
of 10,000 really made no sense, even 1,000 is very high, but we like |
| 14064 |
to keep the user in control ;)). |
| 14065 |
- added capability to fsync() queue disk files for enhanced reliability |
| 14066 |
(also add's speed, because you do no longer need to run the whole file |
| 14067 |
system in sync mode) |
| 14068 |
- more strict parsing of the hostname in rfc3164 mode, hopefully |
| 14069 |
removes false positives (but may cause some trouble with hostname |
| 14070 |
parsing). For details, see this bug tracker: |
| 14071 |
http://bugzilla.adiscon.com/show_bug.cgi?id=126 |
| 14072 |
- omfile rewrite to natively support zip files (includes large extension |
| 14073 |
of the stream class) |
| 14074 |
- added configuration commands (see doc for explanations) |
| 14075 |
* $OMFileZipLevel |
| 14076 |
* $OMFileIOBufferSize |
| 14077 |
* $OMFileFlushOnTXEnd |
| 14078 |
* $MainMsgQueueSyncQueueFiles |
| 14079 |
* $ActionQueueSyncQueueFiles |
| 14080 |
- done some memory accesses explicitly atomic |
| 14081 |
- bugfix: subtle (and usually irrelevant) issue in timeout processing |
| 14082 |
timeout could be one second too early if nanoseconds wrapped |
| 14083 |
- set a more sensible timeout for shutdown, now 1.5 seconds to complete |
| 14084 |
processing (this also removes those cases where the shutdown message |
| 14085 |
was not written because the termination happened before it) |
| 14086 |
- internal bugfix: object pointer was only reset to NULL when an object |
| 14087 |
was actually destructed. This most likely had no effect to existing code, |
| 14088 |
but it may also have caused trouble in remote cases. Similarly, the fix |
| 14089 |
may also cause trouble... |
| 14090 |
- bugfix: missing initialization during timestamp creation |
| 14091 |
This could lead to timestamps written in the wrong format, but not to |
| 14092 |
an abort |
| 14093 |
--------------------------------------------------------------------------- |
| 14094 |
Version 4.4.3 [v4-stable] (rgerhards), 2009-10-?? |
| 14095 |
- bugfix: several smaller bugs resolved after flexelint review |
| 14096 |
Thanks to varmojfekoj for the patch. |
| 14097 |
- bugfix: $ActionExecOnlyOnceEveryInterval did not work. |
| 14098 |
This was a regression from the time() optimizations done in v4. |
| 14099 |
Bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=143 |
| 14100 |
Thanks to Klaus Tachtler for reporting this bug. |
| 14101 |
- bugfix: potential segfault on queue shutdown |
| 14102 |
Thanks to varmojfekoj for the patch. |
| 14103 |
- bugfix: potential hang condition on queue shutdown |
| 14104 |
[imported from v3-stable] |
| 14105 |
- bugfix: segfault on startup when -q or -Q option was given |
| 14106 |
[imported from v3-stable] |
| 14107 |
--------------------------------------------------------------------------- |
| 14108 |
Version 4.4.2 [v4-stable] (rgerhards), 2009-10-09 |
| 14109 |
- bugfix: invalid handling of zero-sized messages, could lead to mis- |
| 14110 |
addressing and potential memory corruption/segfault |
| 14111 |
- bugfix: zero-sized UDP messages are no longer processed |
| 14112 |
until now, they were forwarded to processing, but this makes no sense |
| 14113 |
Also, it looks like the system seems to provide a zero return code |
| 14114 |
on a UDP recvfrom() from time to time for some internal reasons. These |
| 14115 |
"receives" are now silently ignored. |
| 14116 |
- bugfix: random data could be appended to message, possibly causing |
| 14117 |
segfaults |
| 14118 |
- bugfix: reverse lookup reduction logic in imudp do DNS queries too often |
| 14119 |
A comparison was done between the current and the former source address. |
| 14120 |
However, this was done on the full sockaddr_storage structure and not |
| 14121 |
on the host address only. This has now been changed for IPv4 and IPv6. |
| 14122 |
The end result of this bug could be a higher UDP message loss rate than |
| 14123 |
necessary (note that UDP message loss can not totally be avoided due |
| 14124 |
to the UDP spec) |
| 14125 |
--------------------------------------------------------------------------- |
| 14126 |
Version 4.4.1 [v4-stable] (rgerhards), 2009-09-02 |
| 14127 |
- features requiring Java are automatically disabled if Java is not |
| 14128 |
present (thanks to Michael Biebl for his help!) |
| 14129 |
- bugfix: invalid double-quoted PRI, among others in outgoing messages |
| 14130 |
This causes grief with all receivers. |
| 14131 |
Bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=147 |
| 14132 |
- bugfix: Java testing tools were required, even if testbench was disabled |
| 14133 |
This resulted in build errors if no Java was present on the build system, |
| 14134 |
even though none of the selected option actually required Java. |
| 14135 |
(I forgot to backport a similar fix to newer releases). |
| 14136 |
- bugfix (backport): omfwd segfault |
| 14137 |
Note that the original (higher version) patch states this happens only |
| 14138 |
when debugging mode is turned on. That statement is wrong: if debug |
| 14139 |
mode is turned off, the message is not being emitted, but the division |
| 14140 |
by zero in the actual parameters still happens. |
| 14141 |
--------------------------------------------------------------------------- |
| 14142 |
Version 4.4.0 [v4-stable] (rgerhards), 2009-08-21 |
| 14143 |
- bugfix: stderr/stdout were not closed to be able to emit error messages, |
| 14144 |
but this caused ssh sessions to hang. Now we close them after the |
| 14145 |
initial initialization. See forum thread: |
| 14146 |
http://kb.monitorware.com/controlling-terminal-issues-t9875.html |
| 14147 |
- bugfix: sending syslog messages with zip compression did not work |
| 14148 |
--------------------------------------------------------------------------- |
| 14149 |
Version 4.3.2 [v4-beta] (rgerhards), 2009-06-24 |
| 14150 |
- removed long-obsoleted property UxTradMsg |
| 14151 |
- added a generic network stream server (in addition to rather specific |
| 14152 |
syslog tcp server) |
| 14153 |
- added ability for the UDP output action to rebind its send socket after |
| 14154 |
sending n messages. New config directive $ActionSendUDPRebindInterval |
| 14155 |
added for the purpose. By default, rebinding is disabled. This is |
| 14156 |
considered useful for load balancers. |
| 14157 |
- bugfix: imdiag/imtcp had a race condition |
| 14158 |
- improved testbench (now much better code design and reuse) |
| 14159 |
- added config switch --enable-testbench=no to turn off testbench |
| 14160 |
--------------------------------------------------------------------------- |
| 14161 |
Version 4.3.1 [DEVEL] (rgerhards), 2009-05-25 |
| 14162 |
- added capability to run multiple tcp listeners (on different ports) |
| 14163 |
- performance enhancement: imtcp calls parser no longer on input thread |
| 14164 |
but rather inside on of the potentially many main msg queue worker |
| 14165 |
threads (an enhancement scheduled for all input plugins where this is |
| 14166 |
possible) |
| 14167 |
- added $GenerateConfigGraph configuration command which can be used |
| 14168 |
to generate nice-looking (and very informative) rsyslog configuration |
| 14169 |
graphs. |
| 14170 |
- added $ActionName configuration directive (currently only used for |
| 14171 |
graph generation, but may find other uses) |
| 14172 |
- improved doc |
| 14173 |
* added (hopefully) easier to grasp queue explanation |
| 14174 |
- improved testbench |
| 14175 |
* added tests for queue disk-only mode (checks disk queue logic) |
| 14176 |
- bugfix: light and full delay watermarks had invalid values, badly |
| 14177 |
affecting performance for delayable inputs |
| 14178 |
- build system improvements - thanks to Michael Biebl |
| 14179 |
- added new testing module imdiag, which enables to talk to the |
| 14180 |
rsyslog core at runtime. The current implementation is only a |
| 14181 |
beginning, but can be expanded over time |
| 14182 |
--------------------------------------------------------------------------- |
| 14183 |
Version 4.3.0 [DEVEL] (rgerhards), 2009-04-17 |
| 14184 |
- new feature: new output plugin omprog, which permits to start program |
| 14185 |
and feed it (via its stdin) with syslog messages. If the program |
| 14186 |
terminates, it is restarted. |
| 14187 |
- improved internal handling of RainerScript functions, building the |
| 14188 |
necessary plumbing to support more functions with decent runtime |
| 14189 |
performance. This is also necessary towards the long-term goal |
| 14190 |
of loadable library modules. |
| 14191 |
- added new RainerScript function "tolower" |
| 14192 |
- improved testbench |
| 14193 |
* added tests for tcp-based reception |
| 14194 |
* added tcp-load test (1000 connections, 20,000 messages) |
| 14195 |
- added $MaxOpenFiles configuration directive |
| 14196 |
- bugfix: solved potential memory leak in msg processing, could manifest |
| 14197 |
itself in imtcp |
| 14198 |
- bugfix: ompgsql did not detect problems in sql command execution |
| 14199 |
this could cause loss of messages. The handling was correct if the |
| 14200 |
connection broke, but not if there was a problem with statement |
| 14201 |
execution. The most probable case for such a case would be invalid |
| 14202 |
sql inside the template, and this is now much easier to diagnose. |
| 14203 |
--------------------------------------------------------------------------- |
| 14204 |
Version 4.2.0 [v4-stable] (rgerhards), 2009-06-23 |
| 14205 |
- bugfix: light and full delay watermarks had invalid values, badly |
| 14206 |
affecting performance for delayable inputs |
| 14207 |
- imported all patches from 3.22.1 as of today (see below) |
| 14208 |
- bugfix: compile problems in im3195 |
| 14209 |
--------------------------------------------------------------------------- |
| 14210 |
Version 4.1.7 [BETA] (rgerhards), 2009-04-22 |
| 14211 |
- bugfix: $InputTCPMaxSessions config directive was accepted, but not |
| 14212 |
honored. This resulted in a fixed upper limit of 200 connections. |
| 14213 |
- bugfix: the default for $DirCreateMode was 0644, and as such wrong. |
| 14214 |
It has now been changed to 0700. For some background, please see |
| 14215 |
http://lists.adiscon.net/pipermail/rsyslog/2009-April/001986.html |
| 14216 |
- bugfix: ompgsql did not detect problems in sql command execution |
| 14217 |
this could cause loss of messages. The handling was correct if the |
| 14218 |
connection broke, but not if there was a problem with statement |
| 14219 |
execution. The most probable case for such a case would be invalid |
| 14220 |
sql inside the template, and this is now much easier to diagnose. |
| 14221 |
--------------------------------------------------------------------------- |
| 14222 |
Version 4.1.6 [DEVEL] (rgerhards), 2009-04-07 |
| 14223 |
- added new "csv" property replacer options to enable simple creation |
| 14224 |
of CSV-formatted outputs (format from RFC4180 is used) |
| 14225 |
- implemented function support in RainerScript. That means the engine |
| 14226 |
parses and compile functions, as well as executes a few build-in |
| 14227 |
ones. Dynamic loading and registration of functions is not yet |
| 14228 |
supported - but we now have a good foundation to do that later on. |
| 14229 |
- implemented the strlen() RainerScript function |
| 14230 |
- added a template output module |
| 14231 |
- added -T rsyslogd command line option, enables to specify a directory |
| 14232 |
where to chroot() into on startup. This is NOT a security feature but |
| 14233 |
introduced to support testing. Thus, -T does not make sure chroot() |
| 14234 |
is used in a secure way. (may be removed later) |
| 14235 |
- added omstdout module for testing purposes. Spits out all messages to |
| 14236 |
stdout - no config option, no other features |
| 14237 |
- added a parser testing suite (still needs to be extended, but a good |
| 14238 |
start) |
| 14239 |
- modified $ModLoad statement so that for modules whom's name starts with |
| 14240 |
a dot, no path is prepended (this enables relative-paths and should |
| 14241 |
not break any valid current config) |
| 14242 |
- fixed a bug that caused action retries not to work correctly |
| 14243 |
situation was only cleared by a restart |
| 14244 |
- bugfix: closed dynafile was potentially never written until another |
| 14245 |
dynafile name was generated - potential loss of messages |
| 14246 |
- improved omfile so that it properly suspends itself if there is an |
| 14247 |
i/o or file name generation error. This enables it to be used with |
| 14248 |
the full high availability features of rsyslog's engine |
| 14249 |
- bugfix: fixed some segfaults on Solaris, where vsprintf() does not |
| 14250 |
check for NULL pointers |
| 14251 |
- improved performance of regexp-based filters |
| 14252 |
Thanks to Arnaud Cornet for providing the idea and initial patch. |
| 14253 |
- added a new way how output plugins may be passed parameters. This is |
| 14254 |
more efficient for some outputs. They new can receive fields not only |
| 14255 |
as a single string but rather in an array where each string is separated. |
| 14256 |
- added (some) developer documentation for output plugin interface |
| 14257 |
- bugfix: potential abort with DA queue after high watermark is reached |
| 14258 |
There exists a race condition that can lead to a segfault. Thanks |
| 14259 |
go to vbernetr, who performed the analysis and provided patch, which |
| 14260 |
I only tweaked a very little bit. |
| 14261 |
- bugfix: imtcp did incorrectly parse hostname/tag |
| 14262 |
Thanks to Luis Fernando Muñoz Mejías for the patch. |
| 14263 |
--------------------------------------------------------------------------- |
| 14264 |
Version 4.1.5 [DEVEL] (rgerhards), 2009-03-11 |
| 14265 |
- bugfix: parser did not correctly parse fields in UDP-received messages |
| 14266 |
- added ERE support in filter conditions |
| 14267 |
new comparison operation "ereregex" |
| 14268 |
- added new config directive $RepeatedMsgContainsOriginalMsg so that the |
| 14269 |
"last message repeated n times" messages, if generated, may |
| 14270 |
have an alternate format that contains the message that is being repeated |
| 14271 |
--------------------------------------------------------------------------- |
| 14272 |
Version 4.1.4 [DEVEL] (rgerhards), 2009-01-29 |
| 14273 |
- bugfix: inconsistent use of mutex/atomic operations could cause segfault |
| 14274 |
details are too many, for full analysis see blog post at: |
| 14275 |
http://blog.gerhards.net/2009/01/rsyslog-data-race-analysis.html |
| 14276 |
- bugfix: uninitialized mutex was used in msg.c:getPRI |
| 14277 |
This was subtle, because getPRI is called as part of the debugging code |
| 14278 |
(always executed) in syslogd.c:logmsg. |
| 14279 |
- bugfix: $PreserveFQDN was not properly handled for locally emitted |
| 14280 |
messages |
| 14281 |
--------------------------------------------------------------------------- |
| 14282 |
Version 4.1.3 [DEVEL] (rgerhards), 2008-12-17 |
| 14283 |
- added $InputTCPServerAddtlFrameDelimiter config directive, which |
| 14284 |
enables to specify an additional, non-standard message delimiter |
| 14285 |
for processing plain tcp syslog. This is primarily a fix for the invalid |
| 14286 |
framing used in Juniper's NetScreen products. Credit to forum user |
| 14287 |
Arv for suggesting this solution. |
| 14288 |
- added $InputTCPServerInputName property, which enables a name to be |
| 14289 |
specified that will be available during message processing in the |
| 14290 |
inputname property. This is considered useful for logic that treats |
| 14291 |
messages differently depending on which input received them. |
| 14292 |
- added $PreserveFQDN config file directive |
| 14293 |
Enables to use FQDNs in sender names where the legacy default |
| 14294 |
would have stripped the domain part. |
| 14295 |
Thanks to BlinkMind, Inc. http://www.blinkmind.com for sponsoring this |
| 14296 |
development. |
| 14297 |
- bugfix: imudp went into an endless loop under some circumstances |
| 14298 |
(but could also leave it under some other circumstances...) |
| 14299 |
Thanks to David Lang and speedfox for reporting this issue. |
| 14300 |
--------------------------------------------------------------------------- |
| 14301 |
Version 4.1.2 [DEVEL] (rgerhards), 2008-12-04 |
| 14302 |
- bugfix: code did not compile without zlib |
| 14303 |
- security bugfix: $AllowedSender was not honored, all senders were |
| 14304 |
permitted instead (see https://www.rsyslog.com/Article322.phtml) |
| 14305 |
- security fix: imudp emitted a message when a non-permitted sender |
| 14306 |
tried to send a message to it. This behavior is operator-configurable. |
| 14307 |
If enabled, a message was emitted each time. That way an attacker could |
| 14308 |
effectively fill the disk via this facility. The message is now |
| 14309 |
emitted only once in a minute (this currently is a hard-coded limit, |
| 14310 |
if someone comes up with a good reason to make it configurable, we |
| 14311 |
will probably do that). |
| 14312 |
- doc bugfix: typo in v3 compatibility document directive syntax |
| 14313 |
thanks to Andrej for reporting |
| 14314 |
- imported other changes from 3.21.8 and 3.20.1 (see there) |
| 14315 |
--------------------------------------------------------------------------- |
| 14316 |
Version 4.1.1 [DEVEL] (rgerhards), 2008-11-26 |
| 14317 |
- added $PrivDropToGroup, $PrivDropToUser, $PrivDropToGroupID, |
| 14318 |
$PrivDropToUserID config directives to enable dropping privileges. |
| 14319 |
This is an effort to provide a security enhancement. For the limits of this |
| 14320 |
approach, see http://wiki.rsyslog.com/index.php/Security |
| 14321 |
- re-enabled imklog to compile on FreeBSD (brought in from beta) |
| 14322 |
--------------------------------------------------------------------------- |
| 14323 |
Version 4.1.0 [DEVEL] (rgerhards), 2008-11-18 |
| 14324 |
|
| 14325 |
********************************* WARNING ********************************* |
| 14326 |
This version has a slightly different on-disk format for message entries. |
| 14327 |
As a consequence, old queue files being read by this version may have |
| 14328 |
an invalid output timestamp, which could result to some malfunction inside |
| 14329 |
the output driver. It is recommended to drain queues with the previous |
| 14330 |
version before switching to this one. |
| 14331 |
********************************* WARNING ********************************* |
| 14332 |
|
| 14333 |
- greatly enhanced performance when compared to v3. |
| 14334 |
- added configuration directive "HUPisRestart" which enables to configure |
| 14335 |
HUP to be either a full restart or "just" a lightweight way to |
| 14336 |
close open files. |
| 14337 |
- enhanced legacy syslog parser to detect year if part of the timestamp |
| 14338 |
the format is based on what Cisco devices seem to emit. |
| 14339 |
- added a setting "$OptimizeForUniprocessor" to enable users to turn off |
| 14340 |
pthread_yield calls which are counter-productive on multiprocessor |
| 14341 |
machines (but have been shown to be useful on uniprocessors) |
| 14342 |
- reordered imudp processing. Message parsing is now done as part of main |
| 14343 |
message queue worker processing (was part of the input thread) |
| 14344 |
This should also improve performance, as potentially more work is |
| 14345 |
done in parallel. |
| 14346 |
- bugfix: compressed syslog messages could be slightly mis-uncompressed |
| 14347 |
if the last byte of the compressed record was a NUL |
| 14348 |
- added $UDPServerTimeRequery option which enables to work with |
| 14349 |
less accurate timestamps in favor of performance. This enables querying |
| 14350 |
of the time only every n-th time if imudp is running in the tight |
| 14351 |
receive loop (aka receiving messages at a high rate) |
| 14352 |
- doc bugfix: queue doc had wrong parameter name for setting controlling |
| 14353 |
worker thread shutdown period |
| 14354 |
- restructured rsyslog.conf documentation |
| 14355 |
- bugfix: memory leak in ompgsql |
| 14356 |
Thanks to Ken for providing the patch |
| 14357 |
--------------------------------------------------------------------------- |
| 14358 |
Version 3.22.4 [v3-stable] (rgerhards), 2010-??-?? |
| 14359 |
- bugfix: action resume interval incorrectly handled, thus took longer to |
| 14360 |
resume |
| 14361 |
- bugfix: cosmetic: proper constant used instead of number in open call |
| 14362 |
- bugfix: timestamp was incorrectly calculated for timezones with minute |
| 14363 |
offset |
| 14364 |
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=271 |
| 14365 |
- improved some code based on clang static analyzer results |
| 14366 |
- bugfix: potential misaddressing in property replacer |
| 14367 |
- bugfix: improper handling of invalid PRI values |
| 14368 |
references: CVE-2014-3634 |
| 14369 |
--------------------------------------------------------------------------- |
| 14370 |
Version 3.22.3 [v3-stable] (rgerhards), 2010-11-24 |
| 14371 |
- bugfix(important): problem in TLS handling could cause rsyslog to loop |
| 14372 |
in a tight loop, effectively disabling functionality and bearing the |
| 14373 |
risk of unresponsiveness of the whole system. |
| 14374 |
Bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=194 |
| 14375 |
--------------------------------------------------------------------------- |
| 14376 |
Version 3.22.2 [v3-stable] (rgerhards), 2010-08-05 |
| 14377 |
- bugfix: comment char ('#') in literal terminated script parsing |
| 14378 |
and thus could not be used. |
| 14379 |
but tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=119 |
| 14380 |
- enhance: imrelp now also provides remote peer's IP address |
| 14381 |
[if librelp != 1.0.0 is used] |
| 14382 |
- bugfix: sending syslog messages with zip compression did not work |
| 14383 |
- bugfix: potential hang condition on queue shutdown |
| 14384 |
- bugfix: segfault on startup when -q or -Q option was given |
| 14385 |
bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=157 |
| 14386 |
Thanks to Jonas Nogueira for reporting this bug. |
| 14387 |
- clarified use of $ActionsSendStreamDriver[AuthMode/PermittedPeers] |
| 14388 |
in doc set (require TLS drivers) |
| 14389 |
- bugfix: $CreateDirs variable not properly initialized, default thus |
| 14390 |
was random (but most often "on") |
| 14391 |
- bugfix: potential segfault when -p command line option was used |
| 14392 |
thanks to varmojfekoj for pointing me at this bug |
| 14393 |
- bugfix: programname filter in ! configuration can not be reset |
| 14394 |
Thanks to Kiss Gabor for the patch. |
| 14395 |
--------------------------------------------------------------------------- |
| 14396 |
Version 3.22.1 [v3-stable] (rgerhards), 2009-07-02 |
| 14397 |
- bugfix: invalid error message issued if $includeConfig was on an empty |
| 14398 |
set of files (e.g. *.conf, where none such files existed) |
| 14399 |
thanks to Michael Biebl for reporting this bug |
| 14400 |
- bugfix: when run in foreground (but not in debug mode), a |
| 14401 |
debug message ("DoDie called") was emitted at shutdown. Removed. |
| 14402 |
thanks to Michael Biebl for reporting this bug |
| 14403 |
- bugfix: some garbage was emitted to stderr on shutdown. This |
| 14404 |
garbage consisted of file names, which were written during |
| 14405 |
startup (key point: not a pointer error) |
| 14406 |
thanks to Michael Biebl for reporting this bug |
| 14407 |
- bugfix: startup and shutdown message were emitted to stdout |
| 14408 |
thanks to Michael Biebl for reporting this bug |
| 14409 |
- bugfix: error messages were not emitted to stderr in forked mode |
| 14410 |
(stderr and stdo are now kept open across forks) |
| 14411 |
- bugfix: internal messages were emitted to whatever file had fd2 when |
| 14412 |
rsyslogd ran in forked mode (as usual!) |
| 14413 |
Thanks to varmojfekoj for the patch |
| 14414 |
- small enhancement: config validation run now exits with code 1 if an |
| 14415 |
error is detected. This change is considered important but small enough |
| 14416 |
to apply it directly to the stable version. [But it is a border case, |
| 14417 |
the change requires more code than I had hoped. Thus I have NOT tried |
| 14418 |
to actually catch all cases, this is left for the current devel |
| 14419 |
releases, if necessary] |
| 14420 |
- bugfix: light and full delay watermarks had invalid values, badly |
| 14421 |
affecting performance for delayable inputs |
| 14422 |
- bugfix: potential segfault issue when multiple $UDPServerRun directives |
| 14423 |
are specified. Thanks to Michael Biebl for helping to debug this one. |
| 14424 |
- relaxed GnuTLS version requirement to 1.4.0 after confirmation from the |
| 14425 |
field that this version is sufficient |
| 14426 |
- bugfix: parser did not properly handle empty structured data |
| 14427 |
- bugfix: invalid mutex release in msg.c (detected under thread debugger, |
| 14428 |
seems not to have any impact on actual deployments) |
| 14429 |
--------------------------------------------------------------------------- |
| 14430 |
Version 3.22.0 [v3-stable] (rgerhards), 2009-04-21 |
| 14431 |
This is the first stable release that includes the full functionality |
| 14432 |
of the 3.21.x version tree. |
| 14433 |
- bugfix: $InputTCPMaxSessions config directive was accepted, but not |
| 14434 |
honored. This resulted in a fixed upper limit of 200 connections. |
| 14435 |
- bugfix: the default for $DirCreateMode was 0644, and as such wrong. |
| 14436 |
It has now been changed to 0700. For some background, please see |
| 14437 |
http://lists.adiscon.net/pipermail/rsyslog/2009-April/001986.html |
| 14438 |
- bugfix: ompgsql did not detect problems in sql command execution |
| 14439 |
this could cause loss of messages. The handling was correct if the |
| 14440 |
connection broke, but not if there was a problem with statement |
| 14441 |
execution. The most probable case for such a case would be invalid |
| 14442 |
sql inside the template, and this is now much easier to diagnose. |
| 14443 |
--------------------------------------------------------------------------- |
| 14444 |
Version 3.21.11 [BETA] (rgerhards), 2009-04-03 |
| 14445 |
- build system improvements contributed by Michael Biebl - thx! |
| 14446 |
- all patches from 3.20.5 incorporated (see it's ChangeLog entry) |
| 14447 |
--------------------------------------------------------------------------- |
| 14448 |
Version 3.21.10 [BETA] (rgerhards), 2009-02-02 |
| 14449 |
- bugfix: inconsistent use of mutex/atomic operations could cause segfault |
| 14450 |
details are too many, for full analysis see blog post at: |
| 14451 |
http://blog.gerhards.net/2009/01/rsyslog-data-race-analysis.html |
| 14452 |
- the string "Do Die" was accidentally emited upon exit in non-debug mode |
| 14453 |
This has now been corrected. Thanks to varmojfekoj for the patch. |
| 14454 |
- some legacy options were not correctly processed. |
| 14455 |
Thanks to varmojfekoj for the patch. |
| 14456 |
- doc bugfix: v3-compatibility document had typo in config directive |
| 14457 |
thanks to Andrej for reporting this |
| 14458 |
--------------------------------------------------------------------------- |
| 14459 |
Version 3.21.9 [BETA] (rgerhards), 2008-12-04 |
| 14460 |
- re-release of 3.21.8 with an additional fix, that could also lead |
| 14461 |
to DoS; 3.21.8 has been removed from the official download archives |
| 14462 |
- security fix: imudp emitted a message when a non-permitted sender |
| 14463 |
tried to send a message to it. This behavior is operator-configurable. |
| 14464 |
If enabled, a message was emitted each time. That way an attacker could |
| 14465 |
effectively fill the disk via this facility. The message is now |
| 14466 |
emitted only once in a minute (this currently is a hard-coded limit, |
| 14467 |
if someone comes up with a good reason to make it configurable, we |
| 14468 |
will probably do that). |
| 14469 |
--------------------------------------------------------------------------- |
| 14470 |
Version 3.21.8 [BETA] (rgerhards), 2008-12-04 |
| 14471 |
- bugfix: imklog did not compile on FreeBSD |
| 14472 |
- security bugfix: $AllowedSender was not honored, all senders were |
| 14473 |
permitted instead (see https://www.rsyslog.com/Article322.phtml) |
| 14474 |
- merged in all other changes from 3.20.1 (see there) |
| 14475 |
--------------------------------------------------------------------------- |
| 14476 |
Version 3.21.7 [BETA] (rgerhards), 2008-11-11 |
| 14477 |
- this is the new beta branch, based on the former 3.21.6 devel |
| 14478 |
- new functionality: ZERO property replacer nomatch option (from v3-stable) |
| 14479 |
--------------------------------------------------------------------------- |
| 14480 |
Version 3.21.6 [DEVEL] (rgerhards), 2008-10-22 |
| 14481 |
- consolidated time calls during msg object creation, improves performance |
| 14482 |
and consistency |
| 14483 |
- bugfix: solved a segfault condition |
| 14484 |
- bugfix: subsecond time properties generated by imfile, imklog and |
| 14485 |
internal messages could be slightly inconsistent |
| 14486 |
- bugfix: (potentially big) memory leak on HUP if queues could not be |
| 14487 |
drained before timeout - thanks to David Lang for pointing this out |
| 14488 |
- added capability to support multiple module search paths. Thank |
| 14489 |
to Marius Tomaschewski for providing the patch. |
| 14490 |
- bugfix: im3195 did no longer compile |
| 14491 |
- improved "make distcheck" by ensuring everything relevant is recompiled |
| 14492 |
--------------------------------------------------------------------------- |
| 14493 |
Version 3.21.5 [DEVEL] (rgerhards), 2008-09-30 |
| 14494 |
- performance optimization: unnecessary time() calls during message |
| 14495 |
parsing removed - thanks to David Lang for his excellent performance |
| 14496 |
analysis |
| 14497 |
- added new capability to property replacer: multiple immediately |
| 14498 |
successive field delimiters are treated as a single one. |
| 14499 |
Thanks to Zhuang Yuyao for the patch. |
| 14500 |
- added message property "inputname", which contains the name of the |
| 14501 |
input (module) that generated it. Presence is depending on support in |
| 14502 |
each input module (else it is blank). |
| 14503 |
- added system property "$myhostname", which contains the name of the |
| 14504 |
local host as it knows itself. |
| 14505 |
- imported a number of fixes and enhancements from the stable and |
| 14506 |
devel branches, including a fix to a potential segfault on HUP |
| 14507 |
when using UDP listeners |
| 14508 |
- re-enabled gcc builtin atomic operations and added a proper |
| 14509 |
./configure check |
| 14510 |
- bugfix: potential race condition when adding messages to queue |
| 14511 |
There was a wrong order of mutex lock operations. It is hard to |
| 14512 |
believe that really caused problems, but in theory it could and with |
| 14513 |
threading we often see that theory becomes practice if something is only |
| 14514 |
used long enough on a fast enough machine with enough CPUs ;) |
| 14515 |
- cleaned up internal debug system code and made it behave better |
| 14516 |
in regard to multi-threading |
| 14517 |
--------------------------------------------------------------------------- |
| 14518 |
Version 3.21.4 [DEVEL] (rgerhards), 2008-09-04 |
| 14519 |
- removed compile time fixed message size limit (was 2K), limit can now |
| 14520 |
be set via $MaxMessageSize global config directive (finally gotten rid |
| 14521 |
of MAXLINE ;)) |
| 14522 |
- enhanced doc for $ActionExecOnlyEveryNthTimeTimeout |
| 14523 |
- integrated a number of patches from 3.18.4, namely |
| 14524 |
- bugfix: order-of magnitude issue with base-10 size definitions |
| 14525 |
in config file parser. Could lead to invalid sizes, constraints |
| 14526 |
etc for e.g. queue files and any other object whose size was specified |
| 14527 |
in base-10 entities. Did not apply to binary entities. Thanks to |
| 14528 |
RB for finding this bug and providing a patch. |
| 14529 |
- bugfix: action was not called when system time was set backwards |
| 14530 |
(until the previous time was reached again). There are still some |
| 14531 |
side-effects when time is rolled back (A time rollback is really a bad |
| 14532 |
thing to do, ideally the OS should issue pseudo time (like NetWare did) |
| 14533 |
when the user tries to roll back time). Thanks to varmojfekoj for this |
| 14534 |
patch. |
| 14535 |
- doc bugfix: rsyslog.conf man page improved and minor nit fixed |
| 14536 |
thanks to Lukas Kuklinek for the patch. |
| 14537 |
--------------------------------------------------------------------------- |
| 14538 |
Version 3.21.3 [DEVEL] (rgerhards), 2008-08-13 |
| 14539 |
- added ability to specify flow control mode for imuxsock |
| 14540 |
- added ability to execute actions only after the n-th call of the action |
| 14541 |
This also lead to the addition of two new config directives: |
| 14542 |
$ActionExecOnlyEveryNthTime and $ActionExecOnlyEveryNthTimeTimeout |
| 14543 |
This feature is useful, for example, for alerting: it permits you to |
| 14544 |
send an alert only after at least n occurrences of a specific message |
| 14545 |
have been seen by rsyslogd. This protects against false positives |
| 14546 |
due to waiting for additional confirmation. |
| 14547 |
- bugfix: IPv6 addresses could not be specified in forwarding actions |
| 14548 |
New syntax @[addr]:port introduced to enable that. Root problem was IPv6 |
| 14549 |
addresses contain colons. |
| 14550 |
- somewhat enhanced debugging messages |
| 14551 |
- imported from 3.18.3: |
| 14552 |
- enhanced ommysql to support custom port to connect to server |
| 14553 |
Port can be set via new $ActionOmmysqlServerPort config directive |
| 14554 |
Note: this was a very minor change and thus deemed appropriate to be |
| 14555 |
done in the stable release. |
| 14556 |
- bugfix: misspelled config directive, previously was |
| 14557 |
$MainMsgQueueWorkeTimeoutrThreadShutdown, is now |
| 14558 |
$MainMsgQueueWorkerTimeoutThreadShutdown. Note that the misspelled |
| 14559 |
directive is not preserved - if the misspelled directive was used |
| 14560 |
(which I consider highly unlikely), the config file must be changed. |
| 14561 |
Thanks to lperr for reporting the bug. |
| 14562 |
--------------------------------------------------------------------------- |
| 14563 |
Version 3.21.2 [DEVEL] (rgerhards), 2008-08-04 |
| 14564 |
- added $InputUnixListenSocketHostName config directive, which permits to |
| 14565 |
override the hostname being used on a local unix socket. This is useful |
| 14566 |
for differentiating "hosts" running in several jails. Feature was |
| 14567 |
suggested by David Darville, thanks for the suggestion. |
| 14568 |
- enhanced ommail to support multiple email recipients. This is done by |
| 14569 |
specifying $ActionMailTo multiple times. Note that this introduces a |
| 14570 |
small incompatibility to previous config file syntax: the recipient |
| 14571 |
list is now reset for each action (we honestly believe that will |
| 14572 |
not cause any problem - apologies if it does). |
| 14573 |
- enhanced troubleshooting documentation |
| 14574 |
--------------------------------------------------------------------------- |
| 14575 |
Version 3.21.1 [DEVEL] (rgerhards), 2008-07-30 |
| 14576 |
- bugfix: no error was reported if the target of a $IncludeConfig |
| 14577 |
could not be accessed. |
| 14578 |
- added testbed for common config errors |
| 14579 |
- added doc for -u option to rsyslogd man page |
| 14580 |
- enhanced config file checking - no active actions are detected |
| 14581 |
- added -N rsyslogd command line option for a config validation run |
| 14582 |
(which does not execute actual syslogd code and does not interfere |
| 14583 |
with a running instance) |
| 14584 |
- somewhat improved emergency configuration. It is now also selected |
| 14585 |
if the config contains no active actions |
| 14586 |
- rsyslogd error messages are now reported to stderr by default. can be |
| 14587 |
turned off by the new "$ErrorMessagesToStderr off" directive |
| 14588 |
Thanks to HKS for suggesting the new features. |
| 14589 |
--------------------------------------------------------------------------- |
| 14590 |
Version 3.21.0 [DEVEL] (rgerhards), 2008-07-18 |
| 14591 |
- starts a new devel branch |
| 14592 |
- added a generic test driver for RainerScript plus some test cases |
| 14593 |
to the testbench |
| 14594 |
- added a small diagnostic tool to obtain result of gethostname() API |
| 14595 |
- imported all changes from 3.18.1 until today (some quite important, |
| 14596 |
see below) |
| 14597 |
--------------------------------------------------------------------------- |
| 14598 |
Version 3.20.6 [v3-stable] (rgerhards), 2009-04-16 |
| 14599 |
- this is the last v3-stable for the 3.20.x series |
| 14600 |
- bugfix: $InputTCPMaxSessions config directive was accepted, but not |
| 14601 |
honored. This resulted in a fixed upper limit of 200 connections. |
| 14602 |
- bugfix: the default for $DirCreateMode was 0644, and as such wrong. |
| 14603 |
It has now been changed to 0700. For some background, please see |
| 14604 |
http://lists.adiscon.net/pipermail/rsyslog/2009-April/001986.html |
| 14605 |
--------------------------------------------------------------------------- |
| 14606 |
Version 3.20.5 [v3-stable] (rgerhards), 2009-04-02 |
| 14607 |
- bugfix: potential abort with DA queue after high watermark is reached |
| 14608 |
There exists a race condition that can lead to a segfault. Thanks |
| 14609 |
go to vbernetr, who performed the analysis and provided patch, which |
| 14610 |
I only tweaked a very little bit. |
| 14611 |
- fixed bugs in RainerScript: |
| 14612 |
o when converting a number and a string to a common type, both were |
| 14613 |
actually converted to the other variable's type. |
| 14614 |
o the value of rsCStrConvertToNumber() was miscalculated. |
| 14615 |
Thanks to varmojfekoj for the patch |
| 14616 |
- fixed a bug in configure.ac which resulted in problems with |
| 14617 |
environment detection - thanks to Michael Biebl for the patch |
| 14618 |
- fixed a potential segfault problem in gssapi code |
| 14619 |
thanks to varmojfekoj for the patch |
| 14620 |
- doc enhance: provide standard template for MySQL module and instructions |
| 14621 |
on how to modify schema |
| 14622 |
--------------------------------------------------------------------------- |
| 14623 |
Version 3.20.4 [v3-stable] (rgerhards), 2009-02-09 |
| 14624 |
- bugfix: inconsistent use of mutex/atomic operations could cause segfault |
| 14625 |
details are too many, for full analysis see blog post at: |
| 14626 |
http://blog.gerhards.net/2009/01/rsyslog-data-race-analysis.html |
| 14627 |
- bugfix: invalid ./configure settings for RFC3195 |
| 14628 |
thanks to Michael Biebl for the patch |
| 14629 |
- bugfix: invalid mutex access in msg.c |
| 14630 |
- doc bugfix: dist tarball missed 2 files, had one extra file that no |
| 14631 |
longer belongs into it. Thanks to Michael Biebl for pointing this out. |
| 14632 |
--------------------------------------------------------------------------- |
| 14633 |
Version 3.20.3 [v3-stable] (rgerhards), 2009-01-19 |
| 14634 |
- doc bugfix: v3-compatibility document had typo in config directive |
| 14635 |
thanks to Andrej for reporting this |
| 14636 |
- fixed a potential segfault condition with $AllowedSender directive |
| 14637 |
On HUP, the root pointers were not properly cleaned up. Thanks to |
| 14638 |
Michael Biebl, olgoat, and Juha Koho for reporting and analyzing |
| 14639 |
the bug. |
| 14640 |
--------------------------------------------------------------------------- |
| 14641 |
Version 3.20.2 [v3-stable] (rgerhards), 2008-12-04 |
| 14642 |
- re-release of 3.20.1 with an additional fix, that could also lead |
| 14643 |
to DoS; 3.20.1 has been removed from the official download archives |
| 14644 |
- security fix: imudp emitted a message when a non-permitted sender |
| 14645 |
tried to send a message to it. This behavior is operator-configurable. |
| 14646 |
If enabled, a message was emitted each time. That way an attacker could |
| 14647 |
effectively fill the disk via this facility. The message is now |
| 14648 |
emitted only once in a minute (this currently is a hard-coded limit, |
| 14649 |
if someone comes up with a good reason to make it configurable, we |
| 14650 |
will probably do that). |
| 14651 |
--------------------------------------------------------------------------- |
| 14652 |
Version 3.20.1 [v3-stable] (rgerhards), 2008-12-04 |
| 14653 |
- security bugfix: $AllowedSender was not honored, all senders were |
| 14654 |
permitted instead |
| 14655 |
- enhance: regex nomatch option "ZERO" has been added |
| 14656 |
This allows one to return the string 0 if a regular expression is |
| 14657 |
not found. This is probably useful for storing numerical values into |
| 14658 |
database columns. |
| 14659 |
- bugfix: memory leak in gtls netstream driver fixed |
| 14660 |
memory was lost each time a TLS session was torn down. This could |
| 14661 |
result in a considerable memory leak if it happened quite frequently |
| 14662 |
(potential system crash condition) |
| 14663 |
- doc update: documented how to specify multiple property replacer |
| 14664 |
options + link to new online regex generator tool added |
| 14665 |
- minor bugfix: very small memory leak in gtls netstream driver |
| 14666 |
around a handful of bytes (< 20) for each HUP |
| 14667 |
- improved debug output for regular expressions inside property replacer |
| 14668 |
RE's seem to be a big trouble spot and I would like to have more |
| 14669 |
information inside the debug log. So I decided to add some additional |
| 14670 |
debug strings permanently. |
| 14671 |
--------------------------------------------------------------------------- |
| 14672 |
Version 3.20.0 [v3-stable] (rgerhards), 2008-11-05 |
| 14673 |
- this is the initial release of the 3.19.x branch as a stable release |
| 14674 |
- bugfix: double-free in pctp netstream driver. Thank to varmojfekoj |
| 14675 |
for the patch |
| 14676 |
--------------------------------------------------------------------------- |
| 14677 |
Version 3.19.12 [BETA] (rgerhards), 2008-10-16 |
| 14678 |
- bugfix: subseconds where not correctly extracted from a timestamp |
| 14679 |
if that timestamp did not contain any subsecond information (the |
| 14680 |
resulting string was garbage but should have been "0", what it |
| 14681 |
now is). |
| 14682 |
- increased maximum size of a configuration statement to 4K (was 1K) |
| 14683 |
- imported all fixes from the stable branch (quite a lot) |
| 14684 |
- bugfix: (potentially big) memory leak on HUP if queues could not be |
| 14685 |
drained before timeout - thanks to David Lang for pointing this out |
| 14686 |
--------------------------------------------------------------------------- |
| 14687 |
Version 3.19.11 [BETA] (rgerhards), 2008-08-25 |
| 14688 |
This is a refresh of the beta. No beta-specific fixes have been added. |
| 14689 |
- included fixes from v3-stable (most importantly 3.18.3) |
| 14690 |
--------------------------------------------------------------------------- |
| 14691 |
Version 3.19.10 [BETA] (rgerhards), 2008-07-15 |
| 14692 |
- start of a new beta branch based on former 3.19 devel branch |
| 14693 |
- bugfix: bad memory leak in disk-based queue modes |
| 14694 |
- bugfix: UDP syslog forwarding did not work on all platforms |
| 14695 |
the ai_socktype was incorrectly set to 1. On some platforms, this |
| 14696 |
lead to failing name resolution (e.g. FreeBSD 7). Thanks to HKS for |
| 14697 |
reporting the bug. |
| 14698 |
- bugfix: priority was incorrectly calculated on FreeBSD 7, |
| 14699 |
because the LOG_MAKEPRI() C macro has a different meaning there (it |
| 14700 |
is just a simple addition of facility and severity). I have changed |
| 14701 |
this to use own, consistent, code for PRI calculation. Thank to HKS |
| 14702 |
for reporting this bug. |
| 14703 |
- bugfix (cosmetical): authorization was not checked when gtls handshake |
| 14704 |
completed immediately. While this sounds scary, the situation can not |
| 14705 |
happen in practice. We use non-blocking IO only for server-based gtls |
| 14706 |
session setup. As TLS requires the exchange of multiple frames before |
| 14707 |
the handshake completes, it simply is impossible to do this in one |
| 14708 |
step. However, it is useful to have the code path correct even for |
| 14709 |
this case - otherwise, we may run into problems if the code is changed |
| 14710 |
some time later (e.g. to use blocking sockets). Thanks to varmojfekoj |
| 14711 |
for providing the patch. |
| 14712 |
- important queue bugfix from 3.18.1 imported (see below) |
| 14713 |
- cleanup of some debug messages |
| 14714 |
--------------------------------------------------------------------------- |
| 14715 |
Version 3.19.9 (rgerhards), 2008-07-07 |
| 14716 |
- added tutorial for creating a TLS-secured syslog infrastructure |
| 14717 |
- rewritten omusrmsg to no longer fork() a new process for sending messages |
| 14718 |
this caused some problems with the threading model, e.g. zombies. Also, |
| 14719 |
it was far less optimal than it is now. |
| 14720 |
- bugfix: machine certificate was required for client even in TLS anon mode |
| 14721 |
Reference: http://bugzilla.adiscon.com/show_bug.cgi?id=85 |
| 14722 |
The fix also slightly improves performance by not storing certificates in |
| 14723 |
client sessions when there is no need to do so. |
| 14724 |
- bugfix: RainerScript syntax error was not always detected |
| 14725 |
--------------------------------------------------------------------------- |
| 14726 |
Version 3.19.8 (rgerhards), 2008-07-01 |
| 14727 |
- bugfix: gtls module did not correctly handle EGAIN (and similar) recv() |
| 14728 |
states. This has been fixed by introducing a new abstraction layer inside |
| 14729 |
gtls. |
| 14730 |
- added (internal) error codes to error messages; added redirector to |
| 14731 |
web description of error codes |
| 14732 |
closes bug http://bugzilla.adiscon.com/show_bug.cgi?id=20 |
| 14733 |
- disabled compile warnings caused by third-party libraries |
| 14734 |
- reduced number of compile warnings in gcc's -pedantic mode |
| 14735 |
- some minor documentation improvements |
| 14736 |
- included all fixes from beta 3.17.5 |
| 14737 |
--------------------------------------------------------------------------- |
| 14738 |
Version 3.19.7 (rgerhards), 2008-06-11 |
| 14739 |
- added new property replacer option "date-subseconds" that enables |
| 14740 |
to query just the subsecond part of a high-precision timestamp |
| 14741 |
- somewhat improved plain tcp syslog reliability by doing a connection |
| 14742 |
check before sending. Credits to Martin Schuette for providing the |
| 14743 |
idea. Details are available at |
| 14744 |
http://blog.gerhards.net/2008/06/reliable-plain-tcp-syslog-once-again.html |
| 14745 |
- made rsyslog tickless in the (usual and default) case that repeated |
| 14746 |
message reduction is turned off. More info: |
| 14747 |
http://blog.gerhards.net/2008/06/coding-to-save-environment.html |
| 14748 |
- some build system cleanup, thanks to Michael Biebl |
| 14749 |
- bugfix: compile under (Free)BSD failed due to some invalid library |
| 14750 |
definitions - this is fixed now. Thanks to Michael Biebl for the patch. |
| 14751 |
--------------------------------------------------------------------------- |
| 14752 |
Version 3.19.6 (rgerhards), 2008-06-06 |
| 14753 |
- enhanced property replacer to support multiple regex matches |
| 14754 |
- bugfix: part of permittedPeer structure was not correctly initialized |
| 14755 |
thanks to varmojfekoj for spotting this |
| 14756 |
- bugfix: off-by-one bug during certificate check |
| 14757 |
- bugfix: removed some memory leaks in TLS code |
| 14758 |
--------------------------------------------------------------------------- |
| 14759 |
Version 3.19.5 (rgerhards), 2008-05-30 |
| 14760 |
- enabled Posix ERE expressions inside the property replacer |
| 14761 |
(previously BRE was permitted only) |
| 14762 |
- provided ability to specify that a regular expression submatch shall |
| 14763 |
be used inside the property replacer |
| 14764 |
- implemented in property replacer: if a regular expression does not match, |
| 14765 |
it can now either return "**NO MATCH** (default, as before), a blank |
| 14766 |
property or the full original property text |
| 14767 |
- enhanced property replacer to support multiple regex matches |
| 14768 |
--------------------------------------------------------------------------- |
| 14769 |
Version 3.19.4 (rgerhards), 2008-05-27 |
| 14770 |
- implemented x509/certvalid gtls auth mode |
| 14771 |
- implemented x509/name gtls auth mode (including wildcards) |
| 14772 |
- changed fingerprint gtls auth mode to new format fingerprint |
| 14773 |
- protected gtls error string function by a mutex. Without it, we |
| 14774 |
could have a race condition in extreme cases. This was very remote, |
| 14775 |
but now can no longer happen. |
| 14776 |
- changed config directive name to reflect different use |
| 14777 |
$ActionSendStreamDriverCertFingerprint is now |
| 14778 |
$ActionSendStreamDriverPermittedPeer and can be used both for |
| 14779 |
fingerprint and name authentication (similar to the input side) |
| 14780 |
- bugfix: sender information (fromhost et al) was missing in imudp |
| 14781 |
thanks to sandiso for reporting this bug |
| 14782 |
- this release fully implements IETF's syslog-transport-tls-12 plus |
| 14783 |
the latest text changes Joe Salowey provided via email. Not included |
| 14784 |
is ipAddress subjectAltName authentication, which I think will be |
| 14785 |
dropped from the draft. I don't think there is any real need for it. |
| 14786 |
This release also includes all bug fix up to today from the beta |
| 14787 |
and stable branches. Most importantly, this means the bugfix for |
| 14788 |
100% CPU utilization by imklog. |
| 14789 |
--------------------------------------------------------------------------- |
| 14790 |
Version 3.19.3 (rgerhards), 2008-05-21 |
| 14791 |
- added ability to authenticate the server against its certificate |
| 14792 |
fingerprint |
| 14793 |
- added ability for client to provide its fingerprint |
| 14794 |
- added ability for server to obtain client cert's fingerprint |
| 14795 |
- bugfix: small mem leak in omfwd on exit (strmdriver name was not freed) |
| 14796 |
- bugfix: $ActionSendStreamDriver had no effect |
| 14797 |
- bugfix: default syslog port was no longer used if none was |
| 14798 |
configured. Thanks to varmojfekoj for the patch |
| 14799 |
- bugfix: missing linker options caused build to fail on some |
| 14800 |
systems. Thanks to Tiziano Mueller for the patch. |
| 14801 |
--------------------------------------------------------------------------- |
| 14802 |
Version 3.19.2 (rgerhards), 2008-05-16 |
| 14803 |
- bugfix: TCP input modules did incorrectly set fromhost property |
| 14804 |
(always blank) |
| 14805 |
- bugfix: imklog did not set fromhost property |
| 14806 |
- added "fromhost-ip" property |
| 14807 |
Note that adding this property changes the on-disk format for messages. |
| 14808 |
However, that should not have any bad effect on existing spool files. |
| 14809 |
But you will run into trouble if you create a spool file with this |
| 14810 |
version and then try to process it with an older one (after a downgrade). |
| 14811 |
Don't do that ;) |
| 14812 |
- added "RSYSLOG_DebugFormat" canned template |
| 14813 |
- bugfix: hostname and fromhost were swapped when a persisted message |
| 14814 |
(in queued mode) was read in |
| 14815 |
- bugfix: lmtcpclt, lmtcpsrv and lmgssutil did all link to the static |
| 14816 |
runtime library, resulting in a large size increase (and potential |
| 14817 |
"interesting" effects). Thanks to Michael Biebl for reporting the size |
| 14818 |
issue. |
| 14819 |
- bugfix: TLS server went into an endless loop in some situations. |
| 14820 |
Thanks to Michael Biebl for reporting the problem. |
| 14821 |
- fixed potential segfault due to invalid call to cfsysline |
| 14822 |
thanks to varmojfekoj for the patch |
| 14823 |
--------------------------------------------------------------------------- |
| 14824 |
Version 3.19.1 (rgerhards), 2008-05-07 |
| 14825 |
- configure help for --enable-gnutls wrong - said default is "yes" but |
| 14826 |
default actually is "no" - thanks to darix for pointing this out |
| 14827 |
- file dirty.h was missing - thanks to darix for pointing this out |
| 14828 |
- bugfix: man files were not properly distributed - thanks to |
| 14829 |
darix for reporting and to Michael Biebl for help with the fix |
| 14830 |
- some minor cleanup |
| 14831 |
--------------------------------------------------------------------------- |
| 14832 |
Version 3.19.0 (rgerhards), 2008-05-06 |
| 14833 |
- begins new devel branch version |
| 14834 |
- implemented TLS for plain tcp syslog (this is also the world's first |
| 14835 |
implementation of IETF's upcoming syslog-transport-tls draft) |
| 14836 |
- partly rewritten and improved omfwd among others, now loads TCP |
| 14837 |
code only if this is actually necessary |
| 14838 |
- split of a "runtime library" for rsyslog - this is not yet a clean |
| 14839 |
model, because some modularization is still outstanding. In theory, |
| 14840 |
this shall enable other utilities but rsyslogd to use the same |
| 14841 |
runtime |
| 14842 |
- implemented im3195, the RFC3195 input as a plugin |
| 14843 |
- changed directory structure, files are now better organized |
| 14844 |
- a lot of cleanup in regard to modularization |
| 14845 |
- -c option no longer must be the first option - thanks to varmojfekoj |
| 14846 |
for the patch |
| 14847 |
--------------------------------------------------------------------------- |
| 14848 |
Version 3.18.7 (rgerhards), 2008-12-?? |
| 14849 |
- bugfix: the default for $DirCreateMode was 0644, and as such wrong. |
| 14850 |
It has now been changed to 0700. For some background, please see |
| 14851 |
http://lists.adiscon.net/pipermail/rsyslog/2009-April/001986.html |
| 14852 |
- fixed a potential segfault condition with $AllowedSender directive |
| 14853 |
On HUP, the root pointers were not properly cleaned up. Thanks to |
| 14854 |
Michael Biebl, olgoat, and Juha Koho for reporting and analyzing |
| 14855 |
the bug. |
| 14856 |
- some legacy options were not correctly processed. |
| 14857 |
Thanks to varmojfekoj for the patch. |
| 14858 |
- doc bugfix: some spelling errors in man pages corrected. Thanks to |
| 14859 |
Geoff Simmons for the patch. |
| 14860 |
--------------------------------------------------------------------------- |
| 14861 |
Version 3.18.6 (rgerhards), 2008-12-08 |
| 14862 |
- security bugfix: $AllowedSender was not honored, all senders were |
| 14863 |
permitted instead (see https://www.rsyslog.com/Article322.phtml) |
| 14864 |
(backport from v3-stable, v3.20.9) |
| 14865 |
- minor bugfix: dual close() call on tcp session closure |
| 14866 |
--------------------------------------------------------------------------- |
| 14867 |
Version 3.18.5 (rgerhards), 2008-10-09 |
| 14868 |
- bugfix: imudp input module could cause segfault on HUP |
| 14869 |
It did not properly de-init a variable acting as a linked list head. |
| 14870 |
That resulted in trying to access freed memory blocks after the HUP. |
| 14871 |
- bugfix: rsyslogd could hang on HUP |
| 14872 |
because getnameinfo() is not cancel-safe, but was not guarded against |
| 14873 |
being cancelled. pthread_cancel() is routinely being called during |
| 14874 |
HUP processing. |
| 14875 |
- bugfix[minor]: if queue size reached light_delay mark, enqueuing |
| 14876 |
could potentially be blocked for a longer period of time, which |
| 14877 |
was not the behavior desired. |
| 14878 |
- doc bugfix: $ActionExecOnlyWhenPreviousIsSuspended was still misspelled |
| 14879 |
as $...OnlyIfPrev... in some parts of the documentation. Thanks to |
| 14880 |
Lorenzo M. Catucci for reporting this bug. |
| 14881 |
- added doc on malformed messages, cause and how to work-around, to the |
| 14882 |
doc set |
| 14883 |
- added doc on how to build from source repository |
| 14884 |
--------------------------------------------------------------------------- |
| 14885 |
Version 3.18.4 (rgerhards), 2008-09-18 |
| 14886 |
- bugfix: order-of magnitude issue with base-10 size definitions |
| 14887 |
in config file parser. Could lead to invalid sizes, constraints |
| 14888 |
etc for e.g. queue files and any other object whose size was specified |
| 14889 |
in base-10 entities. Did not apply to binary entities. Thanks to |
| 14890 |
RB for finding this bug and providing a patch. |
| 14891 |
- bugfix: action was not called when system time was set backwards |
| 14892 |
(until the previous time was reached again). There are still some |
| 14893 |
side-effects when time is rolled back (A time rollback is really a bad |
| 14894 |
thing to do, ideally the OS should issue pseudo time (like NetWare did) |
| 14895 |
when the user tries to roll back time). Thanks to varmojfekoj for this |
| 14896 |
patch. |
| 14897 |
- doc bugfix: rsyslog.conf man page improved and minor nit fixed |
| 14898 |
thanks to Lukas Kuklinek for the patch. |
| 14899 |
- bugfix: error code -2025 was used for two different errors. queue full |
| 14900 |
is now -2074 and -2025 is unique again. (did cause no real problem |
| 14901 |
except for troubleshooting) |
| 14902 |
- bugfix: default discard severity was incorrectly set to 4, which lead |
| 14903 |
to discard-on-queue-full to be enabled by default. That could cause |
| 14904 |
message loss where non was expected. The default has now been changed |
| 14905 |
to the correct value of 8, which disables the functionality. This |
| 14906 |
problem applied both to the main message queue and the action queues. |
| 14907 |
Thanks to Raoul Bhatia for pointing out this problem. |
| 14908 |
- bugfix: option value for legacy -a option could not be specified, |
| 14909 |
resulting in strange operations. Thanks to Marius Tomaschewski |
| 14910 |
for the patch. |
| 14911 |
- bugfix: colon after date should be ignored, but was not. This has |
| 14912 |
now been corrected. Required change to the internal ParseTIMESTAMP3164() |
| 14913 |
interface. |
| 14914 |
--------------------------------------------------------------------------- |
| 14915 |
Version 3.18.3 (rgerhards), 2008-08-18 |
| 14916 |
- bugfix: imfile could cause a segfault upon rsyslogd HUP and termination |
| 14917 |
Thanks to lperr for an excellent bug report that helped detect this |
| 14918 |
problem. |
| 14919 |
- enhanced ommysql to support custom port to connect to server |
| 14920 |
Port can be set via new $ActionOmmysqlServerPort config directive |
| 14921 |
Note: this was a very minor change and thus deemed appropriate to be |
| 14922 |
done in the stable release. |
| 14923 |
- bugfix: misspelled config directive, previously was |
| 14924 |
$MainMsgQueueWorkeTimeoutrThreadShutdown, is now |
| 14925 |
$MainMsgQueueWorkerTimeoutThreadShutdown. Note that the misspelled |
| 14926 |
directive is not preserved - if the misspelled directive was used |
| 14927 |
(which I consider highly unlikely), the config file must be changed. |
| 14928 |
Thanks to lperr for reporting the bug. |
| 14929 |
- disabled flow control for imuxsock, as it could cause system hangs |
| 14930 |
under some circumstances. The devel (3.21.3 and above) will |
| 14931 |
re-enable it and provide enhanced configurability to overcome the |
| 14932 |
problems if they occur. |
| 14933 |
--------------------------------------------------------------------------- |
| 14934 |
Version 3.18.2 (rgerhards), 2008-08-08 |
| 14935 |
- merged in IPv6 forwarding address bugfix from v2-stable |
| 14936 |
--------------------------------------------------------------------------- |
| 14937 |
Version 3.18.1 (rgerhards), 2008-07-21 |
| 14938 |
- bugfix: potential segfault in creating message mutex in non-direct queue |
| 14939 |
mode. rsyslogd segfaults on freeBSD 7.0 (an potentially other platforms) |
| 14940 |
if an action queue is running in any other mode than non-direct. The |
| 14941 |
same problem can potentially be triggered by some main message queue |
| 14942 |
settings. In any case, it will manifest during rsyslog's startup. It is |
| 14943 |
unlikely to happen after a successful startup (the only window of |
| 14944 |
exposure may be a relatively seldom executed action running in queued |
| 14945 |
mode). This has been corrected. Thank to HKS for point out the problem. |
| 14946 |
- bugfix: priority was incorrectly calculated on FreeBSD 7, |
| 14947 |
because the LOG_MAKEPRI() C macro has a different meaning there (it |
| 14948 |
is just a simple addition of facility and severity). I have changed |
| 14949 |
this to use own, consistent, code for PRI calculation. [Backport from |
| 14950 |
3.19.10] |
| 14951 |
- bugfix: remove PRI part from kernel message if it is present |
| 14952 |
Thanks to Michael Biebl for reporting this bug |
| 14953 |
- bugfix: mark messages were not correctly written to text log files |
| 14954 |
the markmessageinterval was not correctly propagated to all places |
| 14955 |
where it was needed. This resulted in rsyslog using the default |
| 14956 |
(20 minutes) in some code paths, what looked to the user like mark |
| 14957 |
messages were never written. |
| 14958 |
- added a new property replacer option "sp-if-no-1st-sp" to cover |
| 14959 |
a problem with RFC 3164 based interpretation of tag separation. While |
| 14960 |
it is a generic approach, it fixes a format problem introduced in |
| 14961 |
3.18.0, where kernel messages no longer had a space after the tag. |
| 14962 |
This is done by a modification of the default templates. |
| 14963 |
Please note that this may affect some messages where there intentionally |
| 14964 |
is no space between the tag and the first character of the message |
| 14965 |
content. If so, this needs to be worked around via a specific |
| 14966 |
template. However, we consider this scenario to be quite remote and, |
| 14967 |
even if it exists, it is not expected that it will actually cause |
| 14968 |
problems with log parsers (instead, we assume the new default template |
| 14969 |
behavior may fix previous problems with log parsers due to the |
| 14970 |
missing space). |
| 14971 |
- bugfix: imklog module was not correctly compiled for GNU/kFreeBSD. |
| 14972 |
Thanks to Petr Salinger for the patch |
| 14973 |
- doc bugfix: property replacer options secpath-replace and |
| 14974 |
secpath-drop were not documented |
| 14975 |
- doc bugfix: fixed some typos in rsyslog.conf man page |
| 14976 |
- fixed typo in source comment - thanks to Rio Fujita |
| 14977 |
- some general cleanup (thanks to Michael Biebl) |
| 14978 |
--------------------------------------------------------------------------- |
| 14979 |
Version 3.18.0 (rgerhards), 2008-07-11 |
| 14980 |
- begun a new v3-stable based on former 3.17.4 beta plus patches to |
| 14981 |
previous v3-stable |
| 14982 |
- bugfix in RainerScript: syntax error was not always detected |
| 14983 |
--------------------------------------------------------------------------- |
| 14984 |
Version 3.17.5 (rgerhards), 2008-06-27 |
| 14985 |
- added doc: howto set up a reliable connection to remote server via |
| 14986 |
queued mode (and plain tcp protocol) |
| 14987 |
- bugfix: comments after actions were not properly treated. For some |
| 14988 |
actions (e.g. forwarding), this could also lead to invalid configuration |
| 14989 |
--------------------------------------------------------------------------- |
| 14990 |
Version 3.17.4 (rgerhards), 2008-06-16 |
| 14991 |
- changed default for $KlogSymbolLookup to "off". The directive is |
| 14992 |
also scheduled for removal in a later version. This was necessary |
| 14993 |
because on kernels >= 2.6, the kernel does the symbol lookup itself. The |
| 14994 |
imklog lookup logic then breaks the log message and makes it unusable. |
| 14995 |
--------------------------------------------------------------------------- |
| 14996 |
Version 3.17.3 (rgerhards), 2008-05-28 |
| 14997 |
- bugfix: imklog went into an endless loop if a PRI value was inside |
| 14998 |
a kernel log message (unusual case under Linux, frequent under BSD) |
| 14999 |
--------------------------------------------------------------------------- |
| 15000 |
Version 3.17.2 (rgerhards), 2008-05-04 |
| 15001 |
- this version is the new beta, based on 3.17.1 devel feature set |
| 15002 |
- merged in imklog bug fix from v3-stable (3.16.1) |
| 15003 |
--------------------------------------------------------------------------- |
| 15004 |
Version 3.17.1 (rgerhards), 2008-04-15 |
| 15005 |
- removed dependency on MAXHOSTNAMELEN as much as it made sense. |
| 15006 |
GNU/Hurd does not define it (because it has no limit), and we have taken |
| 15007 |
care for cases where it is undefined now. However, some very few places |
| 15008 |
remain where IMHO it currently is not worth fixing the code. If it is |
| 15009 |
not defined, we have used a generous value of 1K, which is above IETF |
| 15010 |
RFC's on hostname length at all. The memory consumption is no issue, as |
| 15011 |
there are only a handful of this buffers allocated *per run* -- that's |
| 15012 |
also the main reason why we consider it not worth to be fixed any further. |
| 15013 |
- enhanced legacy syslog parser to handle slightly malformed messages |
| 15014 |
(with a space in front of the timestamp) - at least HP procurve is |
| 15015 |
known to do that and I won't outrule that others also do it. The |
| 15016 |
change looks quite unintrusive and so we added it to the parser. |
| 15017 |
- implemented klogd functionality for BSD |
| 15018 |
- implemented high precision timestamps for the kernel log. Thanks to |
| 15019 |
Michael Biebl for pointing out that the kernel log did not have them. |
| 15020 |
- provided ability to discard non-kernel messages if they are present |
| 15021 |
in the kernel log (seems to happen on BSD) |
| 15022 |
- implemented $KLogInternalMsgFacility config directive |
| 15023 |
- implemented $KLogPermitNonKernelFacility config directive |
| 15024 |
Plus a number of bugfixes that were applied to v3-stable and beta |
| 15025 |
branches (not mentioned here in detail). |
| 15026 |
--------------------------------------------------------------------------- |
| 15027 |
Version 3.17.0 (rgerhards), 2008-04-08 |
| 15028 |
- added native ability to send mail messages |
| 15029 |
- removed no longer needed file relputil.c/.h |
| 15030 |
- added $ActionExecOnlyOnceEveryInterval config directive |
| 15031 |
- bugfix: memory leaks in script engine |
| 15032 |
- bugfix: zero-length strings were not supported in object |
| 15033 |
deserializer |
| 15034 |
- properties are now case-insensitive everywhere (script, filters, |
| 15035 |
templates) |
| 15036 |
- added the capability to specify a processing (actually dequeue) |
| 15037 |
timeframe with queues - so things can be configured to be done |
| 15038 |
at off-peak hours |
| 15039 |
- We have removed the 32 character size limit (from RFC3164) on the |
| 15040 |
tag. This had bad effects on existing environments, as sysklogd didn't |
| 15041 |
obey it either (probably another bug in RFC3164...). We now receive |
| 15042 |
the full size, but will modify the outputs so that only 32 characters |
| 15043 |
max are used by default. If you need large tags in the output, you need |
| 15044 |
to provide custom templates. |
| 15045 |
- changed command line processing. -v, -M, -c options are now parsed |
| 15046 |
and processed before all other options. Inter-option dependencies |
| 15047 |
have been relieved. Among others, permits to specify initial module |
| 15048 |
load path via -M only (not the environment) which makes it much |
| 15049 |
easier to work with non-standard module library locations. Thanks |
| 15050 |
to varmojfekoj for suggesting this change. Matches bugzilla bug 55. |
| 15051 |
- bugfix: some messages were emited without hostname |
| 15052 |
Plus a number of bugfixes that were applied to v3-stable and beta |
| 15053 |
branches (not mentioned here in detail). |
| 15054 |
--------------------------------------------------------------------------- |
| 15055 |
Version 3.16.3 (rgerhards), 2008-07-11 |
| 15056 |
- updated information on rsyslog packages |
| 15057 |
- bugfix: memory leak in disk-based queue modes |
| 15058 |
--------------------------------------------------------------------------- |
| 15059 |
Version 3.16.2 (rgerhards), 2008-06-25 |
| 15060 |
- fixed potential segfault due to invalid call to cfsysline |
| 15061 |
thanks to varmojfekoj for the patch |
| 15062 |
- bugfix: some whitespaces where incorrectly not ignored when parsing |
| 15063 |
the config file. This is now corrected. Thanks to Michael Biebl for |
| 15064 |
pointing out the problem. |
| 15065 |
--------------------------------------------------------------------------- |
| 15066 |
Version 3.16.1 (rgerhards), 2008-05-02 |
| 15067 |
- fixed a bug in imklog which lead to startup problems (including |
| 15068 |
segfault) on some platforms under some circumstances. Thanks to |
| 15069 |
Vieri for reporting this bug and helping to troubleshoot it. |
| 15070 |
--------------------------------------------------------------------------- |
| 15071 |
Version 3.16.0 (rgerhards), 2008-04-24 |
| 15072 |
- new v3-stable (3.16.x) based on beta 3.15.x (RELP support) |
| 15073 |
- bugfix: omsnmp had a too-small sized buffer for hostname+port. This |
| 15074 |
could not lead to a segfault, as snprintf() was used, but could cause |
| 15075 |
some trouble with extensively long hostnames. |
| 15076 |
- applied patch from Tiziano Müller to remove some compiler warnings |
| 15077 |
- added gssapi overview/howto thanks to Peter Vrabec |
| 15078 |
- changed some files to grant LGPLv3 extended permissions on top of GPLv3 |
| 15079 |
this also is the first sign of something that will evolve into a |
| 15080 |
well-defined "rsyslog runtime library" |
| 15081 |
--------------------------------------------------------------------------- |
| 15082 |
Version 3.15.1 (rgerhards), 2008-04-11 |
| 15083 |
- bugfix: some messages were emited without hostname |
| 15084 |
- disabled atomic operations for the time being because they introduce some |
| 15085 |
cross-platform trouble - need to see how to fix this in the best |
| 15086 |
possible way |
| 15087 |
- bugfix: zero-length strings were not supported in object |
| 15088 |
deserializer |
| 15089 |
- added librelp check via PKG_CHECK thanks to Michael Biebl's patch |
| 15090 |
- file relputil.c deleted, is not actually needed |
| 15091 |
- added more meaningful error messages to rsyslogd (when some errors |
| 15092 |
happens during startup) |
| 15093 |
- bugfix: memory leaks in script engine |
| 15094 |
- bugfix: $hostname and $fromhost in RainerScript did not work |
| 15095 |
This release also includes all changes applied to the stable versions |
| 15096 |
up to today. |
| 15097 |
--------------------------------------------------------------------------- |
| 15098 |
Version 3.15.0 (rgerhards), 2008-04-01 |
| 15099 |
- major new feature: imrelp/omrelp support reliable delivery of syslog |
| 15100 |
messages via the RELP protocol and librelp (http://www.librelp.com). |
| 15101 |
Plain tcp syslog, so far the best reliability solution, can lose |
| 15102 |
messages when something goes wrong or a peer goes down. With RELP, |
| 15103 |
this can no longer happen. See imrelp.html for more details. |
| 15104 |
- bugfix: rsyslogd was no longer build by default; man pages are |
| 15105 |
only installed if corresponding option is selected. Thanks to |
| 15106 |
Michael Biebl for pointing these problems out. |
| 15107 |
--------------------------------------------------------------------------- |
| 15108 |
Version 3.14.2 (rgerhards), 2008-04-09 |
| 15109 |
- bugfix: segfault with expression-based filters |
| 15110 |
- bugfix: omsnmp did not deref errmsg object on exit (no bad effects caused) |
| 15111 |
- some cleanup |
| 15112 |
- bugfix: imklog did not work well with kernel 2.6+. Thanks to Peter |
| 15113 |
Vrabec for patching it based on the development in sysklogd - and thanks |
| 15114 |
to the sysklogd project for upgrading klogd to support the new |
| 15115 |
functionality |
| 15116 |
- some cleanup in imklog |
| 15117 |
- bugfix: potential segfault in imklog when kernel is compiled without |
| 15118 |
/proc/kallsyms and the file System.map is missing. Thanks to |
| 15119 |
Andrea Morandi for pointing it out and suggesting a fix. |
| 15120 |
- bugfixes, credits to varmojfekoj: |
| 15121 |
* reset errno before printing a warning message |
| 15122 |
* misspelled directive name in code processing legacy options |
| 15123 |
- bugfix: some legacy options not correctly interpreted - thanks to |
| 15124 |
varmojfekoj for the patch |
| 15125 |
- improved detection of modules being loaded more than once |
| 15126 |
thanks to varmojfekoj for the patch |
| 15127 |
--------------------------------------------------------------------------- |
| 15128 |
Version 3.14.1 (rgerhards), 2008-04-04 |
| 15129 |
- bugfix: some messages were emited without hostname |
| 15130 |
- bugfix: rsyslogd was no longer build by default; man pages are |
| 15131 |
only installed if corresponding option is selected. Thanks to |
| 15132 |
Michael Biebl for pointing these problems out. |
| 15133 |
- bugfix: zero-length strings were not supported in object |
| 15134 |
deserializer |
| 15135 |
- disabled atomic operations for this stable build as it caused |
| 15136 |
platform problems |
| 15137 |
- bugfix: memory leaks in script engine |
| 15138 |
- bugfix: $hostname and $fromhost in RainerScript did not work |
| 15139 |
- bugfix: some memory leak when queue is running in disk mode |
| 15140 |
- man pages improved thanks to varmojfekoj and Peter Vrabec |
| 15141 |
- We have removed the 32 character size limit (from RFC3164) on the |
| 15142 |
tag. This had bad effects on existing environments, as sysklogd didn't |
| 15143 |
obey it either (probably another bug in RFC3164...). We now receive |
| 15144 |
the full size, but will modify the outputs so that only 32 characters |
| 15145 |
max are used by default. If you need large tags in the output, you need |
| 15146 |
to provide custom templates. |
| 15147 |
- bugfix: some memory leak when queue is running in disk mode |
| 15148 |
--------------------------------------------------------------------------- |
| 15149 |
Version 3.14.0 (rgerhards), 2008-04-02 |
| 15150 |
An interim version was accidentally released to the web. It was named 3.14.0. |
| 15151 |
To avoid confusion, we have not assigned this version number to any |
| 15152 |
official release. If you happen to use 3.14.0, please update to 3.14.1. |
| 15153 |
--------------------------------------------------------------------------- |
| 15154 |
Version 3.13.0-dev0 (rgerhards), 2008-03-31 |
| 15155 |
- bugfix: accidentally set debug option in 3.12.5 reset to production |
| 15156 |
This option prevented dlclose() to be called. It had no real bad effects, |
| 15157 |
as the modules were otherwise correctly deinitialized and dlopen() |
| 15158 |
supports multiple opens of the same module without any memory footprint. |
| 15159 |
- removed --enable-mudflap, added --enable-valgrind ./configure setting |
| 15160 |
- bugfix: tcp receiver could segfault due to uninitialized variable |
| 15161 |
- docfix: queue doc had a wrong directive name that prevented max worker |
| 15162 |
threads to be correctly set |
| 15163 |
- worked a bit on atomic memory operations to support problem-free |
| 15164 |
threading (only at non-intrusive places) |
| 15165 |
- added a --enable/disable-rsyslogd configure option so that |
| 15166 |
source-based packaging systems can build plugins without the need |
| 15167 |
to compile rsyslogd |
| 15168 |
- some cleanup |
| 15169 |
- test of potential new version number scheme |
| 15170 |
--------------------------------------------------------------------------- |
| 15171 |
Version 3.12.5 (rgerhards), 2008-03-28 |
| 15172 |
- changed default for "last message repeated n times", which is now |
| 15173 |
off by default |
| 15174 |
- implemented backward compatibility commandline option parsing |
| 15175 |
- automatically generated compatibility config lines are now also |
| 15176 |
logged so that a user can diagnose problems with them |
| 15177 |
- added compatibility mode for -a, -o and -p options |
| 15178 |
- compatibility mode processing finished |
| 15179 |
- changed default file output format to include high-precision timestamps |
| 15180 |
- added a built-in template for previous syslogd file format |
| 15181 |
- added new $ActionFileDefaultTemplate directive |
| 15182 |
- added support for high-precision timestamps when receiving legacy |
| 15183 |
syslog messages |
| 15184 |
- added new $ActionForwardDefaultTemplate directive |
| 15185 |
- added new $ActionGSSForwardDefaultTemplate directive |
| 15186 |
- added build-in templates for easier configuration |
| 15187 |
- bugfix: fixed small memory leak in tcpclt.c |
| 15188 |
- bugfix: fixed small memory leak in template regular expressions |
| 15189 |
- bugfix: regular expressions inside property replacer did not work |
| 15190 |
properly |
| 15191 |
- bugfix: QHOUR and HHOUR properties were wrongly calculated |
| 15192 |
- bugfix: fixed memory leaks in stream class and imfile |
| 15193 |
- bugfix: $ModDir did invalid bounds checking, potential overflow in |
| 15194 |
dbgprintf() - thanks to varmojfekoj for the patch |
| 15195 |
- bugfix: -t and -g legacy options max number of sessions had a wrong |
| 15196 |
and much too high value |
| 15197 |
--------------------------------------------------------------------------- |
| 15198 |
Version 3.12.4 (rgerhards), 2008-03-25 |
| 15199 |
- Greatly enhanced rsyslogd's file write performance by disabling |
| 15200 |
file syncing capability of output modules by default. This |
| 15201 |
feature is usually not required, not useful and an extreme performance |
| 15202 |
hit (both to rsyslogd as well as the system at large). Unfortunately, |
| 15203 |
most users enable it by default, because it was most intuitive to enable |
| 15204 |
it in plain old sysklogd syslog.conf format. There is now the |
| 15205 |
$ActionFileEnableSync config setting which must be enabled in order to |
| 15206 |
support syncing. By default it is off. So even if the old-format config |
| 15207 |
lines request syncing, it is not done unless explicitly enabled. I am |
| 15208 |
sure this is a very useful change and not a risk at all. I need to think |
| 15209 |
if I undo it under compatibility mode, but currently this does not |
| 15210 |
happen (I fear a lot of lazy users will run rsyslogd in compatibility |
| 15211 |
mode, again bringing up this performance problem...). |
| 15212 |
- added flow control options to other input sources |
| 15213 |
- added $HHOUR and $QHOUR system properties - can be used for half- and |
| 15214 |
quarter-hour logfile rotation |
| 15215 |
- changed queue's discard severities default value to 8 (do not discard) |
| 15216 |
to prevent unintentional message loss |
| 15217 |
- removed a no-longer needed callback from the output module |
| 15218 |
interface. Results in reduced code complexity. |
| 15219 |
- bugfix/doc: removed no longer supported -h option from man page |
| 15220 |
- bugfix: imklog leaked several hundred KB on each HUP. Thanks to |
| 15221 |
varmojfekoj for the patch |
| 15222 |
- bugfix: potential segfault on module unload. Thanks to varmojfekoj for |
| 15223 |
the patch |
| 15224 |
- bugfix: fixed some minor memory leaks |
| 15225 |
- bugfix: fixed some slightly invalid memory accesses |
| 15226 |
- bugfix: internally generated messages had "FROMHOST" property not set |
| 15227 |
--------------------------------------------------------------------------- |
| 15228 |
Version 3.12.3 (rgerhards), 2008-03-18 |
| 15229 |
- added advanced flow control for congestion cases (mode depending on message |
| 15230 |
source and its capability to be delayed without bad side effects) |
| 15231 |
- bugfix: $ModDir should not be reset on $ResetConfig - this can cause a lot |
| 15232 |
of confusion and there is no real good reason to do so. Also conflicts with |
| 15233 |
the new -M option and environment setting. |
| 15234 |
- bugfix: TCP and GSSAPI framing mode variable was uninitialized, leading to |
| 15235 |
wrong framing (caused, among others, interop problems) |
| 15236 |
- bugfix: TCP (and GSSAPI) octet-counted frame did not work correctly in all |
| 15237 |
situations. If the header was split across two packet reads, it was invalidly |
| 15238 |
processed, causing loss or modification of messages. |
| 15239 |
- bugfix: memory leak in imfile |
| 15240 |
- bugfix: duplicate public symbol in omfwd and omgssapi could lead to |
| 15241 |
segfault. thanks to varmojfekoj for the patch. |
| 15242 |
- bugfix: rsyslogd aborted on sighup - thanks to varmojfekoj for the patch |
| 15243 |
- some more internal cleanup ;) |
| 15244 |
- begun relp modules, but these are not functional yet |
| 15245 |
- Greatly enhanced rsyslogd's file write performance by disabling |
| 15246 |
file syncing capability of output modules by default. This |
| 15247 |
feature is usually not required, not useful and an extreme performance |
| 15248 |
hit (both to rsyslogd as well as the system at large). Unfortunately, |
| 15249 |
most users enable it by default, because it was most intuitive to enable |
| 15250 |
it in plain old sysklogd syslog.conf format. There is now a new config |
| 15251 |
setting which must be enabled in order to support syncing. By default it |
| 15252 |
is off. So even if the old-format config lines request syncing, it is |
| 15253 |
not done unless explicitly enabled. I am sure this is a very useful |
| 15254 |
change and not a risk at all. I need to think if I undo it under |
| 15255 |
compatibility mode, but currently this does not happen (I fear a lot of |
| 15256 |
lazy users will run rsyslogd in compatibility mode, again bringing up |
| 15257 |
this performance problem...). |
| 15258 |
--------------------------------------------------------------------------- |
| 15259 |
Version 3.12.2 (rgerhards), 2008-03-13 |
| 15260 |
- added RSYSLOGD_MODDIR environment variable |
| 15261 |
- added -M rsyslogd option (allows one to specify module directory location) |
| 15262 |
- converted net.c into a loadable library plugin |
| 15263 |
- bugfix: debug module now survives unload of loadable module when |
| 15264 |
printing out function call data |
| 15265 |
- bugfix: not properly initialized data could cause several segfaults if |
| 15266 |
there were errors in the config file - thanks to varmojfekoj for the patch |
| 15267 |
- bugfix: rsyslogd segfaulted when imfile read an empty line - thanks |
| 15268 |
to Johnny Tan for an excellent bug report |
| 15269 |
- implemented dynamic module unload capability (not visible to end user) |
| 15270 |
- some more internal cleanup |
| 15271 |
- bugfix: imgssapi segfaulted under some conditions; this fix is actually |
| 15272 |
not just a fix but a change in the object model. Thanks to varmojfekoj |
| 15273 |
for providing the bug report, an initial fix and lots of good discussion |
| 15274 |
that lead to where we finally ended up. |
| 15275 |
- improved session recovery when outbound tcp connection breaks, reduces |
| 15276 |
probability of message loss at the price of a highly unlikely potential |
| 15277 |
(single) message duplication |
| 15278 |
--------------------------------------------------------------------------- |
| 15279 |
Version 3.12.1 (rgerhards), 2008-03-06 |
| 15280 |
- added library plugins, which can be automatically loaded |
| 15281 |
- bugfix: actions were not correctly retried; caused message loss |
| 15282 |
- changed module loader to automatically add ".so" suffix if not |
| 15283 |
specified (over time, this shall also ease portability of config |
| 15284 |
files) |
| 15285 |
- improved debugging support; debug runtime options can now be set via |
| 15286 |
an environment variable |
| 15287 |
- bugfix: removed debugging code that I forgot to remove before releasing |
| 15288 |
3.12.0 (does not cause harm and happened only during startup) |
| 15289 |
- added support for the MonitorWare syslog MIB to omsnmp |
| 15290 |
- internal code improvements (more code converted into classes) |
| 15291 |
- internal code reworking of the imtcp/imgssapi module |
| 15292 |
- added capability to ignore client-provided timestamp on unix sockets and |
| 15293 |
made this mode the default; this was needed, as some programs (e.g. sshd) |
| 15294 |
log with inconsistent timezone information, what messes up the local |
| 15295 |
logs (which by default don't even contain time zone information). This |
| 15296 |
seems to be consistent with what sysklogd did for the past four years. |
| 15297 |
Alternate behavior may be desirable if gateway-like processes send |
| 15298 |
messages via the local log slot - in this case, it can be enabled |
| 15299 |
via the $InputUnixListenSocketIgnoreMsgTimestamp and |
| 15300 |
$SystemLogSocketIgnoreMsgTimestamp config directives |
| 15301 |
- added ability to compile on HP UX; verified that imudp worked on HP UX; |
| 15302 |
however, we are still in need of people trying out rsyslogd on HP UX, |
| 15303 |
so it can not yet be assumed it runs there |
| 15304 |
- improved session recovery when outbound tcp connection breaks, reduces |
| 15305 |
probability of message loss at the price of a highly unlikely potential |
| 15306 |
(single) message duplication |
| 15307 |
--------------------------------------------------------------------------- |
| 15308 |
Version 3.12.0 (rgerhards), 2008-02-28 |
| 15309 |
- added full expression support for filters; filters can now contain |
| 15310 |
arbitrary complex boolean, string and arithmetic expressions |
| 15311 |
--------------------------------------------------------------------------- |
| 15312 |
Version 3.11.6 (rgerhards), 2008-02-27 |
| 15313 |
- bugfix: gssapi libraries were still linked to rsyslog core, what should |
| 15314 |
no longer be necessary. Applied fix by Michael Biebl to solve this. |
| 15315 |
- enabled imgssapi to be loaded side-by-side with imtcp |
| 15316 |
- added InputGSSServerPermitPlainTCP config directive |
| 15317 |
- split imgssapi source code somewhat from imtcp |
| 15318 |
- bugfix: queue cancel cleanup handler could be called with |
| 15319 |
invalid pointer if dequeue failed |
| 15320 |
- bugfix: rsyslogd segfaulted on second SIGHUP |
| 15321 |
tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=38 |
| 15322 |
- improved stability of queue engine |
| 15323 |
- bugfix: queue disk file were not properly persisted when |
| 15324 |
immediately after closing an output file rsyslog was stopped |
| 15325 |
or huped (the new output file open must NOT have happened at |
| 15326 |
that point) - this lead to a sparse and invalid queue file |
| 15327 |
which could cause several problems to the engine (unpredictable |
| 15328 |
results). This situation should have happened only in very |
| 15329 |
rare cases. tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=40 |
| 15330 |
- bugfix: during queue shutdown, an assert invalidly triggered when |
| 15331 |
the primary queue's DA worker was terminated while the DA queue's |
| 15332 |
regular worker was still executing. This could result in a segfault |
| 15333 |
during shutdown. |
| 15334 |
tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=41 |
| 15335 |
- bugfix: queue properties sizeOnDisk, bytesRead were persisted to |
| 15336 |
disk with wrong data type (long instead of int64) - could cause |
| 15337 |
problems on 32 bit machines |
| 15338 |
- bugfix: queue aborted when it was shut down, DA-enabled, DA mode |
| 15339 |
was just initiated but not fully initialized (a race condition) |
| 15340 |
- bugfix: imfile could abort under extreme stress conditions |
| 15341 |
(when it was terminated before it could open all of its |
| 15342 |
to be monitored files) |
| 15343 |
- applied patch from varmojfekoj to fix an issue with compatibility |
| 15344 |
mode and default module directories (many thanks!): |
| 15345 |
I've also noticed a bug in the compatibility code; the problem is that |
| 15346 |
options are parsed before configuration file so options which need a |
| 15347 |
module to be loaded will currently ignore any $moddir directive. This |
| 15348 |
can be fixed by moving legacyOptsHook() after config file parsing. |
| 15349 |
(see the attached patch) This goes against the logical order of |
| 15350 |
processing, but the legacy options are only few and it doesn't seem to |
| 15351 |
be a problem. |
| 15352 |
- bugfix: object property deserializer did not handle negative numbers |
| 15353 |
--------------------------------------------------------------------------- |
| 15354 |
Version 3.11.5 (rgerhards), 2008-02-25 |
| 15355 |
- new imgssapi module, changed imtcp module - this enables to load/package |
| 15356 |
GSSAPI support separately - thanks to varmojfekoj for the patch |
| 15357 |
- compatibility mode (the -c option series) is now at least partly |
| 15358 |
completed - thanks to varmojfekoj for the patch |
| 15359 |
- documentation for imgssapi and imtcp added |
| 15360 |
- duplicate $ModLoad's for the same module are now detected and |
| 15361 |
rejected -- thanks to varmojfekoj for the patch |
| 15362 |
--------------------------------------------------------------------------- |
| 15363 |
Version 3.11.4 (rgerhards), 2008-02-21 |
| 15364 |
- bugfix: debug.html was missing from release tarball - thanks to Michael |
| 15365 |
Biebl for bringing this to my attention |
| 15366 |
- some internal cleanup on the stringbuf object calling interface |
| 15367 |
- general code cleanup and further modularization |
| 15368 |
- $MainMessageQueueDiscardSeverity can now also handle textual severities |
| 15369 |
(previously only integers) |
| 15370 |
- bugfix: message object was not properly synchronized when the |
| 15371 |
main queue had a single thread and non-direct action queues were used |
| 15372 |
- some documentation improvements |
| 15373 |
--------------------------------------------------------------------------- |
| 15374 |
Version 3.11.3 (rgerhards), 2008-02-18 |
| 15375 |
- fixed a bug in imklog which lead to duplicate message content in |
| 15376 |
kernel logs |
| 15377 |
- added support for better plugin handling in libdbi (we contributed |
| 15378 |
a patch to do that, we just now need to wait for the next libdbi |
| 15379 |
version) |
| 15380 |
- bugfix: fixed abort when invalid template was provided to an action |
| 15381 |
bug http://bugzilla.adiscon.com/show_bug.cgi?id=4 |
| 15382 |
- re-instantiated SIGUSR1 function; added SIGUSR2 to generate debug |
| 15383 |
status output |
| 15384 |
- added some documentation on runtime-debug settings |
| 15385 |
- slightly improved man pages for novice users |
| 15386 |
--------------------------------------------------------------------------- |
| 15387 |
Version 3.11.2 (rgerhards), 2008-02-15 |
| 15388 |
- added the capability to monitor text files and process their content |
| 15389 |
as syslog messages (including forwarding) |
| 15390 |
- added support for libdbi, a database abstraction layer. rsyslog now |
| 15391 |
also supports the following databases via dbi drivers: |
| 15392 |
* Firebird/Interbase |
| 15393 |
* FreeTDS (access to MS SQL Server and Sybase) |
| 15394 |
* SQLite/SQLite3 |
| 15395 |
* Ingres (experimental) |
| 15396 |
* mSQL (experimental) |
| 15397 |
* Oracle (experimental) |
| 15398 |
Additional drivers may be provided by the libdbi-drivers project, which |
| 15399 |
can be used by rsyslog as soon as they become available. |
| 15400 |
- removed some left-over unnecessary dbgprintf's (cluttered screen, |
| 15401 |
cosmetic) |
| 15402 |
- doc bugfix: html documentation for omsnmp was missing |
| 15403 |
--------------------------------------------------------------------------- |
| 15404 |
Version 3.11.1 (rgerhards), 2008-02-12 |
| 15405 |
- SNMP trap sender added thanks to Andre Lorbach (omsnmp) |
| 15406 |
- added input-plugin interface specification in form of a (copy) template |
| 15407 |
input module |
| 15408 |
- applied documentation fix by Michael Biebl -- many thanks! |
| 15409 |
- bugfix: immark did not have MARK flags set... |
| 15410 |
- added x-info field to rsyslogd startup/shutdown message. Hopefully |
| 15411 |
points users to right location for further info (many don't even know |
| 15412 |
they run rsyslog ;)) |
| 15413 |
- bugfix: trailing ":" of tag was lost while parsing legacy syslog messages |
| 15414 |
without timestamp - thanks to Anders Blomdell for providing a patch! |
| 15415 |
- fixed a bug in stringbuf.c related to STRINGBUF_TRIM_ALLOCSIZE, which |
| 15416 |
wasn't supposed to be used with rsyslog. Put a warning message up that |
| 15417 |
tells this feature is not tested and probably not worth the effort. |
| 15418 |
Thanks to Anders Blomdell fro bringing this to our attention |
| 15419 |
- somewhat improved performance of string buffers |
| 15420 |
- fixed bug that caused invalid treatment of tabs (HT) in rsyslog.conf |
| 15421 |
- bugfix: setting for $EscapeControlCharactersOnReceive was not |
| 15422 |
properly initialized |
| 15423 |
- clarified usage of space-cc property replacer option |
| 15424 |
- improved abort diagnostic handler |
| 15425 |
- some initial effort for malloc/free runtime debugging support |
| 15426 |
- bugfix: using dynafile actions caused rsyslogd abort |
| 15427 |
- fixed minor man errors thanks to Michael Biebl |
| 15428 |
--------------------------------------------------------------------------- |
| 15429 |
Version 3.11.0 (rgerhards), 2008-01-31 |
| 15430 |
- implemented queued actions |
| 15431 |
- implemented simple rate limiting for actions |
| 15432 |
- implemented deliberate discarding of lower priority messages over higher |
| 15433 |
priority ones when a queue runs out of space |
| 15434 |
- implemented disk quotas for disk queues |
| 15435 |
- implemented the $ActionResumeRetryCount config directive |
| 15436 |
- added $ActionQueueFilename config directive |
| 15437 |
- added $ActionQueueSize config directive |
| 15438 |
- added $ActionQueueHighWaterMark config directive |
| 15439 |
- added $ActionQueueLowWaterMark config directive |
| 15440 |
- added $ActionQueueDiscardMark config directive |
| 15441 |
- added $ActionQueueDiscardSeverity config directive |
| 15442 |
- added $ActionQueueCheckpointInterval config directive |
| 15443 |
- added $ActionQueueType config directive |
| 15444 |
- added $ActionQueueWorkerThreads config directive |
| 15445 |
- added $ActionQueueTimeoutshutdown config directive |
| 15446 |
- added $ActionQueueTimeoutActionCompletion config directive |
| 15447 |
- added $ActionQueueTimeoutenQueue config directive |
| 15448 |
- added $ActionQueueTimeoutworkerThreadShutdown config directive |
| 15449 |
- added $ActionQueueWorkerThreadMinimumMessages config directive |
| 15450 |
- added $ActionQueueMaxFileSize config directive |
| 15451 |
- added $ActionQueueSaveonShutdown config directive |
| 15452 |
- addded $ActionQueueDequeueSlowdown config directive |
| 15453 |
- addded $MainMsgQueueDequeueSlowdown config directive |
| 15454 |
- bugfix: added forgotten docs to package |
| 15455 |
- improved debugging support |
| 15456 |
- fixed a bug that caused $MainMsgQueueCheckpointInterval to work incorrectly |
| 15457 |
- when a long-running action needs to be cancelled on shutdown, the message |
| 15458 |
that was processed by it is now preserved. This finishes support for |
| 15459 |
guaranteed delivery of messages (if the output supports it, of course) |
| 15460 |
- fixed bug in output module interface, see |
| 15461 |
http://sourceforge.net/tracker/index.php?func=detail&aid=1881008&group_id=123448&atid=696552 |
| 15462 |
- changed the ommysql output plugin so that the (lengthy) connection |
| 15463 |
initialization now takes place in message processing. This works much |
| 15464 |
better with the new queued action mode (fast startup) |
| 15465 |
- fixed a bug that caused a potential hang in file and fwd output module |
| 15466 |
varmojfekoj provided the patch - many thanks! |
| 15467 |
- bugfixed stream class offset handling on 32bit platforms |
| 15468 |
--------------------------------------------------------------------------- |
| 15469 |
Version 3.10.3 (rgerhards), 2008-01-28 |
| 15470 |
- fixed a bug with standard template definitions (not a big deal) - thanks |
| 15471 |
to varmojfekoj for spotting it |
| 15472 |
- run-time instrumentation added |
| 15473 |
- implemented disk-assisted queue mode, which enables on-demand disk |
| 15474 |
spooling if the queue's in-memory queue is exhausted |
| 15475 |
- implemented a dynamic worker thread pool for processing incoming |
| 15476 |
messages; workers are started and shut down as need arises |
| 15477 |
- implemented a run-time instrumentation debug package |
| 15478 |
- implemented the $MainMsgQueueSaveOnShutdown config directive |
| 15479 |
- implemented the $MainMsgQueueWorkerThreadMinimumMessages config directive |
| 15480 |
- implemented the $MainMsgQueueTimeoutWorkerThreadShutdown config directive |
| 15481 |
--------------------------------------------------------------------------- |
| 15482 |
Version 3.10.2 (rgerhards), 2008-01-14 |
| 15483 |
- added the ability to keep stop rsyslogd without the need to drain |
| 15484 |
the main message queue. In disk queue mode, rsyslog continues to |
| 15485 |
run from the point where it stopped. In case of a system failure, it |
| 15486 |
continues to process messages from the last checkpoint. |
| 15487 |
- fixed a bug that caused a segfault on startup when no $WorkDir directive |
| 15488 |
was specified in rsyslog.conf |
| 15489 |
- provided more fine-grain control over shutdown timeouts and added a |
| 15490 |
way to specify the enqueue timeout when the main message queue is full |
| 15491 |
- implemented $MainMsgQueueCheckpointInterval config directive |
| 15492 |
- implemented $MainMsgQueueTimeoutActionCompletion config directive |
| 15493 |
- implemented $MainMsgQueueTimeoutEnqueue config directive |
| 15494 |
- implemented $MainMsgQueueTimeoutShutdown config directive |
| 15495 |
--------------------------------------------------------------------------- |
| 15496 |
Version 3.10.1 (rgerhards), 2008-01-10 |
| 15497 |
- implemented the "disk" queue mode. However, it currently is of very |
| 15498 |
limited use, because it does not support persistence over rsyslogd |
| 15499 |
runs. So when rsyslogd is stopped, the queue is drained just as with |
| 15500 |
the in-memory queue modes. Persistent queues will be a feature of |
| 15501 |
the next release. |
| 15502 |
- performance-optimized string class, should bring an overall improvement |
| 15503 |
- fixed a memory leak in imudp -- thanks to varmojfekoj for the patch |
| 15504 |
- fixed a race condition that could lead to a rsyslogd hang when during |
| 15505 |
HUP or termination |
| 15506 |
- done some doc updates |
| 15507 |
- added $WorkDirectory config directive |
| 15508 |
- added $MainMsgQueueFileName config directive |
| 15509 |
- added $MainMsgQueueMaxFileSize config directive |
| 15510 |
--------------------------------------------------------------------------- |
| 15511 |
Version 3.10.0 (rgerhards), 2008-01-07 |
| 15512 |
- implemented input module interface and initial input modules |
| 15513 |
- enhanced threading for input modules (each on its own thread now) |
| 15514 |
- ability to bind UDP listeners to specific local interfaces/ports and |
| 15515 |
ability to run multiple of them concurrently |
| 15516 |
- added ability to specify listen IP address for UDP syslog server |
| 15517 |
- license changed to GPLv3 |
| 15518 |
- mark messages are now provided by loadble module immark |
| 15519 |
- rklogd is no longer provided. Its functionality has now been taken over |
| 15520 |
by imklog, a loadable input module. This offers a much better integration |
| 15521 |
into rsyslogd and makes sure that the kernel logger process is brought |
| 15522 |
up and down at the appropriate times |
| 15523 |
- enhanced $IncludeConfig directive to support wildcard characters |
| 15524 |
(thanks to Michael Biebl) |
| 15525 |
- all inputs are now implemented as loadable plugins |
| 15526 |
- enhanced threading model: each input module now runs on its own thread |
| 15527 |
- enhanced message queue which now supports different queueing methods |
| 15528 |
(among others, this can be used for performance fine-tuning) |
| 15529 |
- added a large number of new configuration directives for the new |
| 15530 |
input modules |
| 15531 |
- enhanced multi-threading utilizing a worker thread pool for the |
| 15532 |
main message queue |
| 15533 |
- compilation without pthreads is no longer supported |
| 15534 |
- much cleaner code due to new objects and removal of single-threading |
| 15535 |
mode |
| 15536 |
--------------------------------------------------------------------------- |
| 15537 |
Version 2.0.8 V2-STABLE (rgerhards), 2008-??-?? |
| 15538 |
- bugfix: ompgsql did not detect problems in sql command execution |
| 15539 |
this could cause loss of messages. The handling was correct if the |
| 15540 |
connection broke, but not if there was a problem with statement |
| 15541 |
execution. The most probable case for such a case would be invalid |
| 15542 |
sql inside the template, and this is now much easier to diagnose. |
| 15543 |
- doc bugfix: default for $DirCreateMode incorrectly stated |
| 15544 |
--------------------------------------------------------------------------- |
| 15545 |
Version 2.0.7 V2-STABLE (rgerhards), 2008-04-14 |
| 15546 |
- bugfix: the default for $DirCreateMode was 0644, and as such wrong. |
| 15547 |
It has now been changed to 0700. For some background, please see |
| 15548 |
http://lists.adiscon.net/pipermail/rsyslog/2009-April/001986.html |
| 15549 |
- bugfix: "$CreateDirs off" also disabled file creation |
| 15550 |
Thanks to William Tisater for analyzing this bug and providing a patch. |
| 15551 |
The actual code change is heavily based on William's patch. |
| 15552 |
- bugfix: memory leak in ompgsql |
| 15553 |
Thanks to Ken for providing the patch |
| 15554 |
- bugfix: potential memory leak in msg.c |
| 15555 |
This one did not surface yet and the issue was actually found due to |
| 15556 |
a problem in v4 - but better fix it here, too |
| 15557 |
--------------------------------------------------------------------------- |
| 15558 |
Version 2.0.6 V2-STABLE (rgerhards), 2008-08-07 |
| 15559 |
- bugfix: memory leaks in rsyslogd, primarily in singlethread mode |
| 15560 |
Thanks to Frederico Nunez for providing the fix |
| 15561 |
- bugfix: copy&paste error lead to dangling if - this caused a very minor |
| 15562 |
issue with re-formatting a RFC3164 date when the message was invalidly |
| 15563 |
formatted and had a colon immediately after the date. This was in the |
| 15564 |
code for some years (even v1 had it) and I think it never had any |
| 15565 |
effect at all in practice. Though, it should be fixed - but definitely |
| 15566 |
nothing to worry about. |
| 15567 |
--------------------------------------------------------------------------- |
| 15568 |
Version 2.0.6 V2-STABLE (rgerhards), 2008-08-07 |
| 15569 |
- bugfix: IPv6 addresses could not be specified in forwarding actions |
| 15570 |
New syntax @[addr]:port introduced to enable that. Root problem was IPv6 |
| 15571 |
addresses contain colons. (backport from 3.21.3) |
| 15572 |
--------------------------------------------------------------------------- |
| 15573 |
Version 2.0.5 STABLE (rgerhards), 2008-05-15 |
| 15574 |
- bugfix: regular expressions inside property replacer did not work |
| 15575 |
properly |
| 15576 |
- adapted to liblogging 0.7.1+ |
| 15577 |
--------------------------------------------------------------------------- |
| 15578 |
Version 2.0.4 STABLE (rgerhards), 2008-03-27 |
| 15579 |
- bugfix: internally generated messages had "FROMHOST" property not set |
| 15580 |
- bugfix: continue parsing if tag is oversize (discard oversize part) - thanks |
| 15581 |
to [email protected] for the patch |
| 15582 |
- added $HHOUR and $QHOUR system properties - can be used for half- and |
| 15583 |
quarter-hour logfile rotation |
| 15584 |
--------------------------------------------------------------------------- |
| 15585 |
Version 2.0.3 STABLE (rgerhards), 2008-03-12 |
| 15586 |
- bugfix: setting for $EscapeControlCharactersOnReceive was not |
| 15587 |
properly initialized |
| 15588 |
- bugfix: resolved potential segfault condition on HUP (extremely |
| 15589 |
unlikely to happen in practice), for details see tracker: |
| 15590 |
http://bugzilla.adiscon.com/show_bug.cgi?id=38 |
| 15591 |
- improved the man pages a bit - thanks to Michael Biebl for the patch |
| 15592 |
- bugfix: not properly initialized data could cause several segfaults if |
| 15593 |
there were errors in the config file - thanks to varmojfekoj for the patch |
| 15594 |
--------------------------------------------------------------------------- |
| 15595 |
Version 2.0.2 STABLE (rgerhards), 2008-02-12 |
| 15596 |
- fixed a bug that could cause invalid string handling via strerror_r |
| 15597 |
varmojfekoj provided the patch - many thanks! |
| 15598 |
- added x-info field to rsyslogd startup/shutdown message. Hopefully |
| 15599 |
points users to right location for further info (many don't even know |
| 15600 |
they run rsyslog ;)) |
| 15601 |
- bugfix: suspended actions were not always properly resumed |
| 15602 |
varmojfekoj provided the patch - many thanks! |
| 15603 |
- bugfix: errno could be changed during mark processing, leading to |
| 15604 |
invalid error messages when processing inputs. Thank to varmojfekoj for |
| 15605 |
pointing out this problem. |
| 15606 |
- bugfix: trailing ":" of tag was lost while parsing legacy syslog messages |
| 15607 |
without timestamp - thanks to Anders Blomdell for providing a patch! |
| 15608 |
- bugfix (doc): misspelled config directive, invalid signal info |
| 15609 |
- applied some doc fixes from Michel Biebl and cleaned up some no longer |
| 15610 |
needed files suggested by him |
| 15611 |
- cleaned up stringbuf.c to fix an annoyance reported by Anders Blomdell |
| 15612 |
- fixed bug that caused invalid treatment of tabs (HT) in rsyslog.conf |
| 15613 |
--------------------------------------------------------------------------- |
| 15614 |
Version 2.0.1 STABLE (rgerhards), 2008-01-24 |
| 15615 |
- fixed a bug in integer conversion - but this function was never called, |
| 15616 |
so it is not really a useful bug fix ;) |
| 15617 |
- fixed a bug with standard template definitions (not a big deal) - thanks |
| 15618 |
to varmojfekoj for spotting it |
| 15619 |
- fixed a bug that caused a potential hang in file and fwd output module |
| 15620 |
varmojfekoj provided the patch - many thanks! |
| 15621 |
--------------------------------------------------------------------------- |
| 15622 |
Version 2.0.0 STABLE (rgerhards), 2008-01-02 |
| 15623 |
- re-release of 1.21.2 as STABLE with no modifications except some |
| 15624 |
doc updates |
| 15625 |
--------------------------------------------------------------------------- |
| 15626 |
Version 1.21.2 (rgerhards), 2007-12-28 |
| 15627 |
- created a gss-api output module. This keeps GSS-API code and |
| 15628 |
TCP/UDP code separated. It is also important for forward- |
| 15629 |
compatibility with v3. Please note that this change breaks compatibility |
| 15630 |
with config files created for 1.21.0 and 1.21.1 - this was considered |
| 15631 |
acceptable. |
| 15632 |
- fixed an error in forwarding retry code (could lead to message corruption |
| 15633 |
but surfaced very seldom) |
| 15634 |
- increased portability for older platforms (AI_NUMERICSERV moved) |
| 15635 |
- removed socket leak in omfwd.c |
| 15636 |
- cross-platform patch for GSS-API compile problem on some platforms |
| 15637 |
thanks to darix for the patch! |
| 15638 |
--------------------------------------------------------------------------- |
| 15639 |
Version 1.21.1 (rgerhards), 2007-12-23 |
| 15640 |
- small doc fix for $IncludeConfig |
| 15641 |
- fixed a bug in llDestroy() |
| 15642 |
- bugfix: fixing memory leak when message queue is full and during |
| 15643 |
parsing. Thanks to varmojfekoj for the patch. |
| 15644 |
- bugfix: when compiled without network support, unix sockets were |
| 15645 |
not properly closed |
| 15646 |
- bugfix: memory leak in cfsysline.c/doGetWord() fixed |
| 15647 |
--------------------------------------------------------------------------- |
| 15648 |
Version 1.21.0 (rgerhards), 2007-12-19 |
| 15649 |
- GSS-API support for syslog/TCP connections was added. Thanks to |
| 15650 |
varmojfekoj for providing the patch with this functionality |
| 15651 |
- code cleanup |
| 15652 |
- enhanced $IncludeConfig directive to support wildcard filenames |
| 15653 |
- changed some multithreading synchronization |
| 15654 |
--------------------------------------------------------------------------- |
| 15655 |
Version 1.20.1 (rgerhards), 2007-12-12 |
| 15656 |
- corrected a debug setting that survived release. Caused TCP connections |
| 15657 |
to be retried unnecessarily often. |
| 15658 |
- When a hostname ACL was provided and DNS resolution for that name failed, |
| 15659 |
ACL processing was stopped at that point. Thanks to mildew for the patch. |
| 15660 |
Fedora Bugzilla: http://bugzilla.redhat.com/show_bug.cgi?id=395911 |
| 15661 |
- fixed a potential race condition, see link for details: |
| 15662 |
http://rgerhards.blogspot.com/2007/12/rsyslog-race-condition.html |
| 15663 |
Note that the probability of problems from this bug was very remote |
| 15664 |
- fixed a memory leak that happened when PostgreSQL date formats were |
| 15665 |
used |
| 15666 |
--------------------------------------------------------------------------- |
| 15667 |
Version 1.20.0 (rgerhards), 2007-12-07 |
| 15668 |
- an output module for postgres databases has been added. Thanks to |
| 15669 |
sur5r for contributing this code |
| 15670 |
- unloading dynamic modules has been cleaned up, we now have a |
| 15671 |
real implementation and not just a dummy "good enough for the time |
| 15672 |
being". |
| 15673 |
- enhanced platform independence - thanks to Bartosz Kuzma and Michael |
| 15674 |
Biebl for their very useful contributions |
| 15675 |
- some general code cleanup (including warnings on 64 platforms, only) |
| 15676 |
--------------------------------------------------------------------------- |
| 15677 |
Version 1.19.12 (rgerhards), 2007-12-03 |
| 15678 |
- cleaned up the build system (thanks to Michael Biebl for the patch) |
| 15679 |
- fixed a bug where ommysql was still not compiled with -pthread option |
| 15680 |
--------------------------------------------------------------------------- |
| 15681 |
Version 1.19.11 (rgerhards), 2007-11-29 |
| 15682 |
- applied -pthread option to build when building for multi-threading mode |
| 15683 |
hopefully solves an issue with segfaulting |
| 15684 |
--------------------------------------------------------------------------- |
| 15685 |
Version 1.19.10 (rgerhards), 2007-10-19 |
| 15686 |
- introduced the new ":modulename:" syntax for calling module actions |
| 15687 |
in selector lines; modified ommysql to support it. This is primarily |
| 15688 |
an aid for further modules and a prerequisite to actually allow third |
| 15689 |
party modules to be created. |
| 15690 |
- minor fix in slackware startup script, "-r 0" is now "-r0" |
| 15691 |
- updated rsyslogd doc set man page; now in html format |
| 15692 |
- undid creation of a separate thread for the main loop -- this did not |
| 15693 |
turn out to be needed or useful, so reduce complexity once again. |
| 15694 |
- added doc fixes provided by Michael Biebl - thanks |
| 15695 |
--------------------------------------------------------------------------- |
| 15696 |
Version 1.19.9 (rgerhards), 2007-10-12 |
| 15697 |
- now packaging system which again contains all components in a single |
| 15698 |
tarball |
| 15699 |
- modularized main() a bit more, resulting in less complex code |
| 15700 |
- experimentally added an additional thread - will see if that affects |
| 15701 |
the segfault bug we experience on some platforms. Note that this change |
| 15702 |
is scheduled to be removed again later. |
| 15703 |
--------------------------------------------------------------------------- |
| 15704 |
Version 1.19.8 (rgerhards), 2007-09-27 |
| 15705 |
- improved repeated message processing |
| 15706 |
- applied patch provided by varmojfekoj to support building ommysql |
| 15707 |
in its own way (now also resides in a plugin subdirectory); |
| 15708 |
ommysql is now a separate package |
| 15709 |
- fixed a bug in cvthname() that lead to message loss if part |
| 15710 |
of the source hostname would have been dropped |
| 15711 |
- created some support for distributing ommysql together with the |
| 15712 |
main rsyslog package. I need to re-think it in the future, but |
| 15713 |
for the time being the current mode is best. I now simply include |
| 15714 |
one additional tarball for ommysql inside the main distribution. |
| 15715 |
I look forward to user feedback on how this should be done best. In the |
| 15716 |
long term, a separate project should be spawend for ommysql, but I'd |
| 15717 |
like to do that only after the plugin interface is fully stable (what |
| 15718 |
it is not yet). |
| 15719 |
--------------------------------------------------------------------------- |
| 15720 |
Version 1.19.7 (rgerhards), 2007-09-25 |
| 15721 |
- added code to handle situations where senders send us messages ending with |
| 15722 |
a NUL character. It is now simply removed. This also caused trailing LF |
| 15723 |
reduction to fail, when it was followed by such a NUL. This is now also |
| 15724 |
handled. |
| 15725 |
- replaced some non-thread-safe function calls by their thread-safe |
| 15726 |
counterparts |
| 15727 |
- fixed a minor memory leak that occurred when the %APPNAME% property was |
| 15728 |
used (I think nobody used that in practice) |
| 15729 |
- fixed a bug that caused signal handlers in cvthname() not to be restored when |
| 15730 |
a malicious pointer record was detected and processing of the message been |
| 15731 |
stopped for that reason (this should be really rare and can not be related |
| 15732 |
to the segfault bug we are hunting). |
| 15733 |
- fixed a bug in cvthname that lead to passing a wrong parameter - in |
| 15734 |
practice, this had no impact. |
| 15735 |
- general code cleanup (e.g. compiler warnings, comments) |
| 15736 |
--------------------------------------------------------------------------- |
| 15737 |
Version 1.19.6 (rgerhards), 2007-09-11 |
| 15738 |
- applied patch by varmojfekoj to change signal handling to the new |
| 15739 |
sigaction API set (replacing the depreciated signal() calls and its |
| 15740 |
friends. |
| 15741 |
- fixed a bug that in --enable-debug mode caused an assertion when the |
| 15742 |
discard action was used |
| 15743 |
- cleaned up compiler warnings |
| 15744 |
- applied patch by varmojfekoj to FIX a bug that could cause |
| 15745 |
segfaults if empty properties were processed using modifying |
| 15746 |
options (e.g. space-cc, drop-cc) |
| 15747 |
- fixed man bug: rsyslogd supports -l option |
| 15748 |
--------------------------------------------------------------------------- |
| 15749 |
Version 1.19.5 (rgerhards), 2007-09-07 |
| 15750 |
- changed part of the CStr interface so that better error tracking |
| 15751 |
is provided and the calling sequence is more intuitive (there were |
| 15752 |
invalid calls based on a too-weird interface) |
| 15753 |
- (hopefully) fixed some remaining bugs rooted in wrong use of |
| 15754 |
the CStr class. These could lead to program abort. |
| 15755 |
- applied patch by varmojfekoj two fix two potential segfault situations |
| 15756 |
- added $ModDir config directive |
| 15757 |
- modified $ModLoad so that an absolute path may be specified as |
| 15758 |
module name (e.g. /rsyslog/ommysql.so) |
| 15759 |
--------------------------------------------------------------------------- |
| 15760 |
Version 1.19.4 (rgerhards/varmojfekoj), 2007-09-04 |
| 15761 |
- fixed a number of small memory leaks - thanks varmojfekoj for patching |
| 15762 |
- fixed an issue with CString class that could lead to rsyslog abort |
| 15763 |
in tplToString() - thanks varmojfekoj for patching |
| 15764 |
- added a man-version of the config file documentation - thanks to Michel |
| 15765 |
Samia for providing the man file |
| 15766 |
- fixed bug: a template like this causes an infinite loop: |
| 15767 |
$template opts,"%programname:::a,b%" |
| 15768 |
thanks varmojfekoj for the patch |
| 15769 |
- fixed bug: case changing options crash freeing the string pointer |
| 15770 |
because they modify it: $template opts2,"%programname::1:lowercase%" |
| 15771 |
thanks varmojfekoj for the patch |
| 15772 |
--------------------------------------------------------------------------- |
| 15773 |
Version 1.19.3 (mmeckelein/varmojfekoj), 2007-08-31 |
| 15774 |
- small mem leak fixed (after calling parseSelectorAct) - Thx varmojfekoj |
| 15775 |
- documentation section "Regular File" und "Blocks" updated |
| 15776 |
- solved an issue with dynamic file generation - Once again many thanks |
| 15777 |
to varmojfekoj |
| 15778 |
- the negative selector for program name filter (Blocks) does not work as |
| 15779 |
expected - Thanks varmojfekoj for patching |
| 15780 |
- added forwarding information to sysklogd (requires special template) |
| 15781 |
to config doc |
| 15782 |
--------------------------------------------------------------------------- |
| 15783 |
Version 1.19.2 (mmeckelein/varmojfekoj), 2007-08-28 |
| 15784 |
- a specifically formed message caused a segfault - Many thanks varmojfekoj |
| 15785 |
for providing a patch |
| 15786 |
- a typo and a weird condition are fixed in msg.c - Thanks again |
| 15787 |
varmojfekoj |
| 15788 |
- on file creation the file was always owned by root:root. This is fixed |
| 15789 |
now - Thanks ypsa for solving this issue |
| 15790 |
--------------------------------------------------------------------------- |
| 15791 |
Version 1.19.1 (mmeckelein), 2007-08-22 |
| 15792 |
- a bug that caused a high load when a TCP/UDP connection was closed is |
| 15793 |
fixed now - Thanks mildew for solving this issue |
| 15794 |
- fixed a bug which caused a segfault on reinit - Thx varmojfekoj for the |
| 15795 |
patch |
| 15796 |
- changed the hardcoded module path "/lib/rsyslog" to $(pkglibdir) in order |
| 15797 |
to avoid trouble e.g. on 64 bit platforms (/lib64) - many thanks Peter |
| 15798 |
Vrabec and darix, both provided a patch for solving this issue |
| 15799 |
- enhanced the unloading of modules - thanks again varmojfekoj |
| 15800 |
- applied a patch from varmojfekoj which fixes various little things in |
| 15801 |
MySQL output module |
| 15802 |
--------------------------------------------------------------------------- |
| 15803 |
Version 1.19.0 (varmojfekoj/rgerhards), 2007-08-16 |
| 15804 |
- integrated patch from varmojfekoj to make the mysql module a loadable one |
| 15805 |
many thanks for the patch, MUCH appreciated |
| 15806 |
--------------------------------------------------------------------------- |
| 15807 |
Version 1.18.2 (rgerhards), 2007-08-13 |
| 15808 |
- fixed a bug in outchannel code that caused templates to be incorrectly |
| 15809 |
parsed |
| 15810 |
- fixed a bug in ommysql that caused a wrong ";template" missing message |
| 15811 |
- added some code for unloading modules; not yet fully complete (and we do |
| 15812 |
not yet have loadable modules, so this is no problem) |
| 15813 |
- removed debian subdirectory by request of a debian packager (this is a special |
| 15814 |
subdir for debian and there is also no point in maintaining it when there |
| 15815 |
is a debian package available - so I gladly did this) in some cases |
| 15816 |
- improved overall doc quality (some pages were quite old) and linked to |
| 15817 |
more of the online resources. |
| 15818 |
- improved /contrib/delete_mysql script by adding a host option and some |
| 15819 |
other minor modifications |
| 15820 |
--------------------------------------------------------------------------- |
| 15821 |
Version 1.18.1 (rgerhards), 2007-08-08 |
| 15822 |
- applied a patch from varmojfekoj which solved a potential segfault |
| 15823 |
of rsyslogd on HUP |
| 15824 |
- applied patch from Michel Samia to fix compilation when the pthreads |
| 15825 |
feature is disabled |
| 15826 |
- some code cleanup (moved action object to its own file set) |
| 15827 |
- add config directive $MainMsgQueueSize, which now allows one to configure the |
| 15828 |
queue size dynamically |
| 15829 |
- all compile-time settings are now shown in rsyslogd -v, not just the |
| 15830 |
active ones |
| 15831 |
- enhanced performance a little bit more |
| 15832 |
- added config file directive $ActionResumeInterval |
| 15833 |
- fixed a bug that prevented compilation under debian sid |
| 15834 |
- added a contrib directory for user-contributed useful things |
| 15835 |
--------------------------------------------------------------------------- |
| 15836 |
Version 1.18.0 (rgerhards), 2007-08-03 |
| 15837 |
- rsyslog now supports fallback actions when an action did not work. This |
| 15838 |
is a great feature e.g. for backup database servers or backup syslog |
| 15839 |
servers |
| 15840 |
- modified rklogd to only change the console log level if -c is specified |
| 15841 |
- added feature to use multiple actions inside a single selector |
| 15842 |
- implemented $ActionExecOnlyWhenPreviousIsSuspended config directive |
| 15843 |
- error messages during startup are now spit out to the configured log |
| 15844 |
destinations |
| 15845 |
--------------------------------------------------------------------------- |
| 15846 |
Version 1.17.6 (rgerhards), 2007-08-01 |
| 15847 |
- continued to work on output module modularization - basic stage of |
| 15848 |
this work is now FINISHED |
| 15849 |
- fixed bug in OMSRcreate() - always returned SR_RET_OK |
| 15850 |
- fixed a bug that caused ommysql to always complain about missing |
| 15851 |
templates |
| 15852 |
- fixed a mem leak in OMSRdestruct - freeing the object itself was |
| 15853 |
forgotten - thanks to varmojfekoj for the patch |
| 15854 |
- fixed a memory leak in syslogd/init() that happened when the config |
| 15855 |
file could not be read - thanks to varmojfekoj for the patch |
| 15856 |
- fixed insufficient memory allocation in addAction() and its helpers. |
| 15857 |
The initial fix and idea was developed by mildew, I fine-tuned |
| 15858 |
it a bit. Thanks a lot for the fix, I'd probably had pulled out my |
| 15859 |
hair to find the bug... |
| 15860 |
- added output of config file line number when a parsing error occurred |
| 15861 |
- fixed bug in objomsr.c that caused program to abort in debug mode with |
| 15862 |
an invalid assertion (in some cases) |
| 15863 |
- fixed a typo that caused the default template for MySQL to be wrong. |
| 15864 |
thanks to mildew for catching this. |
| 15865 |
- added configuration file command $DebugPrintModuleList and |
| 15866 |
$DebugPrintCfSysLineHandlerList |
| 15867 |
- fixed an invalid value for the MARK timer - unfortunately, there was |
| 15868 |
a testing aid left in place. This resulted in quite frequent MARK messages |
| 15869 |
- added $IncludeConfig config directive |
| 15870 |
- applied a patch from mildew to prevent rsyslogd from freezing under heavy |
| 15871 |
load. This could happen when the queue was full. Now, we drop messages |
| 15872 |
but rsyslogd remains active. |
| 15873 |
--------------------------------------------------------------------------- |
| 15874 |
Version 1.17.5 (rgerhards), 2007-07-30 |
| 15875 |
- continued to work on output module modularization |
| 15876 |
- fixed a missing file bug - thanks to Andrea Montanari for reporting |
| 15877 |
this problem |
| 15878 |
- fixed a problem with shutting down the worker thread and freeing the |
| 15879 |
selector_t list - this caused messages to be lost, because the |
| 15880 |
message queue was not properly drained before the selectors got |
| 15881 |
destroyed. |
| 15882 |
--------------------------------------------------------------------------- |
| 15883 |
Version 1.17.4 (rgerhards), 2007-07-27 |
| 15884 |
- continued to work on output module modularization |
| 15885 |
- fixed a situation where rsyslogd could create zombie processes |
| 15886 |
thanks to mildew for the patch |
| 15887 |
- applied patch from Michel Samia to fix compilation when NOT |
| 15888 |
compiled for pthreads |
| 15889 |
--------------------------------------------------------------------------- |
| 15890 |
Version 1.17.3 (rgerhards), 2007-07-25 |
| 15891 |
- continued working on output module modularization |
| 15892 |
- fixed a bug that caused rsyslogd to segfault on exit (and |
| 15893 |
probably also on HUP), when there was an unsent message in a selector |
| 15894 |
that required forwarding and the dns lookup failed for that selector |
| 15895 |
(yes, it was pretty unlikely to happen;)) |
| 15896 |
thanks to varmojfekoj <[email protected]> for the patch |
| 15897 |
- fixed a memory leak in config file parsing and die() |
| 15898 |
thanks to varmojfekoj <[email protected]> for the patch |
| 15899 |
- rsyslogd now checks on startup if it is capable to perform any work |
| 15900 |
at all. If it cant, it complains and terminates |
| 15901 |
thanks to Michel Samia for providing the patch! |
| 15902 |
- fixed a small memory leak when HUPing syslogd. The allowed sender |
| 15903 |
list now gets freed. thanks to mildew for the patch. |
| 15904 |
- changed the way error messages in early startup are logged. They |
| 15905 |
now do no longer use the syslogd code directly but are rather |
| 15906 |
send to stderr. |
| 15907 |
--------------------------------------------------------------------------- |
| 15908 |
Version 1.17.2 (rgerhards), 2007-07-23 |
| 15909 |
- made the port part of the -r option optional. Needed for backward |
| 15910 |
compatibility with sysklogd |
| 15911 |
- replaced system() calls with something more reasonable. Please note that |
| 15912 |
this might break compatibility with some existing configuration files. |
| 15913 |
We accept this in favor of the gained security. |
| 15914 |
- removed a memory leak that could occur if timegenerated was used in |
| 15915 |
RFC 3164 format in templates |
| 15916 |
- did some preparation in msg.c for advanced multithreading - placed the |
| 15917 |
hooks, but not yet any active code |
| 15918 |
- worked further on modularization |
| 15919 |
- added $ModLoad MySQL (dummy) config directive |
| 15920 |
- added DropTrailingLFOnReception config directive |
| 15921 |
--------------------------------------------------------------------------- |
| 15922 |
Version 1.17.1 (rgerhards), 2007-07-20 |
| 15923 |
- fixed a bug that caused make install to install rsyslogd and rklogd under |
| 15924 |
the wrong names |
| 15925 |
- fixed bug that caused $AllowedSenders to handle IPv6 scopes incorrectly; |
| 15926 |
also fixed but that could garble $AllowedSender wildcards. Thanks to |
| 15927 |
[email protected] for the patch |
| 15928 |
- minor code cleanup - thanks to Peter Vrabec for the patch |
| 15929 |
- fixed minimal memory leak on HUP (caused by templates) |
| 15930 |
thanks to varmojfekoj <[email protected]> for the patch |
| 15931 |
- fixed another memory leak on HUPing and on exiting rsyslogd |
| 15932 |
again thanks to varmojfekoj <[email protected]> for the patch |
| 15933 |
- code cleanup (removed compiler warnings) |
| 15934 |
- fixed portability bug in configure.ac - thanks to Bartosz Kuźma for patch |
| 15935 |
- moved msg object into its own file set |
| 15936 |
- added the capability to continue trying to write log files when the |
| 15937 |
file system is full. Functionality based on patch by Martin Schulze |
| 15938 |
to sysklogd package. |
| 15939 |
--------------------------------------------------------------------------- |
| 15940 |
Version 1.17.0 (RGer), 2007-07-17 |
| 15941 |
- added $RepeatedLineReduction config parameter |
| 15942 |
- added $EscapeControlCharactersOnReceive config parameter |
| 15943 |
- added $ControlCharacterEscapePrefix config parameter |
| 15944 |
- added $DirCreateMode config parameter |
| 15945 |
- added $CreateDirs config parameter |
| 15946 |
- added $DebugPrintTemplateList config parameter |
| 15947 |
- added $ResetConfigVariables config parameter |
| 15948 |
- added $FileOwner config parameter |
| 15949 |
- added $FileGroup config parameter |
| 15950 |
- added $DirOwner config parameter |
| 15951 |
- added $DirGroup config parameter |
| 15952 |
- added $FailOnChownFailure config parameter |
| 15953 |
- added regular expression support to the filter engine |
| 15954 |
thanks to Michel Samia for providing the patch! |
| 15955 |
- enhanced $AllowedSender functionality. Credits to [email protected] for |
| 15956 |
the patch doing that |
| 15957 |
- added IPv6 support |
| 15958 |
- allowed DNS hostnames |
| 15959 |
- allowed DNS wildcard names |
| 15960 |
- added new option $DropMsgsWithMaliciousDnsPTRRecords |
| 15961 |
- added autoconf so that rfc3195d, rsyslogd and klogd are stored to /sbin |
| 15962 |
- added capability to auto-create directories with dynaFiles |
| 15963 |
--------------------------------------------------------------------------- |
| 15964 |
Version 1.16.0 (RGer/Peter Vrabec), 2007-07-13 - The Friday, 13th Release ;) |
| 15965 |
- build system switched to autotools |
| 15966 |
- removed SYSV preprocessor macro use, replaced with autotools equivalents |
| 15967 |
- fixed a bug that caused rsyslogd to segfault when TCP listening was |
| 15968 |
disabled and it terminated |
| 15969 |
- added new properties "syslogfacility-text" and "syslogseverity-text" |
| 15970 |
thanks to varmojfekoj <[email protected]> for the patch |
| 15971 |
- added the -x option to disable hostname dns resolution |
| 15972 |
thanks to varmojfekoj <[email protected]> for the patch |
| 15973 |
- begun to better modularize syslogd.c - this is an ongoing project; moved |
| 15974 |
type definitions to a separate file |
| 15975 |
- removed some now-unused fields from struct filed |
| 15976 |
- move file size limit fields in struct field to the "right spot" (the file |
| 15977 |
writing part of the union - f_un.f_file) |
| 15978 |
- subdirectories linux and solaris are no longer part of the distribution |
| 15979 |
package. This is not because we cease support for them, but there are no |
| 15980 |
longer any files in them after the move to autotools |
| 15981 |
--------------------------------------------------------------------------- |
| 15982 |
Version 1.15.1 (RGer), 2007-07-10 |
| 15983 |
- fixed a bug that caused a dynaFile selector to stall when there was |
| 15984 |
an open error with one file |
| 15985 |
- improved template processing for dynaFiles; templates are now only |
| 15986 |
looked up during initialization - speeds up processing |
| 15987 |
- optimized memory layout in struct filed when compiled with MySQL |
| 15988 |
support |
| 15989 |
- fixed a bug that caused compilation without SYSLOG_INET to fail |
| 15990 |
- re-enabled the "last message repeated n times" feature. This |
| 15991 |
feature was not taken care of while rsyslogd evolved from sysklogd |
| 15992 |
and it was more or less defunct. Now it is fully functional again. |
| 15993 |
- added system properties: $NOW, $YEAR, $MONTH, $DAY, $HOUR, $MINUTE |
| 15994 |
- fixed a bug in iovAsString() that caused a memory leak under stress |
| 15995 |
conditions (most probably memory shortage). This was unlikely to |
| 15996 |
ever happen, but it doesn't hurt doing it right |
| 15997 |
- cosmetic: defined type "uchar", change all unsigned chars to uchar |
| 15998 |
--------------------------------------------------------------------------- |
| 15999 |
Version 1.15.0 (RGer), 2007-07-05 |
| 16000 |
- added ability to dynamically generate file names based on templates |
| 16001 |
and thus properties. This was a much-requested feature. It makes |
| 16002 |
life easy when it e.g. comes to splitting files based on the sender |
| 16003 |
address. |
| 16004 |
- added $umask and $FileCreateMode config file directives |
| 16005 |
- applied a patch from Bartosz Kuzma to compile cleanly under NetBSD |
| 16006 |
- checks for extra (unexpected) characters in system config file lines |
| 16007 |
have been added |
| 16008 |
- added IPv6 documentation - was accidentally missing from CVS |
| 16009 |
- begun to change char to unsigned char |
| 16010 |
--------------------------------------------------------------------------- |
| 16011 |
Version 1.14.2 (RGer), 2007-07-03 |
| 16012 |
** this release fixes all known nits with IPv6 ** |
| 16013 |
- restored capability to do /etc/service lookup for "syslog" |
| 16014 |
service when -r 0 was given |
| 16015 |
- documented IPv6 handling of syslog messages |
| 16016 |
- integrate patch from Bartosz Kuźma to make rsyslog compile under |
| 16017 |
Solaris again (the patch replaced a strndup() call, which is not |
| 16018 |
available under Solaris |
| 16019 |
- improved debug logging when waiting on select |
| 16020 |
- updated rsyslogd man page with new options (-46A) |
| 16021 |
--------------------------------------------------------------------------- |
| 16022 |
Version 1.14.1 (RGer/Peter Vrabec), 2007-06-29 |
| 16023 |
- added Peter Vrabec's patch for IPv6 TCP |
| 16024 |
- prefixed all messages send to stderr in rsyslogd with "rsyslogd: " |
| 16025 |
--------------------------------------------------------------------------- |
| 16026 |
Version 1.14.0 (RGer/Peter Vrabec), 2007-06-28 |
| 16027 |
- Peter Vrabec provided IPv6 for rsyslog, so we are now IPv6 enabled |
| 16028 |
IPv6 Support is currently for UDP only, TCP is to come soon. |
| 16029 |
AllowedSender configuration does not yet work for IPv6. |
| 16030 |
- fixed code in iovCreate() that broke C's strict aliasing rules |
| 16031 |
- fixed some char/unsigned char differences that forced the compiler |
| 16032 |
to spit out warning messages |
| 16033 |
- updated the Red Hat init script to fix a known issue (thanks to |
| 16034 |
Peter Vrabec) |
| 16035 |
--------------------------------------------------------------------------- |
| 16036 |
Version 1.13.5 (RGer), 2007-06-22 |
| 16037 |
- made the TCP session limit configurable via command line switch |
| 16038 |
now -t <port>,<max sessions> |
| 16039 |
- added man page for rklogd(8) (basically a copy from klogd, but now |
| 16040 |
there is one...) |
| 16041 |
- fixed a bug that caused internal messages (e.g. rsyslogd startup) to |
| 16042 |
appear without a tag. |
| 16043 |
- removed a minor memory leak that occurred when TAG processing requalified |
| 16044 |
a HOSTNAME to be a TAG (and a TAG already was set). |
| 16045 |
- removed potential small memory leaks in MsgSet***() functions. There |
| 16046 |
would be a leak if a property was re-set, something that happened |
| 16047 |
extremely seldom. |
| 16048 |
--------------------------------------------------------------------------- |
| 16049 |
Version 1.13.4 (RGer), 2007-06-18 |
| 16050 |
- added a new property "PRI-text", which holds the PRI field in |
| 16051 |
textual form (e.g. "syslog.info") |
| 16052 |
- added alias "syslogseverity" for "syslogpriority", which is a |
| 16053 |
misleading property name that needs to stay for historical |
| 16054 |
reasons (and backward-compatibility) |
| 16055 |
- added doc on how to record PRI value in log file |
| 16056 |
- enhanced signal handling in klogd, including removal of an unsafe |
| 16057 |
call to the logging system during signal handling |
| 16058 |
--------------------------------------------------------------------------- |
| 16059 |
Version 1.13.3 (RGer), 2007-06-15 |
| 16060 |
- create a version of syslog.c from scratch. This is now |
| 16061 |
- highly optimized for rsyslog |
| 16062 |
- removes an incompatible license problem as the original |
| 16063 |
version had a BSD license with advertising clause |
| 16064 |
- fixed in the regard that rklogd will continue to work when |
| 16065 |
rsyslogd has been restarted (the original version, as well |
| 16066 |
as sysklogd, will remain silent then) |
| 16067 |
- solved an issue with an extra NUL char at message end that the |
| 16068 |
original version had |
| 16069 |
- applied some changes to klogd to care for the new interface |
| 16070 |
- fixed a bug in syslogd.c which prevented compiling under debian |
| 16071 |
--------------------------------------------------------------------------- |
| 16072 |
Version 1.13.2 (RGer), 2007-06-13 |
| 16073 |
- lib order in makefile patched to facilitate static linking - thanks |
| 16074 |
to Bennett Todd for providing the patch |
| 16075 |
- Integrated a patch from Peter Vrabec ([email protected]): |
| 16076 |
- added klogd under the name of rklogd (remove dependency on |
| 16077 |
original sysklogd package |
| 16078 |
- createDB.sql now in UTF |
| 16079 |
- added additional config files for use on Red Hat |
| 16080 |
--------------------------------------------------------------------------- |
| 16081 |
Version 1.13.1 (RGer), 2007-02-05 |
| 16082 |
- changed the listen backlog limit to a more reasonable value based on |
| 16083 |
the maximum number of TCP connections configured (10% + 5) - thanks to Guy |
| 16084 |
Standen for the hint (actually, the limit was 5 and that was a |
| 16085 |
left-over from early testing). |
| 16086 |
- fixed a bug in makefile which caused DB-support to be disabled when |
| 16087 |
NETZIP support was enabled |
| 16088 |
- added the -e option to allow transmission of every message to remote |
| 16089 |
hosts (effectively turns off duplicate message suppression) |
| 16090 |
- (somewhat) improved memory consumption when compiled with MySQL support |
| 16091 |
- looks like we fixed an incompatibility with MySQL 5.x and above software |
| 16092 |
At least in one case, the remote server name was destroyed, leading to |
| 16093 |
a connection failure. The new, improved code does not have this issue and |
| 16094 |
so we see this as solved (the new code is generally somewhat better, so |
| 16095 |
there is a good chance we fixed this incompatibility). |
| 16096 |
--------------------------------------------------------------------------- |
| 16097 |
Version 1.13.0 (RGer), 2006-12-19 |
| 16098 |
- added '$' as ToPos property replacer specifier - means "up to the |
| 16099 |
end of the string" |
| 16100 |
- property replacer option "escape-cc", "drop-cc" and "space-cc" added |
| 16101 |
- changed the handling of \0 characters inside syslog messages. We now |
| 16102 |
consistently escape them to "#000". This is somewhat recommended in |
| 16103 |
the draft-ietf-syslog-protocol-19 draft. While the real recommendation |
| 16104 |
is to not escape any characters at all, we can not do this without |
| 16105 |
considerable modification of the code. So we escape it to "#000", which |
| 16106 |
is consistent with a sample found in the Internet-draft. |
| 16107 |
- removed message glue logic (see printchopped() comment for details) |
| 16108 |
Also caused removal of parts table and thus some improvements in |
| 16109 |
memory usage. |
| 16110 |
- changed the default MAXLINE to 2048 to take care of recent syslog |
| 16111 |
standardization efforts (can easily be changed in syslogd.c) |
| 16112 |
- added support for byte-counted TCP syslog messages (much like |
| 16113 |
syslog-transport-tls-05 Internet Draft). This was necessary to |
| 16114 |
support compression over TCP. |
| 16115 |
- added support for receiving compressed syslog messages |
| 16116 |
- added support for sending compressed syslog messages |
| 16117 |
- fixed a bug where the last message in a syslog/tcp stream was |
| 16118 |
lost if it was not properly terminated by a LF character |
| 16119 |
--------------------------------------------------------------------------- |
| 16120 |
Version 1.12.3 (RGer), 2006-10-04 |
| 16121 |
- implemented some changes to support Solaris (but support is not |
| 16122 |
yet complete) |
| 16123 |
- commented out (via #if 0) some methods that are currently not being use |
| 16124 |
but should be kept for further us |
| 16125 |
- added (interim) -u 1 option to turn off hostname and tag parsing |
| 16126 |
- done some modifications to better support Fedora |
| 16127 |
- made the field delimiter inside property replace configurable via |
| 16128 |
template |
| 16129 |
- fixed a bug in property replacer: if fields were used, the delimitor |
| 16130 |
became part of the field. Up until now, this was barely noticeable as |
| 16131 |
the delimiter as TAB only and thus invisible to a human. With other |
| 16132 |
delimiters available now, it quickly showed up. This bug fix might cause |
| 16133 |
some grief to existing installations if they used the extra TAB for |
| 16134 |
whatever reasons - sorry folks... Anyhow, a solution is easy: just add |
| 16135 |
a TAB character constant into your template. Thus, there has no attempt |
| 16136 |
been made to do this in a backwards-compatible way. |
| 16137 |
--------------------------------------------------------------------------- |
| 16138 |
Version 1.12.2 (RGer), 2006-02-15 |
| 16139 |
- fixed a bug in the RFC 3339 date formatter. An extra space was added |
| 16140 |
after the actual timestamp |
| 16141 |
- added support for providing high-precision RFC3339 timestamps for |
| 16142 |
(rsyslogd-)internally-generated messages |
| 16143 |
- very (!) experimental support for syslog-protocol internet draft |
| 16144 |
added (the draft is experimental, the code is solid ;)) |
| 16145 |
- added support for field-extracting in the property replacer |
| 16146 |
- enhanced the legacy-syslog parser so that it can interpret messages |
| 16147 |
that do not contain a TIMESTAMP |
| 16148 |
- fixed a bug that caused the default socket (usually /dev/log) to be |
| 16149 |
opened even when -o command line option was given |
| 16150 |
- fixed a bug in the Debian sample startup script - it caused rsyslogd |
| 16151 |
to listen to remote requests, which it shouldn't by default |
| 16152 |
--------------------------------------------------------------------------- |
| 16153 |
Version 1.12.1 (RGer), 2005-11-23 |
| 16154 |
- made multithreading work with BSD. Some signal-handling needed to be |
| 16155 |
restructured. Also, there might be a slight delay of up to 10 seconds |
| 16156 |
when huping and terminating rsyslogd under BSD |
| 16157 |
- fixed a bug where a NULL-pointer was passed to printf() in logmsg(). |
| 16158 |
- fixed a bug during "make install" where rc3195d was not installed |
| 16159 |
Thanks to Bennett Todd for spotting this. |
| 16160 |
- fixed a bug where rsyslogd dumped core when no TAG was found in the |
| 16161 |
received message |
| 16162 |
- enhanced message parser so that it can deal with missing hostnames |
| 16163 |
in many cases (may not be totally fail-safe) |
| 16164 |
- fixed a bug where internally-generated messages did not have the correct |
| 16165 |
TAG |
| 16166 |
--------------------------------------------------------------------------- |
| 16167 |
Version 1.12.0 (RGer), 2005-10-26 |
| 16168 |
- moved to a multi-threaded design. single-threading is still optionally |
| 16169 |
available. Multi-threading is experimental! |
| 16170 |
- fixed a potential race condition. In the original code, marking was done |
| 16171 |
by an alarm handler, which could lead to all sorts of bad things. This |
| 16172 |
has been changed now. See comments in syslogd.c/domark() for details. |
| 16173 |
- improved debug output for property-based filters |
| 16174 |
- not a code change, but: I have checked all exit()s to make sure that |
| 16175 |
none occurs once rsyslogd has started up. Even in unusual conditions |
| 16176 |
(like low-memory conditions) rsyslogd somehow remains active. Of course, |
| 16177 |
it might loose a message or two, but at least it does not abort and it |
| 16178 |
can also recover when the condition no longer persists. |
| 16179 |
- fixed a bug that could cause loss of the last message received |
| 16180 |
immediately before rsyslogd was terminated. |
| 16181 |
- added comments on thread-safety of global variables in syslogd.c |
| 16182 |
- fixed a small bug: spurios printf() when TCP syslog was used |
| 16183 |
- fixed a bug that causes rsyslogd to dump core on termination when one |
| 16184 |
of the selector lines did not receive a message during the run (very |
| 16185 |
unlikely) |
| 16186 |
- fixed an one-too-low memory allocation in the TCP sender. Could result |
| 16187 |
in rsyslogd dumping core. |
| 16188 |
- fixed a bug with regular expression support (thanks to Andres Riancho) |
| 16189 |
- a little bit of code restructuring (especially main(), which was |
| 16190 |
horribly large) |
| 16191 |
--------------------------------------------------------------------------- |
| 16192 |
Version 1.11.1 (RGer), 2005-10-19 |
| 16193 |
- support for BSD-style program name and host blocks |
| 16194 |
- added a new property "programname" that can be used in templates |
| 16195 |
- added ability to specify listen port for rfc3195d |
| 16196 |
- fixed a bug that rendered the "startswith" comparison operation |
| 16197 |
unusable. |
| 16198 |
- changed more functions to "static" storage class to help compiler |
| 16199 |
optimize (should have been static in the first place...) |
| 16200 |
- fixed a potential memory leak in the string buffer class destructor. |
| 16201 |
As the destructor was previously never called, the leak did not actually |
| 16202 |
appear. |
| 16203 |
- some internal restructuring in anticipation/preparation of minimal |
| 16204 |
multi-threading support |
| 16205 |
- rsyslogd still shares some code with the sysklogd project. Some patches |
| 16206 |
for this shared code have been brought over from the sysklogd CVS. |
| 16207 |
--------------------------------------------------------------------------- |
| 16208 |
Version 1.11.0 (RGer), 2005-10-12 |
| 16209 |
- support for receiving messages via RFC 3195; added rfc3195d for that |
| 16210 |
purpose |
| 16211 |
- added an additional guard to prevent rsyslogd from aborting when the |
| 16212 |
2gb file size limit is hit. While a user can configure rsyslogd to |
| 16213 |
handle such situations, it would abort if that was not done AND large |
| 16214 |
file support was not enabled (ok, this is hopefully an unlikely scenario) |
| 16215 |
- fixed a bug that caused additional Unix domain sockets to be incorrectly |
| 16216 |
processed - could lead to message loss in extreme cases |
| 16217 |
--------------------------------------------------------------------------- |
| 16218 |
Version 1.10.2 (RGer), 2005-09-27 |
| 16219 |
- added comparison operations in property-based filters: |
| 16220 |
* isequal |
| 16221 |
* startswith |
| 16222 |
- added ability to negate all property-based filter comparison operations |
| 16223 |
by adding a !-sign right in front of the operation name |
| 16224 |
- added the ability to specify remote senders for UDP and TCP |
| 16225 |
received messages. Allows to block all but well-known hosts |
| 16226 |
- changed the $-config line directives to be case-INsensitive |
| 16227 |
- new command line option -w added: "do not display warnings if messages |
| 16228 |
from disallowed senders are received" |
| 16229 |
- fixed a bug that caused rsyslogd to dump core when the compare value |
| 16230 |
was not quoted in property-based filters |
| 16231 |
- fixed a bug in the new CStr compare function which lead to invalid |
| 16232 |
results (fortunately, this function was not yet used widely) |
| 16233 |
- added better support for "debugging" rsyslog.conf property filters |
| 16234 |
(only if -d switch is given) |
| 16235 |
- changed some function definitions to static, which eventually enables |
| 16236 |
some compiler optimizations |
| 16237 |
- fixed a bug in MySQL code; when a SQL error occurred, rsyslogd could |
| 16238 |
run in a tight loop. This was due to invalid sequence of error reporting |
| 16239 |
and is now fixed. |
| 16240 |
--------------------------------------------------------------------------- |
| 16241 |
Version 1.10.1 (RGer), 2005-09-23 |
| 16242 |
- added the ability to execute a shell script as an action. |
| 16243 |
Thanks to Bjoern Kalkbrenner for providing the code! |
| 16244 |
- fixed a bug in the MySQL code; due to the bug the automatic one-time |
| 16245 |
retry after an error did not happen - this lead to error message in |
| 16246 |
cases where none should be seen (e.g. after a MySQL restart) |
| 16247 |
- fixed a security issue with SQL-escaping in conjunction with |
| 16248 |
non-(SQL-)standard MySQL features. |
| 16249 |
--------------------------------------------------------------------------- |
| 16250 |
Version 1.10.0 (RGer), 2005-09-20 |
| 16251 |
REMINDER: 1.10 is the first unstable version if the 1.x series! |
| 16252 |
- added the capability to filter on any property in selector lines |
| 16253 |
(not just facility and priority) |
| 16254 |
- changed stringbuf into a new counted string class |
| 16255 |
- added support for a "discard" action. If a selector line with |
| 16256 |
discard (~ character) is found, no selector lines *after* that |
| 16257 |
line will be processed. |
| 16258 |
- thanks to Andres Riancho, regular expression support has been |
| 16259 |
added to the template engine |
| 16260 |
- added the FROMHOST property in the template processor, which could |
| 16261 |
previously not be obtained. Thanks to Cristian Testa for pointing |
| 16262 |
this out and even providing a fix. |
| 16263 |
- added display of compile-time options to -v output |
| 16264 |
- performance improvement for production build - made some checks |
| 16265 |
to happen only during debug mode |
| 16266 |
- fixed a problem with compiling on SUSE and - while doing so - removed |
| 16267 |
the socket call to set SO_BSDCOMPAT in cases where it is obsolete. |
| 16268 |
--------------------------------------------------------------------------- |
| 16269 |
Version 1.0.4 (RGer), 2006-02-01 |
| 16270 |
- a small but important fix: the tcp receiver had two forgotten printf's |
| 16271 |
in it that caused a lot of unnecessary output to stdout. This was |
| 16272 |
important enough to justify a new release |
| 16273 |
--------------------------------------------------------------------------- |
| 16274 |
Version 1.0.3 (RGer), 2005-11-14 |
| 16275 |
- added an additional guard to prevent rsyslogd from aborting when the |
| 16276 |
2gb file size limit is hit. While a user can configure rsyslogd to |
| 16277 |
handle such situations, it would abort if that was not done AND large |
| 16278 |
file support was not enabled (ok, this is hopefully an unlikely scenario) |
| 16279 |
- fixed a bug that caused additional Unix domain sockets to be incorrectly |
| 16280 |
processed - could lead to message loss in extreme cases |
| 16281 |
- applied some patches available from the sysklogd project to code |
| 16282 |
shared from there |
| 16283 |
- fixed a bug that causes rsyslogd to dump core on termination when one |
| 16284 |
of the selector lines did not receive a message during the run (very |
| 16285 |
unlikely) |
| 16286 |
- fixed an one-too-low memory allocation in the TCP sender. Could result |
| 16287 |
in rsyslogd dumping core. |
| 16288 |
- fixed a bug in the TCP sender that caused the retry logic to fail |
| 16289 |
after an error or receiver overrun |
| 16290 |
- fixed a bug in init() that could lead to dumping core |
| 16291 |
- fixed a bug that could lead to dumping core when no HOSTNAME or no TAG |
| 16292 |
was present in the syslog message |
| 16293 |
--------------------------------------------------------------------------- |
| 16294 |
Version 1.0.2 (RGer), 2005-10-05 |
| 16295 |
- fixed an issue with MySQL error reporting. When an error occurred, |
| 16296 |
the MySQL driver went into an endless loop (at least in most cases). |
| 16297 |
--------------------------------------------------------------------------- |
| 16298 |
Version 1.0.1 (RGer), 2005-09-23 |
| 16299 |
- fixed a security issue with SQL-escaping in conjunction with |
| 16300 |
non-(SQL-)standard MySQL features. |
| 16301 |
--------------------------------------------------------------------------- |
| 16302 |
Version 1.0.0 (RGer), 2005-09-12 |
| 16303 |
- changed install doc to cover daily cron scripts - a trouble source |
| 16304 |
- added rc script for slackware (provided by Chris Elvidge - thanks!) |
| 16305 |
- fixed a really minor bug in usage() - the -r option was still |
| 16306 |
reported as without the port parameter |
| 16307 |
--------------------------------------------------------------------------- |
| 16308 |
Version 0.9.8 (RGer), 2005-09-05 |
| 16309 |
- made startup and shutdown message more consistent and included the |
| 16310 |
pid, so that they can be easier correlated. Used syslog-protocol |
| 16311 |
structured data format for this purpose. |
| 16312 |
- improved config info in startup message, now tells not only |
| 16313 |
if it is listening remote on udp, but also for tcp. Also includes |
| 16314 |
the port numbers. The previous startup message was misleading, because |
| 16315 |
it did not say "remote reception" if rsyslogd was only listening via |
| 16316 |
tcp (but not via udp). |
| 16317 |
- added a "how can you help" document to the doc set |
| 16318 |
--------------------------------------------------------------------------- |
| 16319 |
Version 0.9.7 (RGer), 2005-08-15 |
| 16320 |
- some of the previous doc files (like INSTALL) did not properly |
| 16321 |
reflect the changes to the build process and the new doc. Fixed |
| 16322 |
that. |
| 16323 |
- changed syslogd.c so that when compiled without database support, |
| 16324 |
an error message is displayed when a database action is detected |
| 16325 |
in the config file (previously this was used as an user rule ;)) |
| 16326 |
- fixed a bug in the os-specific Makefiles which caused MySQL |
| 16327 |
support to not be compiled, even if selected |
| 16328 |
--------------------------------------------------------------------------- |
| 16329 |
Version 0.9.6 (RGer), 2005-08-09 |
| 16330 |
- greatly enhanced documentation. Now available in html format in |
| 16331 |
the "doc" folder and FreeBSD. Finally includes an install howto. |
| 16332 |
- improved MySQL error messages a little - they now show up as log |
| 16333 |
messages, too (formerly only in debug mode) |
| 16334 |
- added the ability to specify the listen port for udp syslog. |
| 16335 |
WARNING: This introduces an incompatibility. Formerly, udp |
| 16336 |
syslog was enabled by the -r command line option. Now, it is |
| 16337 |
"-r [port]", which is consistent with the tcp listener. However, |
| 16338 |
just -r will now return an error message. |
| 16339 |
- added sample startup scripts for Debian and FreeBSD |
| 16340 |
- added support for easy feature selection in the makefile. Un- |
| 16341 |
fortunately, this also means I needed to spilt the make file |
| 16342 |
for different OS and distros. There are some really bad syntax |
| 16343 |
differences between FreeBSD and Linux make. |
| 16344 |
--------------------------------------------------------------------------- |
| 16345 |
Version 0.9.5 (RGer), 2005-08-01 |
| 16346 |
- the "semicolon bug" was actually not (fully) solved in 0.9.4. One |
| 16347 |
part of the bug was solved, but another still existed. This one |
| 16348 |
is fixed now, too. |
| 16349 |
- the "semicolon bug" actually turned out to be a more generic bug. |
| 16350 |
It appeared whenever an invalid template name was given. With some |
| 16351 |
selector actions, rsyslogd dumped core, with other it "just" had |
| 16352 |
a small resource leak with others all worked well. These anomalies |
| 16353 |
are now fixed. Note that they only appeared during system initialization |
| 16354 |
once the system was running, nothing bad happened. |
| 16355 |
- improved error reporting for template errors on startup. They are now |
| 16356 |
shown on the console and the start-up tty. Formerly, they were only |
| 16357 |
visible in debug mode. |
| 16358 |
- support for multiple instances of rsyslogd on a single machine added |
| 16359 |
- added new option "-o" --> omit local unix domain socket. This option |
| 16360 |
enables rsyslogd NOT to listen to the local socket. This is most |
| 16361 |
helpful when multiple instances of rsyslogd (or rsyslogd and another |
| 16362 |
syslogd) shall run on a single system. |
| 16363 |
- added new option "-i <pidfile>" which allows one to specify the pidfile. |
| 16364 |
This is needed when multiple instances of rsyslogd are to be run. |
| 16365 |
- the new project home page is now online at www.rsyslog.com |
| 16366 |
--------------------------------------------------------------------------- |
| 16367 |
Version 0.9.4 (RGer), 2005-07-25 |
| 16368 |
- finally added the TCP sender. It now supports non-blocking mode, no |
| 16369 |
longer disabling message reception during connect. As it is now, it |
| 16370 |
is usable in production. The code could be more sophisticated, but |
| 16371 |
I've kept it short in anticipation of the move to liblogging, which |
| 16372 |
will lead to the removal of the code just written ;) |
| 16373 |
- the "exiting on signal..." message still had the "syslogd" name in |
| 16374 |
it. Changed this to "rsyslogd", as we do not have a large user base |
| 16375 |
yet, this should pose no problem. |
| 16376 |
- fixed "the semicolon" bug. rsyslogd dumped core if a write-db action |
| 16377 |
was specified but no semicolon was given after the password (an empty |
| 16378 |
template was ok, but the semicolon needed to be present). |
| 16379 |
- changed a default for traditional output format. During testing, it |
| 16380 |
was seen that the timestamp written to file in default format was |
| 16381 |
the time of message reception, not the time specified in the TIMESTAMP |
| 16382 |
field of the message itself. Traditionally, the message TIMESTAMP is |
| 16383 |
used and this has been changed now. |
| 16384 |
--------------------------------------------------------------------------- |
| 16385 |
Version 0.9.3 (RGer), 2005-07-19 |
| 16386 |
- fixed a bug in the message parser. In June, the RFC 3164 timestamp |
| 16387 |
was not correctly parsed (yes, only in June and some other months, |
| 16388 |
see the code comment to learn why...) |
| 16389 |
- added the ability to specify the destination port when forwarding |
| 16390 |
syslog messages (both for TCP and UDP) |
| 16391 |
- added an very experimental TCP sender (activated by |
| 16392 |
@@machine:port in config). This is not yet for production use. If |
| 16393 |
the receiver is not alive, rsyslogd will wait quite some time until |
| 16394 |
the connection request times out, which most probably leads to |
| 16395 |
loss of incoming messages. |
| 16396 |
|
| 16397 |
--------------------------------------------------------------------------- |
| 16398 |
Version 0.9.2 (RGer), around 2005-07-06 |
| 16399 |
- I intended to change the maxsupported message size to 32k to |
| 16400 |
support IHE - but given the memory inefficiency in the usual use |
| 16401 |
cases, I have not done this. I have, however, included very |
| 16402 |
specific instructions on how to do this in the source code. I have |
| 16403 |
also done some testing with 32k messages, so you can change the |
| 16404 |
max size without taking too much risk. |
| 16405 |
- added a syslog/tcp receiver; we now can receive messages via |
| 16406 |
plain tcp, but we can still send only via UDP. The syslog/tcp |
| 16407 |
receiver is the primary enhancement of this release. |
| 16408 |
- slightly changed some error messages that contained a spurios \n at |
| 16409 |
the end of the line (which gives empty lines in your log...) |
| 16410 |
|
| 16411 |
--------------------------------------------------------------------------- |
| 16412 |
Version 0.9.1 (RGer) |
| 16413 |
- fixed code so that it compiles without errors under FreeBSD |
| 16414 |
- removed now unused function "allocate_log()" from syslogd.c |
| 16415 |
- changed the make file so that it contains more defines for |
| 16416 |
different environments (in the long term, we need a better |
| 16417 |
system for disabling/enabling features...) |
| 16418 |
- changed some printf's printing off_t types to %lld and |
| 16419 |
explicit (long long) casts. I tried to figure out the exact type, |
| 16420 |
but did not succeed in this. In the worst case, ultra-large peta- |
| 16421 |
byte files will now display funny informational messages on rollover, |
| 16422 |
something I think we can live with for the neersion 3.11.2 (rgerhards), 2008-02-?? |
| 16423 |
--------------------------------------------------------------------------- |
| 16424 |
Version 3.11.1 (rgerhards), 2008-02-12 |
| 16425 |
- SNMP trap sender added thanks to Andre Lorbach (omsnmp) |
| 16426 |
- added input-plugin interface specification in form of a (copy) template |
| 16427 |
input module |
| 16428 |
- applied documentation fix by Michael Biebl -- many thanks! |
| 16429 |
- bugfix: immark did not have MARK flags set... |
| 16430 |
- added x-info field to rsyslogd startup/shutdown message. Hopefully |
| 16431 |
points users to right location for further info (many don't even know |
| 16432 |
they run rsyslog ;)) |
| 16433 |
- bugfix: trailing ":" of tag was lost while parsing legacy syslog messages |
| 16434 |
without timestamp - thanks to Anders Blomdell for providing a patch! |
| 16435 |
- fixed a bug in stringbuf.c related to STRINGBUF_TRIM_ALLOCSIZE, which |
| 16436 |
wasn't supposed to be used with rsyslog. Put a warning message up that |
| 16437 |
tells this feature is not tested and probably not worth the effort. |
| 16438 |
Thanks to Anders Blomdell fro bringing this to our attention |
| 16439 |
- somewhat improved performance of string buffers |
| 16440 |
- fixed bug that caused invalid treatment of tabs (HT) in rsyslog.conf |
| 16441 |
- bugfix: setting for $EscapeControlCharactersOnReceive was not |
| 16442 |
properly initialized |
| 16443 |
- clarified usage of space-cc property replacer option |
| 16444 |
- improved abort diagnostic handler |
| 16445 |
- some initial effort for malloc/free runtime debugging support |
| 16446 |
- bugfix: using dynafile actions caused rsyslogd abort |
| 16447 |
- fixed minor man errors thanks to Michael Biebl |
| 16448 |
--------------------------------------------------------------------------- |
| 16449 |
Version 3.11.0 (rgerhards), 2008-01-31 |
| 16450 |
- implemented queued actions |
| 16451 |
- implemented simple rate limiting for actions |
| 16452 |
- implemented deliberate discarding of lower priority messages over higher |
| 16453 |
priority ones when a queue runs out of space |
| 16454 |
- implemented disk quotas for disk queues |
| 16455 |
- implemented the $ActionResumeRetryCount config directive |
| 16456 |
- added $ActionQueueFilename config directive |
| 16457 |
- added $ActionQueueSize config directive |
| 16458 |
- added $ActionQueueHighWaterMark config directive |
| 16459 |
- added $ActionQueueLowWaterMark config directive |
| 16460 |
- added $ActionQueueDiscardMark config directive |
| 16461 |
- added $ActionQueueDiscardSeverity config directive |
| 16462 |
- added $ActionQueueCheckpointInterval config directive |
| 16463 |
- added $ActionQueueType config directive |
| 16464 |
- added $ActionQueueWorkerThreads config directive |
| 16465 |
- added $ActionQueueTimeoutshutdown config directive |
| 16466 |
- added $ActionQueueTimeoutActionCompletion config directive |
| 16467 |
- added $ActionQueueTimeoutenQueue config directive |
| 16468 |
- added $ActionQueueTimeoutworkerThreadShutdown config directive |
| 16469 |
- added $ActionQueueWorkerThreadMinimumMessages config directive |
| 16470 |
- added $ActionQueueMaxFileSize config directive |
| 16471 |
- added $ActionQueueSaveonShutdown config directive |
| 16472 |
- addded $ActionQueueDequeueSlowdown config directive |
| 16473 |
- addded $MainMsgQueueDequeueSlowdown config directive |
| 16474 |
- bugfix: added forgotten docs to package |
| 16475 |
- improved debugging support |
| 16476 |
- fixed a bug that caused $MainMsgQueueCheckpointInterval to work incorrectly |
| 16477 |
- when a long-running action needs to be cancelled on shutdown, the message |
| 16478 |
that was processed by it is now preserved. This finishes support for |
| 16479 |
guaranteed delivery of messages (if the output supports it, of course) |
| 16480 |
- fixed bug in output module interface, see |
| 16481 |
http://sourceforge.net/tracker/index.php?func=detail&aid=1881008&group_id=123448&atid=696552 |
| 16482 |
- changed the ommysql output plugin so that the (lengthy) connection |
| 16483 |
initialization now takes place in message processing. This works much |
| 16484 |
better with the new queued action mode (fast startup) |
| 16485 |
- fixed a bug that caused a potential hang in file and fwd output module |
| 16486 |
varmojfekoj provided the patch - many thanks! |
| 16487 |
- bugfixed stream class offset handling on 32bit platforms |
| 16488 |
--------------------------------------------------------------------------- |
| 16489 |
Version 3.10.3 (rgerhards), 2008-01-28 |
| 16490 |
- fixed a bug with standard template definitions (not a big deal) - thanks |
| 16491 |
to varmojfekoj for spotting it |
| 16492 |
- run-time instrumentation added |
| 16493 |
- implemented disk-assisted queue mode, which enables on-demand disk |
| 16494 |
spooling if the queue's in-memory queue is exhausted |
| 16495 |
- implemented a dynamic worker thread pool for processing incoming |
| 16496 |
messages; workers are started and shut down as need arises |
| 16497 |
- implemented a run-time instrumentation debug package |
| 16498 |
- implemented the $MainMsgQueueSaveOnShutdown config directive |
| 16499 |
- implemented the $MainMsgQueueWorkerThreadMinimumMessages config directive |
| 16500 |
- implemented the $MainMsgQueueTimeoutWorkerThreadShutdown config directive |
| 16501 |
--------------------------------------------------------------------------- |
| 16502 |
Version 3.10.2 (rgerhards), 2008-01-14 |
| 16503 |
- added the ability to keep stop rsyslogd without the need to drain |
| 16504 |
the main message queue. In disk queue mode, rsyslog continues to |
| 16505 |
run from the point where it stopped. In case of a system failure, it |
| 16506 |
continues to process messages from the last checkpoint. |
| 16507 |
- fixed a bug that caused a segfault on startup when no $WorkDir directive |
| 16508 |
was specified in rsyslog.conf |
| 16509 |
- provided more fine-grain control over shutdown timeouts and added a |
| 16510 |
way to specify the enqueue timeout when the main message queue is full |
| 16511 |
- implemented $MainMsgQueueCheckpointInterval config directive |
| 16512 |
- implemented $MainMsgQueueTimeoutActionCompletion config directive |
| 16513 |
- implemented $MainMsgQueueTimeoutEnqueue config directive |
| 16514 |
- implemented $MainMsgQueueTimeoutShutdown config directive |
| 16515 |
--------------------------------------------------------------------------- |
| 16516 |
Version 3.10.1 (rgerhards), 2008-01-10 |
| 16517 |
- implemented the "disk" queue mode. However, it currently is of very |
| 16518 |
limited use, because it does not support persistence over rsyslogd |
| 16519 |
runs. So when rsyslogd is stopped, the queue is drained just as with |
| 16520 |
the in-memory queue modes. Persistent queues will be a feature of |
| 16521 |
the next release. |
| 16522 |
- performance-optimized string class, should bring an overall improvement |
| 16523 |
- fixed a memory leak in imudp -- thanks to varmojfekoj for the patch |
| 16524 |
- fixed a race condition that could lead to a rsyslogd hang when during |
| 16525 |
HUP or termination |
| 16526 |
- done some doc updates |
| 16527 |
- added $WorkDirectory config directive |
| 16528 |
- added $MainMsgQueueFileName config directive |
| 16529 |
- added $MainMsgQueueMaxFileSize config directive |
| 16530 |
--------------------------------------------------------------------------- |
| 16531 |
Version 3.10.0 (rgerhards), 2008-01-07 |
| 16532 |
- implemented input module interface and initial input modules |
| 16533 |
- enhanced threading for input modules (each on its own thread now) |
| 16534 |
- ability to bind UDP listeners to specific local interfaces/ports and |
| 16535 |
ability to run multiple of them concurrently |
| 16536 |
- added ability to specify listen IP address for UDP syslog server |
| 16537 |
- license changed to GPLv3 |
| 16538 |
- mark messages are now provided by loadble module immark |
| 16539 |
- rklogd is no longer provided. Its functionality has now been taken over |
| 16540 |
by imklog, a loadable input module. This offers a much better integration |
| 16541 |
into rsyslogd and makes sure that the kernel logger process is brought |
| 16542 |
up and down at the appropriate times |
| 16543 |
- enhanced $IncludeConfig directive to support wildcard characters |
| 16544 |
(thanks to Michael Biebl) |
| 16545 |
- all inputs are now implemented as loadable plugins |
| 16546 |
- enhanced threading model: each input module now runs on its own thread |
| 16547 |
- enhanced message queue which now supports different queueing methods |
| 16548 |
(among others, this can be used for performance fine-tuning) |
| 16549 |
- added a large number of new configuration directives for the new |
| 16550 |
input modules |
| 16551 |
- enhanced multi-threading utilizing a worker thread pool for the |
| 16552 |
main message queue |
| 16553 |
- compilation without pthreads is no longer supported |
| 16554 |
- much cleaner code due to new objects and removal of single-threading |
| 16555 |
mode |
| 16556 |
--------------------------------------------------------------------------- |
| 16557 |
Version 2.0.1 STABLE (rgerhards), 2008-01-24 |
| 16558 |
- fixed a bug in integer conversion - but this function was never called, |
| 16559 |
so it is not really a useful bug fix ;) |
| 16560 |
- fixed a bug with standard template definitions (not a big deal) - thanks |
| 16561 |
to varmojfekoj for spotting it |
| 16562 |
- fixed a bug that caused a potential hang in file and fwd output module |
| 16563 |
varmojfekoj provided the patch - many thanks! |
| 16564 |
--------------------------------------------------------------------------- |
| 16565 |
Version 2.0.0 STABLE (rgerhards), 2008-01-02 |
| 16566 |
- re-release of 1.21.2 as STABLE with no modifications except some |
| 16567 |
doc updates |
| 16568 |
--------------------------------------------------------------------------- |
| 16569 |
Version 1.21.2 (rgerhards), 2007-12-28 |
| 16570 |
- created a gss-api output module. This keeps GSS-API code and |
| 16571 |
TCP/UDP code separated. It is also important for forward- |
| 16572 |
compatibility with v3. Please note that this change breaks compatibility |
| 16573 |
with config files created for 1.21.0 and 1.21.1 - this was considered |
| 16574 |
acceptable. |
| 16575 |
- fixed an error in forwarding retry code (could lead to message corruption |
| 16576 |
but surfaced very seldom) |
| 16577 |
- increased portability for older platforms (AI_NUMERICSERV moved) |
| 16578 |
- removed socket leak in omfwd.c |
| 16579 |
- cross-platform patch for GSS-API compile problem on some platforms |
| 16580 |
thanks to darix for the patch! |
| 16581 |
--------------------------------------------------------------------------- |
| 16582 |
Version 1.21.1 (rgerhards), 2007-12-23 |
| 16583 |
- small doc fix for $IncludeConfig |
| 16584 |
- fixed a bug in llDestroy() |
| 16585 |
- bugfix: fixing memory leak when message queue is full and during |
| 16586 |
parsing. Thanks to varmojfekoj for the patch. |
| 16587 |
- bugfix: when compiled without network support, unix sockets were |
| 16588 |
not properly closed |
| 16589 |
- bugfix: memory leak in cfsysline.c/doGetWord() fixed |
| 16590 |
--------------------------------------------------------------------------- |
| 16591 |
Version 1.21.0 (rgerhards), 2007-12-19 |
| 16592 |
- GSS-API support for syslog/TCP connections was added. Thanks to |
| 16593 |
varmojfekoj for providing the patch with this functionality |
| 16594 |
- code cleanup |
| 16595 |
- enhanced $IncludeConfig directive to support wildcard filenames |
| 16596 |
- changed some multithreading synchronization |
| 16597 |
--------------------------------------------------------------------------- |
| 16598 |
Version 1.20.1 (rgerhards), 2007-12-12 |
| 16599 |
- corrected a debug setting that survived release. Caused TCP connections |
| 16600 |
to be retried unnecessarily often. |
| 16601 |
- When a hostname ACL was provided and DNS resolution for that name failed, |
| 16602 |
ACL processing was stopped at that point. Thanks to mildew for the patch. |
| 16603 |
Fedora Bugzilla: http://bugzilla.redhat.com/show_bug.cgi?id=395911 |
| 16604 |
- fixed a potential race condition, see link for details: |
| 16605 |
http://rgerhards.blogspot.com/2007/12/rsyslog-race-condition.html |
| 16606 |
Note that the probability of problems from this bug was very remote |
| 16607 |
- fixed a memory leak that happened when PostgreSQL date formats were |
| 16608 |
used |
| 16609 |
--------------------------------------------------------------------------- |
| 16610 |
Version 1.20.0 (rgerhards), 2007-12-07 |
| 16611 |
- an output module for postgres databases has been added. Thanks to |
| 16612 |
sur5r for contributing this code |
| 16613 |
- unloading dynamic modules has been cleaned up, we now have a |
| 16614 |
real implementation and not just a dummy "good enough for the time |
| 16615 |
being". |
| 16616 |
- enhanced platform independence - thanks to Bartosz Kuzma and Michael |
| 16617 |
Biebl for their very useful contributions |
| 16618 |
- some general code cleanup (including warnings on 64 platforms, only) |
| 16619 |
--------------------------------------------------------------------------- |
| 16620 |
Version 1.19.12 (rgerhards), 2007-12-03 |
| 16621 |
- cleaned up the build system (thanks to Michael Biebl for the patch) |
| 16622 |
- fixed a bug where ommysql was still not compiled with -pthread option |
| 16623 |
--------------------------------------------------------------------------- |
| 16624 |
Version 1.19.11 (rgerhards), 2007-11-29 |
| 16625 |
- applied -pthread option to build when building for multi-threading mode |
| 16626 |
hopefully solves an issue with segfaulting |
| 16627 |
--------------------------------------------------------------------------- |
| 16628 |
Version 1.19.10 (rgerhards), 2007-10-19 |
| 16629 |
- introduced the new ":modulename:" syntax for calling module actions |
| 16630 |
in selector lines; modified ommysql to support it. This is primarily |
| 16631 |
an aid for further modules and a prerequisite to actually allow third |
| 16632 |
party modules to be created. |
| 16633 |
- minor fix in slackware startup script, "-r 0" is now "-r0" |
| 16634 |
- updated rsyslogd doc set man page; now in html format |
| 16635 |
- undid creation of a separate thread for the main loop -- this did not |
| 16636 |
turn out to be needed or useful, so reduce complexity once again. |
| 16637 |
- added doc fixes provided by Michael Biebl - thanks |
| 16638 |
--------------------------------------------------------------------------- |
| 16639 |
Version 1.19.9 (rgerhards), 2007-10-12 |
| 16640 |
- now packaging system which again contains all components in a single |
| 16641 |
tarball |
| 16642 |
- modularized main() a bit more, resulting in less complex code |
| 16643 |
- experimentally added an additional thread - will see if that affects |
| 16644 |
the segfault bug we experience on some platforms. Note that this change |
| 16645 |
is scheduled to be removed again later. |
| 16646 |
--------------------------------------------------------------------------- |
| 16647 |
Version 1.19.8 (rgerhards), 2007-09-27 |
| 16648 |
- improved repeated message processing |
| 16649 |
- applied patch provided by varmojfekoj to support building ommysql |
| 16650 |
in its own way (now also resides in a plugin subdirectory); |
| 16651 |
ommysql is now a separate package |
| 16652 |
- fixed a bug in cvthname() that lead to message loss if part |
| 16653 |
of the source hostname would have been dropped |
| 16654 |
- created some support for distributing ommysql together with the |
| 16655 |
main rsyslog package. I need to re-think it in the future, but |
| 16656 |
for the time being the current mode is best. I now simply include |
| 16657 |
one additional tarball for ommysql inside the main distribution. |
| 16658 |
I look forward to user feedback on how this should be done best. In the |
| 16659 |
long term, a separate project should be spawend for ommysql, but I'd |
| 16660 |
like to do that only after the plugin interface is fully stable (what |
| 16661 |
it is not yet). |
| 16662 |
--------------------------------------------------------------------------- |
| 16663 |
Version 1.19.7 (rgerhards), 2007-09-25 |
| 16664 |
- added code to handle situations where senders send us messages ending with |
| 16665 |
a NUL character. It is now simply removed. This also caused trailing LF |
| 16666 |
reduction to fail, when it was followed by such a NUL. This is now also |
| 16667 |
handled. |
| 16668 |
- replaced some non-thread-safe function calls by their thread-safe |
| 16669 |
counterparts |
| 16670 |
- fixed a minor memory leak that occurred when the %APPNAME% property was |
| 16671 |
used (I think nobody used that in practice) |
| 16672 |
- fixed a bug that caused signal handlers in cvthname() not to be restored when |
| 16673 |
a malicious pointer record was detected and processing of the message been |
| 16674 |
stopped for that reason (this should be really rare and can not be related |
| 16675 |
to the segfault bug we are hunting). |
| 16676 |
- fixed a bug in cvthname that lead to passing a wrong parameter - in |
| 16677 |
practice, this had no impact. |
| 16678 |
- general code cleanup (e.g. compiler warnings, comments) |
| 16679 |
--------------------------------------------------------------------------- |
| 16680 |
Version 1.19.6 (rgerhards), 2007-09-11 |
| 16681 |
- applied patch by varmojfekoj to change signal handling to the new |
| 16682 |
sigaction API set (replacing the depreciated signal() calls and its |
| 16683 |
friends. |
| 16684 |
- fixed a bug that in --enable-debug mode caused an assertion when the |
| 16685 |
discard action was used |
| 16686 |
- cleaned up compiler warnings |
| 16687 |
- applied patch by varmojfekoj to FIX a bug that could cause |
| 16688 |
segfaults if empty properties were processed using modifying |
| 16689 |
options (e.g. space-cc, drop-cc) |
| 16690 |
- fixed man bug: rsyslogd supports -l option |
| 16691 |
--------------------------------------------------------------------------- |
| 16692 |
Version 1.19.5 (rgerhards), 2007-09-07 |
| 16693 |
- changed part of the CStr interface so that better error tracking |
| 16694 |
is provided and the calling sequence is more intuitive (there were |
| 16695 |
invalid calls based on a too-weird interface) |
| 16696 |
- (hopefully) fixed some remaining bugs rooted in wrong use of |
| 16697 |
the CStr class. These could lead to program abort. |
| 16698 |
- applied patch by varmojfekoj two fix two potential segfault situations |
| 16699 |
- added $ModDir config directive |
| 16700 |
- modified $ModLoad so that an absolute path may be specified as |
| 16701 |
module name (e.g. /rsyslog/ommysql.so) |
| 16702 |
--------------------------------------------------------------------------- |
| 16703 |
Version 1.19.4 (rgerhards/varmojfekoj), 2007-09-04 |
| 16704 |
- fixed a number of small memory leaks - thanks varmojfekoj for patching |
| 16705 |
- fixed an issue with CString class that could lead to rsyslog abort |
| 16706 |
in tplToString() - thanks varmojfekoj for patching |
| 16707 |
- added a man-version of the config file documentation - thanks to Michel |
| 16708 |
Samia for providing the man file |
| 16709 |
- fixed bug: a template like this causes an infinite loop: |
| 16710 |
$template opts,"%programname:::a,b%" |
| 16711 |
thanks varmojfekoj for the patch |
| 16712 |
- fixed bug: case changing options crash freeing the string pointer |
| 16713 |
because they modify it: $template opts2,"%programname::1:lowercase%" |
| 16714 |
thanks varmojfekoj for the patch |
| 16715 |
--------------------------------------------------------------------------- |
| 16716 |
Version 1.19.3 (mmeckelein/varmojfekoj), 2007-08-31 |
| 16717 |
- small mem leak fixed (after calling parseSelectorAct) - Thx varmojfekoj |
| 16718 |
- documentation section "Regular File" und "Blocks" updated |
| 16719 |
- solved an issue with dynamic file generation - Once again many thanks |
| 16720 |
to varmojfekoj |
| 16721 |
- the negative selector for program name filter (Blocks) does not work as |
| 16722 |
expected - Thanks varmojfekoj for patching |
| 16723 |
- added forwarding information to sysklogd (requires special template) |
| 16724 |
to config doc |
| 16725 |
--------------------------------------------------------------------------- |
| 16726 |
Version 1.19.2 (mmeckelein/varmojfekoj), 2007-08-28 |
| 16727 |
- a specifically formed message caused a segfault - Many thanks varmojfekoj |
| 16728 |
for providing a patch |
| 16729 |
- a typo and a weird condition are fixed in msg.c - Thanks again |
| 16730 |
varmojfekoj |
| 16731 |
- on file creation the file was always owned by root:root. This is fixed |
| 16732 |
now - Thanks ypsa for solving this issue |
| 16733 |
--------------------------------------------------------------------------- |
| 16734 |
Version 1.19.1 (mmeckelein), 2007-08-22 |
| 16735 |
- a bug that caused a high load when a TCP/UDP connection was closed is |
| 16736 |
fixed now - Thanks mildew for solving this issue |
| 16737 |
- fixed a bug which caused a segfault on reinit - Thx varmojfekoj for the |
| 16738 |
patch |
| 16739 |
- changed the hardcoded module path "/lib/rsyslog" to $(pkglibdir) in order |
| 16740 |
to avoid trouble e.g. on 64 bit platforms (/lib64) - many thanks Peter |
| 16741 |
Vrabec and darix, both provided a patch for solving this issue |
| 16742 |
- enhanced the unloading of modules - thanks again varmojfekoj |
| 16743 |
- applied a patch from varmojfekoj which fixes various little things in |
| 16744 |
MySQL output module |
| 16745 |
--------------------------------------------------------------------------- |
| 16746 |
Version 1.19.0 (varmojfekoj/rgerhards), 2007-08-16 |
| 16747 |
- integrated patch from varmojfekoj to make the mysql module a loadable one |
| 16748 |
many thanks for the patch, MUCH appreciated |
| 16749 |
--------------------------------------------------------------------------- |
| 16750 |
Version 1.18.2 (rgerhards), 2007-08-13 |
| 16751 |
- fixed a bug in outchannel code that caused templates to be incorrectly |
| 16752 |
parsed |
| 16753 |
- fixed a bug in ommysql that caused a wrong ";template" missing message |
| 16754 |
- added some code for unloading modules; not yet fully complete (and we do |
| 16755 |
not yet have loadable modules, so this is no problem) |
| 16756 |
- removed debian subdirectory by request of a debian packager (this is a special |
| 16757 |
subdir for debian and there is also no point in maintaining it when there |
| 16758 |
is a debian package available - so I gladly did this) in some cases |
| 16759 |
- improved overall doc quality (some pages were quite old) and linked to |
| 16760 |
more of the online resources. |
| 16761 |
- improved /contrib/delete_mysql script by adding a host option and some |
| 16762 |
other minor modifications |
| 16763 |
--------------------------------------------------------------------------- |
| 16764 |
Version 1.18.1 (rgerhards), 2007-08-08 |
| 16765 |
- applied a patch from varmojfekoj which solved a potential segfault |
| 16766 |
of rsyslogd on HUP |
| 16767 |
- applied patch from Michel Samia to fix compilation when the pthreads |
| 16768 |
feature is disabled |
| 16769 |
- some code cleanup (moved action object to its own file set) |
| 16770 |
- add config directive $MainMsgQueueSize, which now allows one to configure the |
| 16771 |
queue size dynamically |
| 16772 |
- all compile-time settings are now shown in rsyslogd -v, not just the |
| 16773 |
active ones |
| 16774 |
- enhanced performance a little bit more |
| 16775 |
- added config file directive $ActionResumeInterval |
| 16776 |
- fixed a bug that prevented compilation under debian sid |
| 16777 |
- added a contrib directory for user-contributed useful things |
| 16778 |
--------------------------------------------------------------------------- |
| 16779 |
Version 1.18.0 (rgerhards), 2007-08-03 |
| 16780 |
- rsyslog now supports fallback actions when an action did not work. This |
| 16781 |
is a great feature e.g. for backup database servers or backup syslog |
| 16782 |
servers |
| 16783 |
- modified rklogd to only change the console log level if -c is specified |
| 16784 |
- added feature to use multiple actions inside a single selector |
| 16785 |
- implemented $ActionExecOnlyWhenPreviousIsSuspended config directive |
| 16786 |
- error messages during startup are now spit out to the configured log |
| 16787 |
destinations |
| 16788 |
--------------------------------------------------------------------------- |
| 16789 |
Version 1.17.6 (rgerhards), 2007-08-01 |
| 16790 |
- continued to work on output module modularization - basic stage of |
| 16791 |
this work is now FINISHED |
| 16792 |
- fixed bug in OMSRcreate() - always returned SR_RET_OK |
| 16793 |
- fixed a bug that caused ommysql to always complain about missing |
| 16794 |
templates |
| 16795 |
- fixed a mem leak in OMSRdestruct - freeing the object itself was |
| 16796 |
forgotten - thanks to varmojfekoj for the patch |
| 16797 |
- fixed a memory leak in syslogd/init() that happened when the config |
| 16798 |
file could not be read - thanks to varmojfekoj for the patch |
| 16799 |
- fixed insufficient memory allocation in addAction() and its helpers. |
| 16800 |
The initial fix and idea was developed by mildew, I fine-tuned |
| 16801 |
it a bit. Thanks a lot for the fix, I'd probably had pulled out my |
| 16802 |
hair to find the bug... |
| 16803 |
- added output of config file line number when a parsing error occurred |
| 16804 |
- fixed bug in objomsr.c that caused program to abort in debug mode with |
| 16805 |
an invalid assertion (in some cases) |
| 16806 |
- fixed a typo that caused the default template for MySQL to be wrong. |
| 16807 |
thanks to mildew for catching this. |
| 16808 |
- added configuration file command $DebugPrintModuleList and |
| 16809 |
$DebugPrintCfSysLineHandlerList |
| 16810 |
- fixed an invalid value for the MARK timer - unfortunately, there was |
| 16811 |
a testing aid left in place. This resulted in quite frequent MARK messages |
| 16812 |
- added $IncludeConfig config directive |
| 16813 |
- applied a patch from mildew to prevent rsyslogd from freezing under heavy |
| 16814 |
load. This could happen when the queue was full. Now, we drop messages |
| 16815 |
but rsyslogd remains active. |
| 16816 |
--------------------------------------------------------------------------- |
| 16817 |
Version 1.17.5 (rgerhards), 2007-07-30 |
| 16818 |
- continued to work on output module modularization |
| 16819 |
- fixed a missing file bug - thanks to Andrea Montanari for reporting |
| 16820 |
this problem |
| 16821 |
- fixed a problem with shutting down the worker thread and freeing the |
| 16822 |
selector_t list - this caused messages to be lost, because the |
| 16823 |
message queue was not properly drained before the selectors got |
| 16824 |
destroyed. |
| 16825 |
--------------------------------------------------------------------------- |
| 16826 |
Version 1.17.4 (rgerhards), 2007-07-27 |
| 16827 |
- continued to work on output module modularization |
| 16828 |
- fixed a situation where rsyslogd could create zombie processes |
| 16829 |
thanks to mildew for the patch |
| 16830 |
- applied patch from Michel Samia to fix compilation when NOT |
| 16831 |
compiled for pthreads |
| 16832 |
--------------------------------------------------------------------------- |
| 16833 |
Version 1.17.3 (rgerhards), 2007-07-25 |
| 16834 |
- continued working on output module modularization |
| 16835 |
- fixed a bug that caused rsyslogd to segfault on exit (and |
| 16836 |
probably also on HUP), when there was an unsent message in a selector |
| 16837 |
that required forwarding and the dns lookup failed for that selector |
| 16838 |
(yes, it was pretty unlikely to happen;)) |
| 16839 |
thanks to varmojfekoj <[email protected]> for the patch |
| 16840 |
- fixed a memory leak in config file parsing and die() |
| 16841 |
thanks to varmojfekoj <[email protected]> for the patch |
| 16842 |
- rsyslogd now checks on startup if it is capable to perform any work |
| 16843 |
at all. If it cant, it complains and terminates |
| 16844 |
thanks to Michel Samia for providing the patch! |
| 16845 |
- fixed a small memory leak when HUPing syslogd. The allowed sender |
| 16846 |
list now gets freed. thanks to mildew for the patch. |
| 16847 |
- changed the way error messages in early startup are logged. They |
| 16848 |
now do no longer use the syslogd code directly but are rather |
| 16849 |
send to stderr. |
| 16850 |
--------------------------------------------------------------------------- |
| 16851 |
Version 1.17.2 (rgerhards), 2007-07-23 |
| 16852 |
- made the port part of the -r option optional. Needed for backward |
| 16853 |
compatibility with sysklogd |
| 16854 |
- replaced system() calls with something more reasonable. Please note that |
| 16855 |
this might break compatibility with some existing configuration files. |
| 16856 |
We accept this in favor of the gained security. |
| 16857 |
- removed a memory leak that could occur if timegenerated was used in |
| 16858 |
RFC 3164 format in templates |
| 16859 |
- did some preparation in msg.c for advanced multithreading - placed the |
| 16860 |
hooks, but not yet any active code |
| 16861 |
- worked further on modularization |
| 16862 |
- added $ModLoad MySQL (dummy) config directive |
| 16863 |
- added DropTrailingLFOnReception config directive |
| 16864 |
--------------------------------------------------------------------------- |
| 16865 |
Version 1.17.1 (rgerhards), 2007-07-20 |
| 16866 |
- fixed a bug that caused make install to install rsyslogd and rklogd under |
| 16867 |
the wrong names |
| 16868 |
- fixed bug that caused $AllowedSenders to handle IPv6 scopes incorrectly; |
| 16869 |
also fixed but that could garble $AllowedSender wildcards. Thanks to |
| 16870 |
[email protected] for the patch |
| 16871 |
- minor code cleanup - thanks to Peter Vrabec for the patch |
| 16872 |
- fixed minimal memory leak on HUP (caused by templates) |
| 16873 |
thanks to varmojfekoj <[email protected]> for the patch |
| 16874 |
- fixed another memory leak on HUPing and on exiting rsyslogd |
| 16875 |
again thanks to varmojfekoj <[email protected]> for the patch |
| 16876 |
- code cleanup (removed compiler warnings) |
| 16877 |
- fixed portability bug in configure.ac - thanks to Bartosz Kuźma for patch |
| 16878 |
- moved msg object into its own file set |
| 16879 |
- added the capability to continue trying to write log files when the |
| 16880 |
file system is full. Functionality based on patch by Martin Schulze |
| 16881 |
to sysklogd package. |
| 16882 |
--------------------------------------------------------------------------- |
| 16883 |
Version 1.17.0 (RGer), 2007-07-17 |
| 16884 |
- added $RepeatedLineReduction config parameter |
| 16885 |
- added $EscapeControlCharactersOnReceive config parameter |
| 16886 |
- added $ControlCharacterEscapePrefix config parameter |
| 16887 |
- added $DirCreateMode config parameter |
| 16888 |
- added $CreateDirs config parameter |
| 16889 |
- added $DebugPrintTemplateList config parameter |
| 16890 |
- added $ResetConfigVariables config parameter |
| 16891 |
- added $FileOwner config parameter |
| 16892 |
- added $FileGroup config parameter |
| 16893 |
- added $DirOwner config parameter |
| 16894 |
- added $DirGroup config parameter |
| 16895 |
- added $FailOnChownFailure config parameter |
| 16896 |
- added regular expression support to the filter engine |
| 16897 |
thanks to Michel Samia for providing the patch! |
| 16898 |
- enhanced $AllowedSender functionality. Credits to [email protected] for |
| 16899 |
the patch doing that |
| 16900 |
- added IPv6 support |
| 16901 |
- allowed DNS hostnames |
| 16902 |
- allowed DNS wildcard names |
| 16903 |
- added new option $DropMsgsWithMaliciousDnsPTRRecords |
| 16904 |
- added autoconf so that rfc3195d, rsyslogd and klogd are stored to /sbin |
| 16905 |
- added capability to auto-create directories with dynaFiles |
| 16906 |
--------------------------------------------------------------------------- |
| 16907 |
Version 1.16.0 (RGer/Peter Vrabec), 2007-07-13 - The Friday, 13th Release ;) |
| 16908 |
- build system switched to autotools |
| 16909 |
- removed SYSV preprocessor macro use, replaced with autotools equivalents |
| 16910 |
- fixed a bug that caused rsyslogd to segfault when TCP listening was |
| 16911 |
disabled and it terminated |
| 16912 |
- added new properties "syslogfacility-text" and "syslogseverity-text" |
| 16913 |
thanks to varmojfekoj <[email protected]> for the patch |
| 16914 |
- added the -x option to disable hostname dns resolution |
| 16915 |
thanks to varmojfekoj <[email protected]> for the patch |
| 16916 |
- begun to better modularize syslogd.c - this is an ongoing project; moved |
| 16917 |
type definitions to a separate file |
| 16918 |
- removed some now-unused fields from struct filed |
| 16919 |
- move file size limit fields in struct field to the "right spot" (the file |
| 16920 |
writing part of the union - f_un.f_file) |
| 16921 |
- subdirectories linux and solaris are no longer part of the distribution |
| 16922 |
package. This is not because we cease support for them, but there are no |
| 16923 |
longer any files in them after the move to autotools |
| 16924 |
--------------------------------------------------------------------------- |
| 16925 |
Version 1.15.1 (RGer), 2007-07-10 |
| 16926 |
- fixed a bug that caused a dynaFile selector to stall when there was |
| 16927 |
an open error with one file |
| 16928 |
- improved template processing for dynaFiles; templates are now only |
| 16929 |
looked up during initialization - speeds up processing |
| 16930 |
- optimized memory layout in struct filed when compiled with MySQL |
| 16931 |
support |
| 16932 |
- fixed a bug that caused compilation without SYSLOG_INET to fail |
| 16933 |
- re-enabled the "last message repeated n times" feature. This |
| 16934 |
feature was not taken care of while rsyslogd evolved from sysklogd |
| 16935 |
and it was more or less defunct. Now it is fully functional again. |
| 16936 |
- added system properties: $NOW, $YEAR, $MONTH, $DAY, $HOUR, $MINUTE |
| 16937 |
- fixed a bug in iovAsString() that caused a memory leak under stress |
| 16938 |
conditions (most probably memory shortage). This was unlikely to |
| 16939 |
ever happen, but it doesn't hurt doing it right |
| 16940 |
- cosmetic: defined type "uchar", change all unsigned chars to uchar |
| 16941 |
--------------------------------------------------------------------------- |
| 16942 |
Version 1.15.0 (RGer), 2007-07-05 |
| 16943 |
- added ability to dynamically generate file names based on templates |
| 16944 |
and thus properties. This was a much-requested feature. It makes |
| 16945 |
life easy when it e.g. comes to splitting files based on the sender |
| 16946 |
address. |
| 16947 |
- added $umask and $FileCreateMode config file directives |
| 16948 |
- applied a patch from Bartosz Kuzma to compile cleanly under NetBSD |
| 16949 |
- checks for extra (unexpected) characters in system config file lines |
| 16950 |
have been added |
| 16951 |
- added IPv6 documentation - was accidentally missing from CVS |
| 16952 |
- begun to change char to unsigned char |
| 16953 |
--------------------------------------------------------------------------- |
| 16954 |
Version 1.14.2 (RGer), 2007-07-03 |
| 16955 |
** this release fixes all known nits with IPv6 ** |
| 16956 |
- restored capability to do /etc/service lookup for "syslog" |
| 16957 |
service when -r 0 was given |
| 16958 |
- documented IPv6 handling of syslog messages |
| 16959 |
- integrate patch from Bartosz Kuźma to make rsyslog compile under |
| 16960 |
Solaris again (the patch replaced a strndup() call, which is not |
| 16961 |
available under Solaris |
| 16962 |
- improved debug logging when waiting on select |
| 16963 |
- updated rsyslogd man page with new options (-46A) |
| 16964 |
--------------------------------------------------------------------------- |
| 16965 |
Version 1.14.1 (RGer/Peter Vrabec), 2007-06-29 |
| 16966 |
- added Peter Vrabec's patch for IPv6 TCP |
| 16967 |
- prefixed all messages send to stderr in rsyslogd with "rsyslogd: " |
| 16968 |
--------------------------------------------------------------------------- |
| 16969 |
Version 1.14.0 (RGer/Peter Vrabec), 2007-06-28 |
| 16970 |
- Peter Vrabec provided IPv6 for rsyslog, so we are now IPv6 enabled |
| 16971 |
IPv6 Support is currently for UDP only, TCP is to come soon. |
| 16972 |
AllowedSender configuration does not yet work for IPv6. |
| 16973 |
- fixed code in iovCreate() that broke C's strict aliasing rules |
| 16974 |
- fixed some char/unsigned char differences that forced the compiler |
| 16975 |
to spit out warning messages |
| 16976 |
- updated the Red Hat init script to fix a known issue (thanks to |
| 16977 |
Peter Vrabec) |
| 16978 |
--------------------------------------------------------------------------- |
| 16979 |
Version 1.13.5 (RGer), 2007-06-22 |
| 16980 |
- made the TCP session limit configurable via command line switch |
| 16981 |
now -t <port>,<max sessions> |
| 16982 |
- added man page for rklogd(8) (basically a copy from klogd, but now |
| 16983 |
there is one...) |
| 16984 |
- fixed a bug that caused internal messages (e.g. rsyslogd startup) to |
| 16985 |
appear without a tag. |
| 16986 |
- removed a minor memory leak that occurred when TAG processing requalified |
| 16987 |
a HOSTNAME to be a TAG (and a TAG already was set). |
| 16988 |
- removed potential small memory leaks in MsgSet***() functions. There |
| 16989 |
would be a leak if a property was re-set, something that happened |
| 16990 |
extremely seldom. |
| 16991 |
--------------------------------------------------------------------------- |
| 16992 |
Version 1.13.4 (RGer), 2007-06-18 |
| 16993 |
- added a new property "PRI-text", which holds the PRI field in |
| 16994 |
textual form (e.g. "syslog.info") |
| 16995 |
- added alias "syslogseverity" for "syslogpriority", which is a |
| 16996 |
misleading property name that needs to stay for historical |
| 16997 |
reasons (and backward-compatibility) |
| 16998 |
- added doc on how to record PRI value in log file |
| 16999 |
- enhanced signal handling in klogd, including removal of an unsafe |
| 17000 |
call to the logging system during signal handling |
| 17001 |
--------------------------------------------------------------------------- |
| 17002 |
Version 1.13.3 (RGer), 2007-06-15 |
| 17003 |
- create a version of syslog.c from scratch. This is now |
| 17004 |
- highly optimized for rsyslog |
| 17005 |
- removes an incompatible license problem as the original |
| 17006 |
version had a BSD license with advertising clause |
| 17007 |
- fixed in the regard that rklogd will continue to work when |
| 17008 |
rsyslogd has been restarted (the original version, as well |
| 17009 |
as sysklogd, will remain silent then) |
| 17010 |
- solved an issue with an extra NUL char at message end that the |
| 17011 |
original version had |
| 17012 |
- applied some changes to klogd to care for the new interface |
| 17013 |
- fixed a bug in syslogd.c which prevented compiling under debian |
| 17014 |
--------------------------------------------------------------------------- |
| 17015 |
Version 1.13.2 (RGer), 2007-06-13 |
| 17016 |
- lib order in makefile patched to facilitate static linking - thanks |
| 17017 |
to Bennett Todd for providing the patch |
| 17018 |
- Integrated a patch from Peter Vrabec ([email protected]): |
| 17019 |
- added klogd under the name of rklogd (remove dependency on |
| 17020 |
original sysklogd package |
| 17021 |
- createDB.sql now in UTF |
| 17022 |
- added additional config files for use on Red Hat |
| 17023 |
--------------------------------------------------------------------------- |
| 17024 |
Version 1.13.1 (RGer), 2007-02-05 |
| 17025 |
- changed the listen backlog limit to a more reasonable value based on |
| 17026 |
the maximum number of TCP connections configured (10% + 5) - thanks to Guy |
| 17027 |
Standen for the hint (actually, the limit was 5 and that was a |
| 17028 |
left-over from early testing). |
| 17029 |
- fixed a bug in makefile which caused DB-support to be disabled when |
| 17030 |
NETZIP support was enabled |
| 17031 |
- added the -e option to allow transmission of every message to remote |
| 17032 |
hosts (effectively turns off duplicate message suppression) |
| 17033 |
- (somewhat) improved memory consumption when compiled with MySQL support |
| 17034 |
- looks like we fixed an incompatibility with MySQL 5.x and above software |
| 17035 |
At least in one case, the remote server name was destroyed, leading to |
| 17036 |
a connection failure. The new, improved code does not have this issue and |
| 17037 |
so we see this as solved (the new code is generally somewhat better, so |
| 17038 |
there is a good chance we fixed this incompatibility). |
| 17039 |
--------------------------------------------------------------------------- |
| 17040 |
Version 1.13.0 (RGer), 2006-12-19 |
| 17041 |
- added '$' as ToPos property replacer specifier - means "up to the |
| 17042 |
end of the string" |
| 17043 |
- property replacer option "escape-cc", "drop-cc" and "space-cc" added |
| 17044 |
- changed the handling of \0 characters inside syslog messages. We now |
| 17045 |
consistently escape them to "#000". This is somewhat recommended in |
| 17046 |
the draft-ietf-syslog-protocol-19 draft. While the real recommendation |
| 17047 |
is to not escape any characters at all, we can not do this without |
| 17048 |
considerable modification of the code. So we escape it to "#000", which |
| 17049 |
is consistent with a sample found in the Internet-draft. |
| 17050 |
- removed message glue logic (see printchopped() comment for details) |
| 17051 |
Also caused removal of parts table and thus some improvements in |
| 17052 |
memory usage. |
| 17053 |
- changed the default MAXLINE to 2048 to take care of recent syslog |
| 17054 |
standardization efforts (can easily be changed in syslogd.c) |
| 17055 |
- added support for byte-counted TCP syslog messages (much like |
| 17056 |
syslog-transport-tls-05 Internet Draft). This was necessary to |
| 17057 |
support compression over TCP. |
| 17058 |
- added support for receiving compressed syslog messages |
| 17059 |
- added support for sending compressed syslog messages |
| 17060 |
- fixed a bug where the last message in a syslog/tcp stream was |
| 17061 |
lost if it was not properly terminated by a LF character |
| 17062 |
--------------------------------------------------------------------------- |
| 17063 |
Version 1.12.3 (RGer), 2006-10-04 |
| 17064 |
- implemented some changes to support Solaris (but support is not |
| 17065 |
yet complete) |
| 17066 |
- commented out (via #if 0) some methods that are currently not being use |
| 17067 |
but should be kept for further us |
| 17068 |
- added (interim) -u 1 option to turn off hostname and tag parsing |
| 17069 |
- done some modifications to better support Fedora |
| 17070 |
- made the field delimiter inside property replace configurable via |
| 17071 |
template |
| 17072 |
- fixed a bug in property replacer: if fields were used, the delimitor |
| 17073 |
became part of the field. Up until now, this was barely noticeable as |
| 17074 |
the delimiter as TAB only and thus invisible to a human. With other |
| 17075 |
delimiters available now, it quickly showed up. This bug fix might cause |
| 17076 |
some grief to existing installations if they used the extra TAB for |
| 17077 |
whatever reasons - sorry folks... Anyhow, a solution is easy: just add |
| 17078 |
a TAB character constant into your template. Thus, there has no attempt |
| 17079 |
been made to do this in a backwards-compatible way. |
| 17080 |
--------------------------------------------------------------------------- |
| 17081 |
Version 1.12.2 (RGer), 2006-02-15 |
| 17082 |
- fixed a bug in the RFC 3339 date formatter. An extra space was added |
| 17083 |
after the actual timestamp |
| 17084 |
- added support for providing high-precision RFC3339 timestamps for |
| 17085 |
(rsyslogd-)internally-generated messages |
| 17086 |
- very (!) experimental support for syslog-protocol internet draft |
| 17087 |
added (the draft is experimental, the code is solid ;)) |
| 17088 |
- added support for field-extracting in the property replacer |
| 17089 |
- enhanced the legacy-syslog parser so that it can interpret messages |
| 17090 |
that do not contain a TIMESTAMP |
| 17091 |
- fixed a bug that caused the default socket (usually /dev/log) to be |
| 17092 |
opened even when -o command line option was given |
| 17093 |
- fixed a bug in the Debian sample startup script - it caused rsyslogd |
| 17094 |
to listen to remote requests, which it shouldn't by default |
| 17095 |
--------------------------------------------------------------------------- |
| 17096 |
Version 1.12.1 (RGer), 2005-11-23 |
| 17097 |
- made multithreading work with BSD. Some signal-handling needed to be |
| 17098 |
restructured. Also, there might be a slight delay of up to 10 seconds |
| 17099 |
when huping and terminating rsyslogd under BSD |
| 17100 |
- fixed a bug where a NULL-pointer was passed to printf() in logmsg(). |
| 17101 |
- fixed a bug during "make install" where rc3195d was not installed |
| 17102 |
Thanks to Bennett Todd for spotting this. |
| 17103 |
- fixed a bug where rsyslogd dumped core when no TAG was found in the |
| 17104 |
received message |
| 17105 |
- enhanced message parser so that it can deal with missing hostnames |
| 17106 |
in many cases (may not be totally fail-safe) |
| 17107 |
- fixed a bug where internally-generated messages did not have the correct |
| 17108 |
TAG |
| 17109 |
--------------------------------------------------------------------------- |
| 17110 |
Version 1.12.0 (RGer), 2005-10-26 |
| 17111 |
- moved to a multi-threaded design. single-threading is still optionally |
| 17112 |
available. Multi-threading is experimental! |
| 17113 |
- fixed a potential race condition. In the original code, marking was done |
| 17114 |
by an alarm handler, which could lead to all sorts of bad things. This |
| 17115 |
has been changed now. See comments in syslogd.c/domark() for details. |
| 17116 |
- improved debug output for property-based filters |
| 17117 |
- not a code change, but: I have checked all exit()s to make sure that |
| 17118 |
none occurs once rsyslogd has started up. Even in unusual conditions |
| 17119 |
(like low-memory conditions) rsyslogd somehow remains active. Of course, |
| 17120 |
it might loose a message or two, but at least it does not abort and it |
| 17121 |
can also recover when the condition no longer persists. |
| 17122 |
- fixed a bug that could cause loss of the last message received |
| 17123 |
immediately before rsyslogd was terminated. |
| 17124 |
- added comments on thread-safety of global variables in syslogd.c |
| 17125 |
- fixed a small bug: spurios printf() when TCP syslog was used |
| 17126 |
- fixed a bug that causes rsyslogd to dump core on termination when one |
| 17127 |
of the selector lines did not receive a message during the run (very |
| 17128 |
unlikely) |
| 17129 |
- fixed an one-too-low memory allocation in the TCP sender. Could result |
| 17130 |
in rsyslogd dumping core. |
| 17131 |
- fixed a bug with regular expression support (thanks to Andres Riancho) |
| 17132 |
- a little bit of code restructuring (especially main(), which was |
| 17133 |
horribly large) |
| 17134 |
--------------------------------------------------------------------------- |
| 17135 |
Version 1.11.1 (RGer), 2005-10-19 |
| 17136 |
- support for BSD-style program name and host blocks |
| 17137 |
- added a new property "programname" that can be used in templates |
| 17138 |
- added ability to specify listen port for rfc3195d |
| 17139 |
- fixed a bug that rendered the "startswith" comparison operation |
| 17140 |
unusable. |
| 17141 |
- changed more functions to "static" storage class to help compiler |
| 17142 |
optimize (should have been static in the first place...) |
| 17143 |
- fixed a potential memory leak in the string buffer class destructor. |
| 17144 |
As the destructor was previously never called, the leak did not actually |
| 17145 |
appear. |
| 17146 |
- some internal restructuring in anticipation/preparation of minimal |
| 17147 |
multi-threading support |
| 17148 |
- rsyslogd still shares some code with the sysklogd project. Some patches |
| 17149 |
for this shared code have been brought over from the sysklogd CVS. |
| 17150 |
--------------------------------------------------------------------------- |
| 17151 |
Version 1.11.0 (RGer), 2005-10-12 |
| 17152 |
- support for receiving messages via RFC 3195; added rfc3195d for that |
| 17153 |
purpose |
| 17154 |
- added an additional guard to prevent rsyslogd from aborting when the |
| 17155 |
2gb file size limit is hit. While a user can configure rsyslogd to |
| 17156 |
handle such situations, it would abort if that was not done AND large |
| 17157 |
file support was not enabled (ok, this is hopefully an unlikely scenario) |
| 17158 |
- fixed a bug that caused additional Unix domain sockets to be incorrectly |
| 17159 |
processed - could lead to message loss in extreme cases |
| 17160 |
--------------------------------------------------------------------------- |
| 17161 |
Version 1.10.2 (RGer), 2005-09-27 |
| 17162 |
- added comparison operations in property-based filters: |
| 17163 |
* isequal |
| 17164 |
* startswith |
| 17165 |
- added ability to negate all property-based filter comparison operations |
| 17166 |
by adding a !-sign right in front of the operation name |
| 17167 |
- added the ability to specify remote senders for UDP and TCP |
| 17168 |
received messages. Allows to block all but well-known hosts |
| 17169 |
- changed the $-config line directives to be case-INsensitive |
| 17170 |
- new command line option -w added: "do not display warnings if messages |
| 17171 |
from disallowed senders are received" |
| 17172 |
- fixed a bug that caused rsyslogd to dump core when the compare value |
| 17173 |
was not quoted in property-based filters |
| 17174 |
- fixed a bug in the new CStr compare function which lead to invalid |
| 17175 |
results (fortunately, this function was not yet used widely) |
| 17176 |
- added better support for "debugging" rsyslog.conf property filters |
| 17177 |
(only if -d switch is given) |
| 17178 |
- changed some function definitions to static, which eventually enables |
| 17179 |
some compiler optimizations |
| 17180 |
- fixed a bug in MySQL code; when a SQL error occurred, rsyslogd could |
| 17181 |
run in a tight loop. This was due to invalid sequence of error reporting |
| 17182 |
and is now fixed. |
| 17183 |
--------------------------------------------------------------------------- |
| 17184 |
Version 1.10.1 (RGer), 2005-09-23 |
| 17185 |
- added the ability to execute a shell script as an action. |
| 17186 |
Thanks to Bjoern Kalkbrenner for providing the code! |
| 17187 |
- fixed a bug in the MySQL code; due to the bug the automatic one-time |
| 17188 |
retry after an error did not happen - this lead to error message in |
| 17189 |
cases where none should be seen (e.g. after a MySQL restart) |
| 17190 |
- fixed a security issue with SQL-escaping in conjunction with |
| 17191 |
non-(SQL-)standard MySQL features. |
| 17192 |
--------------------------------------------------------------------------- |
| 17193 |
Version 1.10.0 (RGer), 2005-09-20 |
| 17194 |
REMINDER: 1.10 is the first unstable version if the 1.x series! |
| 17195 |
- added the capability to filter on any property in selector lines |
| 17196 |
(not just facility and priority) |
| 17197 |
- changed stringbuf into a new counted string class |
| 17198 |
- added support for a "discard" action. If a selector line with |
| 17199 |
discard (~ character) is found, no selector lines *after* that |
| 17200 |
line will be processed. |
| 17201 |
- thanks to Andres Riancho, regular expression support has been |
| 17202 |
added to the template engine |
| 17203 |
- added the FROMHOST property in the template processor, which could |
| 17204 |
previously not be obtained. Thanks to Cristian Testa for pointing |
| 17205 |
this out and even providing a fix. |
| 17206 |
- added display of compile-time options to -v output |
| 17207 |
- performance improvement for production build - made some checks |
| 17208 |
to happen only during debug mode |
| 17209 |
- fixed a problem with compiling on SUSE and - while doing so - removed |
| 17210 |
the socket call to set SO_BSDCOMPAT in cases where it is obsolete. |
| 17211 |
--------------------------------------------------------------------------- |
| 17212 |
Version 1.0.4 (RGer), 2006-02-01 |
| 17213 |
- a small but important fix: the tcp receiver had two forgotten printf's |
| 17214 |
in it that caused a lot of unnecessary output to stdout. This was |
| 17215 |
important enough to justify a new release |
| 17216 |
--------------------------------------------------------------------------- |
| 17217 |
Version 1.0.3 (RGer), 2005-11-14 |
| 17218 |
- added an additional guard to prevent rsyslogd from aborting when the |
| 17219 |
2gb file size limit is hit. While a user can configure rsyslogd to |
| 17220 |
handle such situations, it would abort if that was not done AND large |
| 17221 |
file support was not enabled (ok, this is hopefully an unlikely scenario) |
| 17222 |
- fixed a bug that caused additional Unix domain sockets to be incorrectly |
| 17223 |
processed - could lead to message loss in extreme cases |
| 17224 |
- applied some patches available from the sysklogd project to code |
| 17225 |
shared from there |
| 17226 |
- fixed a bug that causes rsyslogd to dump core on termination when one |
| 17227 |
of the selector lines did not receive a message during the run (very |
| 17228 |
unlikely) |
| 17229 |
- fixed an one-too-low memory allocation in the TCP sender. Could result |
| 17230 |
in rsyslogd dumping core. |
| 17231 |
- fixed a bug in the TCP sender that caused the retry logic to fail |
| 17232 |
after an error or receiver overrun |
| 17233 |
- fixed a bug in init() that could lead to dumping core |
| 17234 |
- fixed a bug that could lead to dumping core when no HOSTNAME or no TAG |
| 17235 |
was present in the syslog message |
| 17236 |
--------------------------------------------------------------------------- |
| 17237 |
Version 1.0.2 (RGer), 2005-10-05 |
| 17238 |
- fixed an issue with MySQL error reporting. When an error occurred, |
| 17239 |
the MySQL driver went into an endless loop (at least in most cases). |
| 17240 |
--------------------------------------------------------------------------- |
| 17241 |
Version 1.0.1 (RGer), 2005-09-23 |
| 17242 |
- fixed a security issue with SQL-escaping in conjunction with |
| 17243 |
non-(SQL-)standard MySQL features. |
| 17244 |
--------------------------------------------------------------------------- |
| 17245 |
Version 1.0.0 (RGer), 2005-09-12 |
| 17246 |
- changed install doc to cover daily cron scripts - a trouble source |
| 17247 |
- added rc script for slackware (provided by Chris Elvidge - thanks!) |
| 17248 |
- fixed a really minor bug in usage() - the -r option was still |
| 17249 |
reported as without the port parameter |
| 17250 |
--------------------------------------------------------------------------- |
| 17251 |
Version 0.9.8 (RGer), 2005-09-05 |
| 17252 |
- made startup and shutdown message more consistent and included the |
| 17253 |
pid, so that they can be easier correlated. Used syslog-protocol |
| 17254 |
structured data format for this purpose. |
| 17255 |
- improved config info in startup message, now tells not only |
| 17256 |
if it is listening remote on udp, but also for tcp. Also includes |
| 17257 |
the port numbers. The previous startup message was misleading, because |
| 17258 |
it did not say "remote reception" if rsyslogd was only listening via |
| 17259 |
tcp (but not via udp). |
| 17260 |
- added a "how can you help" document to the doc set |
| 17261 |
--------------------------------------------------------------------------- |
| 17262 |
Version 0.9.7 (RGer), 2005-08-15 |
| 17263 |
- some of the previous doc files (like INSTALL) did not properly |
| 17264 |
reflect the changes to the build process and the new doc. Fixed |
| 17265 |
that. |
| 17266 |
- changed syslogd.c so that when compiled without database support, |
| 17267 |
an error message is displayed when a database action is detected |
| 17268 |
in the config file (previously this was used as an user rule ;)) |
| 17269 |
- fixed a bug in the os-specific Makefiles which caused MySQL |
| 17270 |
support to not be compiled, even if selected |
| 17271 |
--------------------------------------------------------------------------- |
| 17272 |
Version 0.9.6 (RGer), 2005-08-09 |
| 17273 |
- greatly enhanced documentation. Now available in html format in |
| 17274 |
the "doc" folder and FreeBSD. Finally includes an install howto. |
| 17275 |
- improved MySQL error messages a little - they now show up as log |
| 17276 |
messages, too (formerly only in debug mode) |
| 17277 |
- added the ability to specify the listen port for udp syslog. |
| 17278 |
WARNING: This introduces an incompatibility. Formerly, udp |
| 17279 |
syslog was enabled by the -r command line option. Now, it is |
| 17280 |
"-r [port]", which is consistent with the tcp listener. However, |
| 17281 |
just -r will now return an error message. |
| 17282 |
- added sample startup scripts for Debian and FreeBSD |
| 17283 |
- added support for easy feature selection in the makefile. Un- |
| 17284 |
fortunately, this also means I needed to spilt the make file |
| 17285 |
for different OS and distros. There are some really bad syntax |
| 17286 |
differences between FreeBSD and Linux make. |
| 17287 |
--------------------------------------------------------------------------- |
| 17288 |
Version 0.9.5 (RGer), 2005-08-01 |
| 17289 |
- the "semicolon bug" was actually not (fully) solved in 0.9.4. One |
| 17290 |
part of the bug was solved, but another still existed. This one |
| 17291 |
is fixed now, too. |
| 17292 |
- the "semicolon bug" actually turned out to be a more generic bug. |
| 17293 |
It appeared whenever an invalid template name was given. With some |
| 17294 |
selector actions, rsyslogd dumped core, with other it "just" had |
| 17295 |
a small resource leak with others all worked well. These anomalies |
| 17296 |
are now fixed. Note that they only appeared during system initialization |
| 17297 |
once the system was running, nothing bad happened. |
| 17298 |
- improved error reporting for template errors on startup. They are now |
| 17299 |
shown on the console and the start-up tty. Formerly, they were only |
| 17300 |
visible in debug mode. |
| 17301 |
- support for multiple instances of rsyslogd on a single machine added |
| 17302 |
- added new option "-o" --> omit local unix domain socket. This option |
| 17303 |
enables rsyslogd NOT to listen to the local socket. This is most |
| 17304 |
helpful when multiple instances of rsyslogd (or rsyslogd and another |
| 17305 |
syslogd) shall run on a single system. |
| 17306 |
- added new option "-i <pidfile>" which allows one to specify the pidfile. |
| 17307 |
This is needed when multiple instances of rsyslogd are to be run. |
| 17308 |
- the new project home page is now online at www.rsyslog.com |
| 17309 |
--------------------------------------------------------------------------- |
| 17310 |
Version 0.9.4 (RGer), 2005-07-25 |
| 17311 |
- finally added the TCP sender. It now supports non-blocking mode, no |
| 17312 |
longer disabling message reception during connect. As it is now, it |
| 17313 |
is usable in production. The code could be more sophisticated, but |
| 17314 |
I've kept it short in anticipation of the move to liblogging, which |
| 17315 |
will lead to the removal of the code just written ;) |
| 17316 |
- the "exiting on signal..." message still had the "syslogd" name in |
| 17317 |
it. Changed this to "rsyslogd", as we do not have a large user base |
| 17318 |
yet, this should pose no problem. |
| 17319 |
- fixed "the semicolon" bug. rsyslogd dumped core if a write-db action |
| 17320 |
was specified but no semicolon was given after the password (an empty |
| 17321 |
template was ok, but the semicolon needed to be present). |
| 17322 |
- changed a default for traditional output format. During testing, it |
| 17323 |
was seen that the timestamp written to file in default format was |
| 17324 |
the time of message reception, not the time specified in the TIMESTAMP |
| 17325 |
field of the message itself. Traditionally, the message TIMESTAMP is |
| 17326 |
used and this has been changed now. |
| 17327 |
--------------------------------------------------------------------------- |
| 17328 |
Version 0.9.3 (RGer), 2005-07-19 |
| 17329 |
- fixed a bug in the message parser. In June, the RFC 3164 timestamp |
| 17330 |
was not correctly parsed (yes, only in June and some other months, |
| 17331 |
see the code comment to learn why...) |
| 17332 |
- added the ability to specify the destination port when forwarding |
| 17333 |
syslog messages (both for TCP and UDP) |
| 17334 |
- added an very experimental TCP sender (activated by |
| 17335 |
@@machine:port in config). This is not yet for production use. If |
| 17336 |
the receiver is not alive, rsyslogd will wait quite some time until |
| 17337 |
the connection request times out, which most probably leads to |
| 17338 |
loss of incoming messages. |
| 17339 |
|
| 17340 |
--------------------------------------------------------------------------- |
| 17341 |
Version 0.9.2 (RGer), around 2005-07-06 |
| 17342 |
- I intended to change the maxsupported message size to 32k to |
| 17343 |
support IHE - but given the memory inefficiency in the usual use |
| 17344 |
cases, I have not done this. I have, however, included very |
| 17345 |
specific instructions on how to do this in the source code. I have |
| 17346 |
also done some testing with 32k messages, so you can change the |
| 17347 |
max size without taking too much risk. |
| 17348 |
- added a syslog/tcp receiver; we now can receive messages via |
| 17349 |
plain tcp, but we can still send only via UDP. The syslog/tcp |
| 17350 |
receiver is the primary enhancement of this release. |
| 17351 |
- slightly changed some error messages that contained a spurios \n at |
| 17352 |
the end of the line (which gives empty lines in your log...) |
| 17353 |
|
| 17354 |
--------------------------------------------------------------------------- |
| 17355 |
Version 0.9.1 (RGer) |
| 17356 |
- fixed code so that it compiles without errors under FreeBSD |
| 17357 |
- removed now unused function "allocate_log()" from syslogd.c |
| 17358 |
- changed the make file so that it contains more defines for |
| 17359 |
different environments (in the long term, we need a better |
| 17360 |
system for disabling/enabling features...) |
| 17361 |
- changed some printf's printing off_t types to %lld and |
| 17362 |
explicit (long long) casts. I tried to figure out the exact type, |
| 17363 |
but did not succeed in this. In the worst case, ultra-large peta- |
| 17364 |
byte files will now display funny informational messages on rollover, |
| 17365 |
something I think we can live with for the neersion 3.11.2 (rgerhards), 2008-02-?? |
| 17366 |
--------------------------------------------------------------------------- |
| 17367 |
Version 3.11.1 (rgerhards), 2008-02-12 |
| 17368 |
- SNMP trap sender added thanks to Andre Lorbach (omsnmp) |
| 17369 |
- added input-plugin interface specification in form of a (copy) template |
| 17370 |
input module |
| 17371 |
- applied documentation fix by Michael Biebl -- many thanks! |
| 17372 |
- bugfix: immark did not have MARK flags set... |
| 17373 |
- added x-info field to rsyslogd startup/shutdown message. Hopefully |
| 17374 |
points users to right location for further info (many don't even know |
| 17375 |
they run rsyslog ;)) |
| 17376 |
- bugfix: trailing ":" of tag was lost while parsing legacy syslog messages |
| 17377 |
without timestamp - thanks to Anders Blomdell for providing a patch! |
| 17378 |
- fixed a bug in stringbuf.c related to STRINGBUF_TRIM_ALLOCSIZE, which |
| 17379 |
wasn't supposed to be used with rsyslog. Put a warning message up that |
| 17380 |
tells this feature is not tested and probably not worth the effort. |
| 17381 |
Thanks to Anders Blomdell fro bringing this to our attention |
| 17382 |
- somewhat improved performance of string buffers |
| 17383 |
- fixed bug that caused invalid treatment of tabs (HT) in rsyslog.conf |
| 17384 |
- bugfix: setting for $EscapeControlCharactersOnReceive was not |
| 17385 |
properly initialized |
| 17386 |
- clarified usage of space-cc property replacer option |
| 17387 |
- improved abort diagnostic handler |
| 17388 |
- some initial effort for malloc/free runtime debugging support |
| 17389 |
- bugfix: using dynafile actions caused rsyslogd abort |
| 17390 |
- fixed minor man errors thanks to Michael Biebl |
| 17391 |
--------------------------------------------------------------------------- |
| 17392 |
Version 3.11.0 (rgerhards), 2008-01-31 |
| 17393 |
- implemented queued actions |
| 17394 |
- implemented simple rate limiting for actions |
| 17395 |
- implemented deliberate discarding of lower priority messages over higher |
| 17396 |
priority ones when a queue runs out of space |
| 17397 |
- implemented disk quotas for disk queues |
| 17398 |
- implemented the $ActionResumeRetryCount config directive |
| 17399 |
- added $ActionQueueFilename config directive |
| 17400 |
- added $ActionQueueSize config directive |
| 17401 |
- added $ActionQueueHighWaterMark config directive |
| 17402 |
- added $ActionQueueLowWaterMark config directive |
| 17403 |
- added $ActionQueueDiscardMark config directive |
| 17404 |
- added $ActionQueueDiscardSeverity config directive |
| 17405 |
- added $ActionQueueCheckpointInterval config directive |
| 17406 |
- added $ActionQueueType config directive |
| 17407 |
- added $ActionQueueWorkerThreads config directive |
| 17408 |
- added $ActionQueueTimeoutshutdown config directive |
| 17409 |
- added $ActionQueueTimeoutActionCompletion config directive |
| 17410 |
- added $ActionQueueTimeoutenQueue config directive |
| 17411 |
- added $ActionQueueTimeoutworkerThreadShutdown config directive |
| 17412 |
- added $ActionQueueWorkerThreadMinimumMessages config directive |
| 17413 |
- added $ActionQueueMaxFileSize config directive |
| 17414 |
- added $ActionQueueSaveonShutdown config directive |
| 17415 |
- addded $ActionQueueDequeueSlowdown config directive |
| 17416 |
- addded $MainMsgQueueDequeueSlowdown config directive |
| 17417 |
- bugfix: added forgotten docs to package |
| 17418 |
- improved debugging support |
| 17419 |
- fixed a bug that caused $MainMsgQueueCheckpointInterval to work incorrectly |
| 17420 |
- when a long-running action needs to be cancelled on shutdown, the message |
| 17421 |
that was processed by it is now preserved. This finishes support for |
| 17422 |
guaranteed delivery of messages (if the output supports it, of course) |
| 17423 |
- fixed bug in output module interface, see |
| 17424 |
http://sourceforge.net/tracker/index.php?func=detail&aid=1881008&group_id=123448&atid=696552 |
| 17425 |
- changed the ommysql output plugin so that the (lengthy) connection |
| 17426 |
initialization now takes place in message processing. This works much |
| 17427 |
better with the new queued action mode (fast startup) |
| 17428 |
- fixed a bug that caused a potential hang in file and fwd output module |
| 17429 |
varmojfekoj provided the patch - many thanks! |
| 17430 |
- bugfixed stream class offset handling on 32bit platforms |
| 17431 |
--------------------------------------------------------------------------- |
| 17432 |
Version 3.10.3 (rgerhards), 2008-01-28 |
| 17433 |
- fixed a bug with standard template definitions (not a big deal) - thanks |
| 17434 |
to varmojfekoj for spotting it |
| 17435 |
- run-time instrumentation added |
| 17436 |
- implemented disk-assisted queue mode, which enables on-demand disk |
| 17437 |
spooling if the queue's in-memory queue is exhausted |
| 17438 |
- implemented a dynamic worker thread pool for processing incoming |
| 17439 |
messages; workers are started and shut down as need arises |
| 17440 |
- implemented a run-time instrumentation debug package |
| 17441 |
- implemented the $MainMsgQueueSaveOnShutdown config directive |
| 17442 |
- implemented the $MainMsgQueueWorkerThreadMinimumMessages config directive |
| 17443 |
- implemented the $MainMsgQueueTimeoutWorkerThreadShutdown config directive |
| 17444 |
--------------------------------------------------------------------------- |
| 17445 |
Version 3.10.2 (rgerhards), 2008-01-14 |
| 17446 |
- added the ability to keep stop rsyslogd without the need to drain |
| 17447 |
the main message queue. In disk queue mode, rsyslog continues to |
| 17448 |
run from the point where it stopped. In case of a system failure, it |
| 17449 |
continues to process messages from the last checkpoint. |
| 17450 |
- fixed a bug that caused a segfault on startup when no $WorkDir directive |
| 17451 |
was specified in rsyslog.conf |
| 17452 |
- provided more fine-grain control over shutdown timeouts and added a |
| 17453 |
way to specify the enqueue timeout when the main message queue is full |
| 17454 |
- implemented $MainMsgQueueCheckpointInterval config directive |
| 17455 |
- implemented $MainMsgQueueTimeoutActionCompletion config directive |
| 17456 |
- implemented $MainMsgQueueTimeoutEnqueue config directive |
| 17457 |
- implemented $MainMsgQueueTimeoutShutdown config directive |
| 17458 |
--------------------------------------------------------------------------- |
| 17459 |
Version 3.10.1 (rgerhards), 2008-01-10 |
| 17460 |
- implemented the "disk" queue mode. However, it currently is of very |
| 17461 |
limited use, because it does not support persistence over rsyslogd |
| 17462 |
runs. So when rsyslogd is stopped, the queue is drained just as with |
| 17463 |
the in-memory queue modes. Persistent queues will be a feature of |
| 17464 |
the next release. |
| 17465 |
- performance-optimized string class, should bring an overall improvement |
| 17466 |
- fixed a memory leak in imudp -- thanks to varmojfekoj for the patch |
| 17467 |
- fixed a race condition that could lead to a rsyslogd hang when during |
| 17468 |
HUP or termination |
| 17469 |
- done some doc updates |
| 17470 |
- added $WorkDirectory config directive |
| 17471 |
- added $MainMsgQueueFileName config directive |
| 17472 |
- added $MainMsgQueueMaxFileSize config directive |
| 17473 |
--------------------------------------------------------------------------- |
| 17474 |
Version 3.10.0 (rgerhards), 2008-01-07 |
| 17475 |
- implemented input module interface and initial input modules |
| 17476 |
- enhanced threading for input modules (each on its own thread now) |
| 17477 |
- ability to bind UDP listeners to specific local interfaces/ports and |
| 17478 |
ability to run multiple of them concurrently |
| 17479 |
- added ability to specify listen IP address for UDP syslog server |
| 17480 |
- license changed to GPLv3 |
| 17481 |
- mark messages are now provided by loadble module immark |
| 17482 |
- rklogd is no longer provided. Its functionality has now been taken over |
| 17483 |
by imklog, a loadable input module. This offers a much better integration |
| 17484 |
into rsyslogd and makes sure that the kernel logger process is brought |
| 17485 |
up and down at the appropriate times |
| 17486 |
- enhanced $IncludeConfig directive to support wildcard characters |
| 17487 |
(thanks to Michael Biebl) |
| 17488 |
- all inputs are now implemented as loadable plugins |
| 17489 |
- enhanced threading model: each input module now runs on its own thread |
| 17490 |
- enhanced message queue which now supports different queueing methods |
| 17491 |
(among others, this can be used for performance fine-tuning) |
| 17492 |
- added a large number of new configuration directives for the new |
| 17493 |
input modules |
| 17494 |
- enhanced multi-threading utilizing a worker thread pool for the |
| 17495 |
main message queue |
| 17496 |
- compilation without pthreads is no longer supported |
| 17497 |
- much cleaner code due to new objects and removal of single-threading |
| 17498 |
mode |
| 17499 |
--------------------------------------------------------------------------- |
| 17500 |
Version 2.0.1 STABLE (rgerhards), 2008-01-24 |
| 17501 |
- fixed a bug in integer conversion - but this function was never called, |
| 17502 |
so it is not really a useful bug fix ;) |
| 17503 |
- fixed a bug with standard template definitions (not a big deal) - thanks |
| 17504 |
to varmojfekoj for spotting it |
| 17505 |
- fixed a bug that caused a potential hang in file and fwd output module |
| 17506 |
varmojfekoj provided the patch - many thanks! |
| 17507 |
--------------------------------------------------------------------------- |
| 17508 |
Version 2.0.0 STABLE (rgerhards), 2008-01-02 |
| 17509 |
- re-release of 1.21.2 as STABLE with no modifications except some |
| 17510 |
doc updates |
| 17511 |
--------------------------------------------------------------------------- |
| 17512 |
Version 1.21.2 (rgerhards), 2007-12-28 |
| 17513 |
- created a gss-api output module. This keeps GSS-API code and |
| 17514 |
TCP/UDP code separated. It is also important for forward- |
| 17515 |
compatibility with v3. Please note that this change breaks compatibility |
| 17516 |
with config files created for 1.21.0 and 1.21.1 - this was considered |
| 17517 |
acceptable. |
| 17518 |
- fixed an error in forwarding retry code (could lead to message corruption |
| 17519 |
but surfaced very seldom) |
| 17520 |
- increased portability for older platforms (AI_NUMERICSERV moved) |
| 17521 |
- removed socket leak in omfwd.c |
| 17522 |
- cross-platform patch for GSS-API compile problem on some platforms |
| 17523 |
thanks to darix for the patch! |
| 17524 |
--------------------------------------------------------------------------- |
| 17525 |
Version 1.21.1 (rgerhards), 2007-12-23 |
| 17526 |
- small doc fix for $IncludeConfig |
| 17527 |
- fixed a bug in llDestroy() |
| 17528 |
- bugfix: fixing memory leak when message queue is full and during |
| 17529 |
parsing. Thanks to varmojfekoj for the patch. |
| 17530 |
- bugfix: when compiled without network support, unix sockets were |
| 17531 |
not properly closed |
| 17532 |
- bugfix: memory leak in cfsysline.c/doGetWord() fixed |
| 17533 |
--------------------------------------------------------------------------- |
| 17534 |
Version 1.21.0 (rgerhards), 2007-12-19 |
| 17535 |
- GSS-API support for syslog/TCP connections was added. Thanks to |
| 17536 |
varmojfekoj for providing the patch with this functionality |
| 17537 |
- code cleanup |
| 17538 |
- enhanced $IncludeConfig directive to support wildcard filenames |
| 17539 |
- changed some multithreading synchronization |
| 17540 |
--------------------------------------------------------------------------- |
| 17541 |
Version 1.20.1 (rgerhards), 2007-12-12 |
| 17542 |
- corrected a debug setting that survived release. Caused TCP connections |
| 17543 |
to be retried unnecessarily often. |
| 17544 |
- When a hostname ACL was provided and DNS resolution for that name failed, |
| 17545 |
ACL processing was stopped at that point. Thanks to mildew for the patch. |
| 17546 |
Fedora Bugzilla: http://bugzilla.redhat.com/show_bug.cgi?id=395911 |
| 17547 |
- fixed a potential race condition, see link for details: |
| 17548 |
http://rgerhards.blogspot.com/2007/12/rsyslog-race-condition.html |
| 17549 |
Note that the probability of problems from this bug was very remote |
| 17550 |
- fixed a memory leak that happened when PostgreSQL date formats were |
| 17551 |
used |
| 17552 |
--------------------------------------------------------------------------- |
| 17553 |
Version 1.20.0 (rgerhards), 2007-12-07 |
| 17554 |
- an output module for postgres databases has been added. Thanks to |
| 17555 |
sur5r for contributing this code |
| 17556 |
- unloading dynamic modules has been cleaned up, we now have a |
| 17557 |
real implementation and not just a dummy "good enough for the time |
| 17558 |
being". |
| 17559 |
- enhanced platform independence - thanks to Bartosz Kuzma and Michael |
| 17560 |
Biebl for their very useful contributions |
| 17561 |
- some general code cleanup (including warnings on 64 platforms, only) |
| 17562 |
--------------------------------------------------------------------------- |
| 17563 |
Version 1.19.12 (rgerhards), 2007-12-03 |
| 17564 |
- cleaned up the build system (thanks to Michael Biebl for the patch) |
| 17565 |
- fixed a bug where ommysql was still not compiled with -pthread option |
| 17566 |
--------------------------------------------------------------------------- |
| 17567 |
Version 1.19.11 (rgerhards), 2007-11-29 |
| 17568 |
- applied -pthread option to build when building for multi-threading mode |
| 17569 |
hopefully solves an issue with segfaulting |
| 17570 |
--------------------------------------------------------------------------- |
| 17571 |
Version 1.19.10 (rgerhards), 2007-10-19 |
| 17572 |
- introduced the new ":modulename:" syntax for calling module actions |
| 17573 |
in selector lines; modified ommysql to support it. This is primarily |
| 17574 |
an aid for further modules and a prerequisite to actually allow third |
| 17575 |
party modules to be created. |
| 17576 |
- minor fix in slackware startup script, "-r 0" is now "-r0" |
| 17577 |
- updated rsyslogd doc set man page; now in html format |
| 17578 |
- undid creation of a separate thread for the main loop -- this did not |
| 17579 |
turn out to be needed or useful, so reduce complexity once again. |
| 17580 |
- added doc fixes provided by Michael Biebl - thanks |
| 17581 |
--------------------------------------------------------------------------- |
| 17582 |
Version 1.19.9 (rgerhards), 2007-10-12 |
| 17583 |
- now packaging system which again contains all components in a single |
| 17584 |
tarball |
| 17585 |
- modularized main() a bit more, resulting in less complex code |
| 17586 |
- experimentally added an additional thread - will see if that affects |
| 17587 |
the segfault bug we experience on some platforms. Note that this change |
| 17588 |
is scheduled to be removed again later. |
| 17589 |
--------------------------------------------------------------------------- |
| 17590 |
Version 1.19.8 (rgerhards), 2007-09-27 |
| 17591 |
- improved repeated message processing |
| 17592 |
- applied patch provided by varmojfekoj to support building ommysql |
| 17593 |
in its own way (now also resides in a plugin subdirectory); |
| 17594 |
ommysql is now a separate package |
| 17595 |
- fixed a bug in cvthname() that lead to message loss if part |
| 17596 |
of the source hostname would have been dropped |
| 17597 |
- created some support for distributing ommysql together with the |
| 17598 |
main rsyslog package. I need to re-think it in the future, but |
| 17599 |
for the time being the current mode is best. I now simply include |
| 17600 |
one additional tarball for ommysql inside the main distribution. |
| 17601 |
I look forward to user feedback on how this should be done best. In the |
| 17602 |
long term, a separate project should be spawend for ommysql, but I'd |
| 17603 |
like to do that only after the plugin interface is fully stable (what |
| 17604 |
it is not yet). |
| 17605 |
--------------------------------------------------------------------------- |
| 17606 |
Version 1.19.7 (rgerhards), 2007-09-25 |
| 17607 |
- added code to handle situations where senders send us messages ending with |
| 17608 |
a NUL character. It is now simply removed. This also caused trailing LF |
| 17609 |
reduction to fail, when it was followed by such a NUL. This is now also |
| 17610 |
handled. |
| 17611 |
- replaced some non-thread-safe function calls by their thread-safe |
| 17612 |
counterparts |
| 17613 |
- fixed a minor memory leak that occurred when the %APPNAME% property was |
| 17614 |
used (I think nobody used that in practice) |
| 17615 |
- fixed a bug that caused signal handlers in cvthname() not to be restored when |
| 17616 |
a malicious pointer record was detected and processing of the message been |
| 17617 |
stopped for that reason (this should be really rare and can not be related |
| 17618 |
to the segfault bug we are hunting). |
| 17619 |
- fixed a bug in cvthname that lead to passing a wrong parameter - in |
| 17620 |
practice, this had no impact. |
| 17621 |
- general code cleanup (e.g. compiler warnings, comments) |
| 17622 |
--------------------------------------------------------------------------- |
| 17623 |
Version 1.19.6 (rgerhards), 2007-09-11 |
| 17624 |
- applied patch by varmojfekoj to change signal handling to the new |
| 17625 |
sigaction API set (replacing the depreciated signal() calls and its |
| 17626 |
friends. |
| 17627 |
- fixed a bug that in --enable-debug mode caused an assertion when the |
| 17628 |
discard action was used |
| 17629 |
- cleaned up compiler warnings |
| 17630 |
- applied patch by varmojfekoj to FIX a bug that could cause |
| 17631 |
segfaults if empty properties were processed using modifying |
| 17632 |
options (e.g. space-cc, drop-cc) |
| 17633 |
- fixed man bug: rsyslogd supports -l option |
| 17634 |
--------------------------------------------------------------------------- |
| 17635 |
Version 1.19.5 (rgerhards), 2007-09-07 |
| 17636 |
- changed part of the CStr interface so that better error tracking |
| 17637 |
is provided and the calling sequence is more intuitive (there were |
| 17638 |
invalid calls based on a too-weird interface) |
| 17639 |
- (hopefully) fixed some remaining bugs rooted in wrong use of |
| 17640 |
the CStr class. These could lead to program abort. |
| 17641 |
- applied patch by varmojfekoj two fix two potential segfault situations |
| 17642 |
- added $ModDir config directive |
| 17643 |
- modified $ModLoad so that an absolute path may be specified as |
| 17644 |
module name (e.g. /rsyslog/ommysql.so) |
| 17645 |
--------------------------------------------------------------------------- |
| 17646 |
Version 1.19.4 (rgerhards/varmojfekoj), 2007-09-04 |
| 17647 |
- fixed a number of small memory leaks - thanks varmojfekoj for patching |
| 17648 |
- fixed an issue with CString class that could lead to rsyslog abort |
| 17649 |
in tplToString() - thanks varmojfekoj for patching |
| 17650 |
- added a man-version of the config file documentation - thanks to Michel |
| 17651 |
Samia for providing the man file |
| 17652 |
- fixed bug: a template like this causes an infinite loop: |
| 17653 |
$template opts,"%programname:::a,b%" |
| 17654 |
thanks varmojfekoj for the patch |
| 17655 |
- fixed bug: case changing options crash freeing the string pointer |
| 17656 |
because they modify it: $template opts2,"%programname::1:lowercase%" |
| 17657 |
thanks varmojfekoj for the patch |
| 17658 |
--------------------------------------------------------------------------- |
| 17659 |
Version 1.19.3 (mmeckelein/varmojfekoj), 2007-08-31 |
| 17660 |
- small mem leak fixed (after calling parseSelectorAct) - Thx varmojfekoj |
| 17661 |
- documentation section "Regular File" und "Blocks" updated |
| 17662 |
- solved an issue with dynamic file generation - Once again many thanks |
| 17663 |
to varmojfekoj |
| 17664 |
- the negative selector for program name filter (Blocks) does not work as |
| 17665 |
expected - Thanks varmojfekoj for patching |
| 17666 |
- added forwarding information to sysklogd (requires special template) |
| 17667 |
to config doc |
| 17668 |
--------------------------------------------------------------------------- |
| 17669 |
Version 1.19.2 (mmeckelein/varmojfekoj), 2007-08-28 |
| 17670 |
- a specifically formed message caused a segfault - Many thanks varmojfekoj |
| 17671 |
for providing a patch |
| 17672 |
- a typo and a weird condition are fixed in msg.c - Thanks again |
| 17673 |
varmojfekoj |
| 17674 |
- on file creation the file was always owned by root:root. This is fixed |
| 17675 |
now - Thanks ypsa for solving this issue |
| 17676 |
--------------------------------------------------------------------------- |
| 17677 |
Version 1.19.1 (mmeckelein), 2007-08-22 |
| 17678 |
- a bug that caused a high load when a TCP/UDP connection was closed is |
| 17679 |
fixed now - Thanks mildew for solving this issue |
| 17680 |
- fixed a bug which caused a segfault on reinit - Thx varmojfekoj for the |
| 17681 |
patch |
| 17682 |
- changed the hardcoded module path "/lib/rsyslog" to $(pkglibdir) in order |
| 17683 |
to avoid trouble e.g. on 64 bit platforms (/lib64) - many thanks Peter |
| 17684 |
Vrabec and darix, both provided a patch for solving this issue |
| 17685 |
- enhanced the unloading of modules - thanks again varmojfekoj |
| 17686 |
- applied a patch from varmojfekoj which fixes various little things in |
| 17687 |
MySQL output module |
| 17688 |
--------------------------------------------------------------------------- |
| 17689 |
Version 1.19.0 (varmojfekoj/rgerhards), 2007-08-16 |
| 17690 |
- integrated patch from varmojfekoj to make the mysql module a loadable one |
| 17691 |
many thanks for the patch, MUCH appreciated |
| 17692 |
--------------------------------------------------------------------------- |
| 17693 |
Version 1.18.2 (rgerhards), 2007-08-13 |
| 17694 |
- fixed a bug in outchannel code that caused templates to be incorrectly |
| 17695 |
parsed |
| 17696 |
- fixed a bug in ommysql that caused a wrong ";template" missing message |
| 17697 |
- added some code for unloading modules; not yet fully complete (and we do |
| 17698 |
not yet have loadable modules, so this is no problem) |
| 17699 |
- removed debian subdirectory by request of a debian packager (this is a special |
| 17700 |
subdir for debian and there is also no point in maintaining it when there |
| 17701 |
is a debian package available - so I gladly did this) in some cases |
| 17702 |
- improved overall doc quality (some pages were quite old) and linked to |
| 17703 |
more of the online resources. |
| 17704 |
- improved /contrib/delete_mysql script by adding a host option and some |
| 17705 |
other minor modifications |
| 17706 |
--------------------------------------------------------------------------- |
| 17707 |
Version 1.18.1 (rgerhards), 2007-08-08 |
| 17708 |
- applied a patch from varmojfekoj which solved a potential segfault |
| 17709 |
of rsyslogd on HUP |
| 17710 |
- applied patch from Michel Samia to fix compilation when the pthreads |
| 17711 |
feature is disabled |
| 17712 |
- some code cleanup (moved action object to its own file set) |
| 17713 |
- add config directive $MainMsgQueueSize, which now allows one to configure the |
| 17714 |
queue size dynamically |
| 17715 |
- all compile-time settings are now shown in rsyslogd -v, not just the |
| 17716 |
active ones |
| 17717 |
- enhanced performance a little bit more |
| 17718 |
- added config file directive $ActionResumeInterval |
| 17719 |
- fixed a bug that prevented compilation under debian sid |
| 17720 |
- added a contrib directory for user-contributed useful things |
| 17721 |
--------------------------------------------------------------------------- |
| 17722 |
Version 1.18.0 (rgerhards), 2007-08-03 |
| 17723 |
- rsyslog now supports fallback actions when an action did not work. This |
| 17724 |
is a great feature e.g. for backup database servers or backup syslog |
| 17725 |
servers |
| 17726 |
- modified rklogd to only change the console log level if -c is specified |
| 17727 |
- added feature to use multiple actions inside a single selector |
| 17728 |
- implemented $ActionExecOnlyWhenPreviousIsSuspended config directive |
| 17729 |
- error messages during startup are now spit out to the configured log |
| 17730 |
destinations |
| 17731 |
--------------------------------------------------------------------------- |
| 17732 |
Version 1.17.6 (rgerhards), 2007-08-01 |
| 17733 |
- continued to work on output module modularization - basic stage of |
| 17734 |
this work is now FINISHED |
| 17735 |
- fixed bug in OMSRcreate() - always returned SR_RET_OK |
| 17736 |
- fixed a bug that caused ommysql to always complain about missing |
| 17737 |
templates |
| 17738 |
- fixed a mem leak in OMSRdestruct - freeing the object itself was |
| 17739 |
forgotten - thanks to varmojfekoj for the patch |
| 17740 |
- fixed a memory leak in syslogd/init() that happened when the config |
| 17741 |
file could not be read - thanks to varmojfekoj for the patch |
| 17742 |
- fixed insufficient memory allocation in addAction() and its helpers. |
| 17743 |
The initial fix and idea was developed by mildew, I fine-tuned |
| 17744 |
it a bit. Thanks a lot for the fix, I'd probably had pulled out my |
| 17745 |
hair to find the bug... |
| 17746 |
- added output of config file line number when a parsing error occurred |
| 17747 |
- fixed bug in objomsr.c that caused program to abort in debug mode with |
| 17748 |
an invalid assertion (in some cases) |
| 17749 |
- fixed a typo that caused the default template for MySQL to be wrong. |
| 17750 |
thanks to mildew for catching this. |
| 17751 |
- added configuration file command $DebugPrintModuleList and |
| 17752 |
$DebugPrintCfSysLineHandlerList |
| 17753 |
- fixed an invalid value for the MARK timer - unfortunately, there was |
| 17754 |
a testing aid left in place. This resulted in quite frequent MARK messages |
| 17755 |
- added $IncludeConfig config directive |
| 17756 |
- applied a patch from mildew to prevent rsyslogd from freezing under heavy |
| 17757 |
load. This could happen when the queue was full. Now, we drop messages |
| 17758 |
but rsyslogd remains active. |
| 17759 |
--------------------------------------------------------------------------- |
| 17760 |
Version 1.17.5 (rgerhards), 2007-07-30 |
| 17761 |
- continued to work on output module modularization |
| 17762 |
- fixed a missing file bug - thanks to Andrea Montanari for reporting |
| 17763 |
this problem |
| 17764 |
- fixed a problem with shutting down the worker thread and freeing the |
| 17765 |
selector_t list - this caused messages to be lost, because the |
| 17766 |
message queue was not properly drained before the selectors got |
| 17767 |
destroyed. |
| 17768 |
--------------------------------------------------------------------------- |
| 17769 |
Version 1.17.4 (rgerhards), 2007-07-27 |
| 17770 |
- continued to work on output module modularization |
| 17771 |
- fixed a situation where rsyslogd could create zombie processes |
| 17772 |
thanks to mildew for the patch |
| 17773 |
- applied patch from Michel Samia to fix compilation when NOT |
| 17774 |
compiled for pthreads |
| 17775 |
--------------------------------------------------------------------------- |
| 17776 |
Version 1.17.3 (rgerhards), 2007-07-25 |
| 17777 |
- continued working on output module modularization |
| 17778 |
- fixed a bug that caused rsyslogd to segfault on exit (and |
| 17779 |
probably also on HUP), when there was an unsent message in a selector |
| 17780 |
that required forwarding and the dns lookup failed for that selector |
| 17781 |
(yes, it was pretty unlikely to happen;)) |
| 17782 |
thanks to varmojfekoj <[email protected]> for the patch |
| 17783 |
- fixed a memory leak in config file parsing and die() |
| 17784 |
thanks to varmojfekoj <[email protected]> for the patch |
| 17785 |
- rsyslogd now checks on startup if it is capable to perform any work |
| 17786 |
at all. If it cant, it complains and terminates |
| 17787 |
thanks to Michel Samia for providing the patch! |
| 17788 |
- fixed a small memory leak when HUPing syslogd. The allowed sender |
| 17789 |
list now gets freed. thanks to mildew for the patch. |
| 17790 |
- changed the way error messages in early startup are logged. They |
| 17791 |
now do no longer use the syslogd code directly but are rather |
| 17792 |
send to stderr. |
| 17793 |
--------------------------------------------------------------------------- |
| 17794 |
Version 1.17.2 (rgerhards), 2007-07-23 |
| 17795 |
- made the port part of the -r option optional. Needed for backward |
| 17796 |
compatibility with sysklogd |
| 17797 |
- replaced system() calls with something more reasonable. Please note that |
| 17798 |
this might break compatibility with some existing configuration files. |
| 17799 |
We accept this in favor of the gained security. |
| 17800 |
- removed a memory leak that could occur if timegenerated was used in |
| 17801 |
RFC 3164 format in templates |
| 17802 |
- did some preparation in msg.c for advanced multithreading - placed the |
| 17803 |
hooks, but not yet any active code |
| 17804 |
- worked further on modularization |
| 17805 |
- added $ModLoad MySQL (dummy) config directive |
| 17806 |
- added DropTrailingLFOnReception config directive |
| 17807 |
--------------------------------------------------------------------------- |
| 17808 |
Version 1.17.1 (rgerhards), 2007-07-20 |
| 17809 |
- fixed a bug that caused make install to install rsyslogd and rklogd under |
| 17810 |
the wrong names |
| 17811 |
- fixed bug that caused $AllowedSenders to handle IPv6 scopes incorrectly; |
| 17812 |
also fixed but that could garble $AllowedSender wildcards. Thanks to |
| 17813 |
[email protected] for the patch |
| 17814 |
- minor code cleanup - thanks to Peter Vrabec for the patch |
| 17815 |
- fixed minimal memory leak on HUP (caused by templates) |
| 17816 |
thanks to varmojfekoj <[email protected]> for the patch |
| 17817 |
- fixed another memory leak on HUPing and on exiting rsyslogd |
| 17818 |
again thanks to varmojfekoj <[email protected]> for the patch |
| 17819 |
- code cleanup (removed compiler warnings) |
| 17820 |
- fixed portability bug in configure.ac - thanks to Bartosz Kuźma for patch |
| 17821 |
- moved msg object into its own file set |
| 17822 |
- added the capability to continue trying to write log files when the |
| 17823 |
file system is full. Functionality based on patch by Martin Schulze |
| 17824 |
to sysklogd package. |
| 17825 |
--------------------------------------------------------------------------- |
| 17826 |
Version 1.17.0 (RGer), 2007-07-17 |
| 17827 |
- added $RepeatedLineReduction config parameter |
| 17828 |
- added $EscapeControlCharactersOnReceive config parameter |
| 17829 |
- added $ControlCharacterEscapePrefix config parameter |
| 17830 |
- added $DirCreateMode config parameter |
| 17831 |
- added $CreateDirs config parameter |
| 17832 |
- added $DebugPrintTemplateList config parameter |
| 17833 |
- added $ResetConfigVariables config parameter |
| 17834 |
- added $FileOwner config parameter |
| 17835 |
- added $FileGroup config parameter |
| 17836 |
- added $DirOwner config parameter |
| 17837 |
- added $DirGroup config parameter |
| 17838 |
- added $FailOnChownFailure config parameter |
| 17839 |
- added regular expression support to the filter engine |
| 17840 |
thanks to Michel Samia for providing the patch! |
| 17841 |
- enhanced $AllowedSender functionality. Credits to [email protected] for |
| 17842 |
the patch doing that |
| 17843 |
- added IPv6 support |
| 17844 |
- allowed DNS hostnames |
| 17845 |
- allowed DNS wildcard names |
| 17846 |
- added new option $DropMsgsWithMaliciousDnsPTRRecords |
| 17847 |
- added autoconf so that rfc3195d, rsyslogd and klogd are stored to /sbin |
| 17848 |
- added capability to auto-create directories with dynaFiles |
| 17849 |
--------------------------------------------------------------------------- |
| 17850 |
Version 1.16.0 (RGer/Peter Vrabec), 2007-07-13 - The Friday, 13th Release ;) |
| 17851 |
- build system switched to autotools |
| 17852 |
- removed SYSV preprocessor macro use, replaced with autotools equivalents |
| 17853 |
- fixed a bug that caused rsyslogd to segfault when TCP listening was |
| 17854 |
disabled and it terminated |
| 17855 |
- added new properties "syslogfacility-text" and "syslogseverity-text" |
| 17856 |
thanks to varmojfekoj <[email protected]> for the patch |
| 17857 |
- added the -x option to disable hostname dns resolution |
| 17858 |
thanks to varmojfekoj <[email protected]> for the patch |
| 17859 |
- begun to better modularize syslogd.c - this is an ongoing project; moved |
| 17860 |
type definitions to a separate file |
| 17861 |
- removed some now-unused fields from struct filed |
| 17862 |
- move file size limit fields in struct field to the "right spot" (the file |
| 17863 |
writing part of the union - f_un.f_file) |
| 17864 |
- subdirectories linux and solaris are no longer part of the distribution |
| 17865 |
package. This is not because we cease support for them, but there are no |
| 17866 |
longer any files in them after the move to autotools |
| 17867 |
--------------------------------------------------------------------------- |
| 17868 |
Version 1.15.1 (RGer), 2007-07-10 |
| 17869 |
- fixed a bug that caused a dynaFile selector to stall when there was |
| 17870 |
an open error with one file |
| 17871 |
- improved template processing for dynaFiles; templates are now only |
| 17872 |
looked up during initialization - speeds up processing |
| 17873 |
- optimized memory layout in struct filed when compiled with MySQL |
| 17874 |
support |
| 17875 |
- fixed a bug that caused compilation without SYSLOG_INET to fail |
| 17876 |
- re-enabled the "last message repeated n times" feature. This |
| 17877 |
feature was not taken care of while rsyslogd evolved from sysklogd |
| 17878 |
and it was more or less defunct. Now it is fully functional again. |
| 17879 |
- added system properties: $NOW, $YEAR, $MONTH, $DAY, $HOUR, $MINUTE |
| 17880 |
- fixed a bug in iovAsString() that caused a memory leak under stress |
| 17881 |
conditions (most probably memory shortage). This was unlikely to |
| 17882 |
ever happen, but it doesn't hurt doing it right |
| 17883 |
- cosmetic: defined type "uchar", change all unsigned chars to uchar |
| 17884 |
--------------------------------------------------------------------------- |
| 17885 |
Version 1.15.0 (RGer), 2007-07-05 |
| 17886 |
- added ability to dynamically generate file names based on templates |
| 17887 |
and thus properties. This was a much-requested feature. It makes |
| 17888 |
life easy when it e.g. comes to splitting files based on the sender |
| 17889 |
address. |
| 17890 |
- added $umask and $FileCreateMode config file directives |
| 17891 |
- applied a patch from Bartosz Kuzma to compile cleanly under NetBSD |
| 17892 |
- checks for extra (unexpected) characters in system config file lines |
| 17893 |
have been added |
| 17894 |
- added IPv6 documentation - was accidentally missing from CVS |
| 17895 |
- begun to change char to unsigned char |
| 17896 |
--------------------------------------------------------------------------- |
| 17897 |
Version 1.14.2 (RGer), 2007-07-03 |
| 17898 |
** this release fixes all known nits with IPv6 ** |
| 17899 |
- restored capability to do /etc/service lookup for "syslog" |
| 17900 |
service when -r 0 was given |
| 17901 |
- documented IPv6 handling of syslog messages |
| 17902 |
- integrate patch from Bartosz Kuźma to make rsyslog compile under |
| 17903 |
Solaris again (the patch replaced a strndup() call, which is not |
| 17904 |
available under Solaris |
| 17905 |
- improved debug logging when waiting on select |
| 17906 |
- updated rsyslogd man page with new options (-46A) |
| 17907 |
--------------------------------------------------------------------------- |
| 17908 |
Version 1.14.1 (RGer/Peter Vrabec), 2007-06-29 |
| 17909 |
- added Peter Vrabec's patch for IPv6 TCP |
| 17910 |
- prefixed all messages send to stderr in rsyslogd with "rsyslogd: " |
| 17911 |
--------------------------------------------------------------------------- |
| 17912 |
Version 1.14.0 (RGer/Peter Vrabec), 2007-06-28 |
| 17913 |
- Peter Vrabec provided IPv6 for rsyslog, so we are now IPv6 enabled |
| 17914 |
IPv6 Support is currently for UDP only, TCP is to come soon. |
| 17915 |
AllowedSender configuration does not yet work for IPv6. |
| 17916 |
- fixed code in iovCreate() that broke C's strict aliasing rules |
| 17917 |
- fixed some char/unsigned char differences that forced the compiler |
| 17918 |
to spit out warning messages |
| 17919 |
- updated the Red Hat init script to fix a known issue (thanks to |
| 17920 |
Peter Vrabec) |
| 17921 |
--------------------------------------------------------------------------- |
| 17922 |
Version 1.13.5 (RGer), 2007-06-22 |
| 17923 |
- made the TCP session limit configurable via command line switch |
| 17924 |
now -t <port>,<max sessions> |
| 17925 |
- added man page for rklogd(8) (basically a copy from klogd, but now |
| 17926 |
there is one...) |
| 17927 |
- fixed a bug that caused internal messages (e.g. rsyslogd startup) to |
| 17928 |
appear without a tag. |
| 17929 |
- removed a minor memory leak that occurred when TAG processing requalified |
| 17930 |
a HOSTNAME to be a TAG (and a TAG already was set). |
| 17931 |
- removed potential small memory leaks in MsgSet***() functions. There |
| 17932 |
would be a leak if a property was re-set, something that happened |
| 17933 |
extremely seldom. |
| 17934 |
--------------------------------------------------------------------------- |
| 17935 |
Version 1.13.4 (RGer), 2007-06-18 |
| 17936 |
- added a new property "PRI-text", which holds the PRI field in |
| 17937 |
textual form (e.g. "syslog.info") |
| 17938 |
- added alias "syslogseverity" for "syslogpriority", which is a |
| 17939 |
misleading property name that needs to stay for historical |
| 17940 |
reasons (and backward-compatibility) |
| 17941 |
- added doc on how to record PRI value in log file |
| 17942 |
- enhanced signal handling in klogd, including removal of an unsafe |
| 17943 |
call to the logging system during signal handling |
| 17944 |
--------------------------------------------------------------------------- |
| 17945 |
Version 1.13.3 (RGer), 2007-06-15 |
| 17946 |
- create a version of syslog.c from scratch. This is now |
| 17947 |
- highly optimized for rsyslog |
| 17948 |
- removes an incompatible license problem as the original |
| 17949 |
version had a BSD license with advertising clause |
| 17950 |
- fixed in the regard that rklogd will continue to work when |
| 17951 |
rsyslogd has been restarted (the original version, as well |
| 17952 |
as sysklogd, will remain silent then) |
| 17953 |
- solved an issue with an extra NUL char at message end that the |
| 17954 |
original version had |
| 17955 |
- applied some changes to klogd to care for the new interface |
| 17956 |
- fixed a bug in syslogd.c which prevented compiling under debian |
| 17957 |
--------------------------------------------------------------------------- |
| 17958 |
Version 1.13.2 (RGer), 2007-06-13 |
| 17959 |
- lib order in makefile patched to facilitate static linking - thanks |
| 17960 |
to Bennett Todd for providing the patch |
| 17961 |
- Integrated a patch from Peter Vrabec ([email protected]): |
| 17962 |
- added klogd under the name of rklogd (remove dependency on |
| 17963 |
original sysklogd package |
| 17964 |
- createDB.sql now in UTF |
| 17965 |
- added additional config files for use on Red Hat |
| 17966 |
--------------------------------------------------------------------------- |
| 17967 |
Version 1.13.1 (RGer), 2007-02-05 |
| 17968 |
- changed the listen backlog limit to a more reasonable value based on |
| 17969 |
the maximum number of TCP connections configured (10% + 5) - thanks to Guy |
| 17970 |
Standen for the hint (actually, the limit was 5 and that was a |
| 17971 |
left-over from early testing). |
| 17972 |
- fixed a bug in makefile which caused DB-support to be disabled when |
| 17973 |
NETZIP support was enabled |
| 17974 |
- added the -e option to allow transmission of every message to remote |
| 17975 |
hosts (effectively turns off duplicate message suppression) |
| 17976 |
- (somewhat) improved memory consumption when compiled with MySQL support |
| 17977 |
- looks like we fixed an incompatibility with MySQL 5.x and above software |
| 17978 |
At least in one case, the remote server name was destroyed, leading to |
| 17979 |
a connection failure. The new, improved code does not have this issue and |
| 17980 |
so we see this as solved (the new code is generally somewhat better, so |
| 17981 |
there is a good chance we fixed this incompatibility). |
| 17982 |
--------------------------------------------------------------------------- |
| 17983 |
Version 1.13.0 (RGer), 2006-12-19 |
| 17984 |
- added '$' as ToPos property replacer specifier - means "up to the |
| 17985 |
end of the string" |
| 17986 |
- property replacer option "escape-cc", "drop-cc" and "space-cc" added |
| 17987 |
- changed the handling of \0 characters inside syslog messages. We now |
| 17988 |
consistently escape them to "#000". This is somewhat recommended in |
| 17989 |
the draft-ietf-syslog-protocol-19 draft. While the real recommendation |
| 17990 |
is to not escape any characters at all, we can not do this without |
| 17991 |
considerable modification of the code. So we escape it to "#000", which |
| 17992 |
is consistent with a sample found in the Internet-draft. |
| 17993 |
- removed message glue logic (see printchopped() comment for details) |
| 17994 |
Also caused removal of parts table and thus some improvements in |
| 17995 |
memory usage. |
| 17996 |
- changed the default MAXLINE to 2048 to take care of recent syslog |
| 17997 |
standardization efforts (can easily be changed in syslogd.c) |
| 17998 |
- added support for byte-counted TCP syslog messages (much like |
| 17999 |
syslog-transport-tls-05 Internet Draft). This was necessary to |
| 18000 |
support compression over TCP. |
| 18001 |
- added support for receiving compressed syslog messages |
| 18002 |
- added support for sending compressed syslog messages |
| 18003 |
- fixed a bug where the last message in a syslog/tcp stream was |
| 18004 |
lost if it was not properly terminated by a LF character |
| 18005 |
--------------------------------------------------------------------------- |
| 18006 |
Version 1.12.3 (RGer), 2006-10-04 |
| 18007 |
- implemented some changes to support Solaris (but support is not |
| 18008 |
yet complete) |
| 18009 |
- commented out (via #if 0) some methods that are currently not being use |
| 18010 |
but should be kept for further us |
| 18011 |
- added (interim) -u 1 option to turn off hostname and tag parsing |
| 18012 |
- done some modifications to better support Fedora |
| 18013 |
- made the field delimiter inside property replace configurable via |
| 18014 |
template |
| 18015 |
- fixed a bug in property replacer: if fields were used, the delimitor |
| 18016 |
became part of the field. Up until now, this was barely noticeable as |
| 18017 |
the delimiter as TAB only and thus invisible to a human. With other |
| 18018 |
delimiters available now, it quickly showed up. This bug fix might cause |
| 18019 |
some grief to existing installations if they used the extra TAB for |
| 18020 |
whatever reasons - sorry folks... Anyhow, a solution is easy: just add |
| 18021 |
a TAB character constant into your template. Thus, there has no attempt |
| 18022 |
been made to do this in a backwards-compatible way. |
| 18023 |
--------------------------------------------------------------------------- |
| 18024 |
Version 1.12.2 (RGer), 2006-02-15 |
| 18025 |
- fixed a bug in the RFC 3339 date formatter. An extra space was added |
| 18026 |
after the actual timestamp |
| 18027 |
- added support for providing high-precision RFC3339 timestamps for |
| 18028 |
(rsyslogd-)internally-generated messages |
| 18029 |
- very (!) experimental support for syslog-protocol internet draft |
| 18030 |
added (the draft is experimental, the code is solid ;)) |
| 18031 |
- added support for field-extracting in the property replacer |
| 18032 |
- enhanced the legacy-syslog parser so that it can interpret messages |
| 18033 |
that do not contain a TIMESTAMP |
| 18034 |
- fixed a bug that caused the default socket (usually /dev/log) to be |
| 18035 |
opened even when -o command line option was given |
| 18036 |
- fixed a bug in the Debian sample startup script - it caused rsyslogd |
| 18037 |
to listen to remote requests, which it shouldn't by default |
| 18038 |
--------------------------------------------------------------------------- |
| 18039 |
Version 1.12.1 (RGer), 2005-11-23 |
| 18040 |
- made multithreading work with BSD. Some signal-handling needed to be |
| 18041 |
restructured. Also, there might be a slight delay of up to 10 seconds |
| 18042 |
when huping and terminating rsyslogd under BSD |
| 18043 |
- fixed a bug where a NULL-pointer was passed to printf() in logmsg(). |
| 18044 |
- fixed a bug during "make install" where rc3195d was not installed |
| 18045 |
Thanks to Bennett Todd for spotting this. |
| 18046 |
- fixed a bug where rsyslogd dumped core when no TAG was found in the |
| 18047 |
received message |
| 18048 |
- enhanced message parser so that it can deal with missing hostnames |
| 18049 |
in many cases (may not be totally fail-safe) |
| 18050 |
- fixed a bug where internally-generated messages did not have the correct |
| 18051 |
TAG |
| 18052 |
--------------------------------------------------------------------------- |
| 18053 |
Version 1.12.0 (RGer), 2005-10-26 |
| 18054 |
- moved to a multi-threaded design. single-threading is still optionally |
| 18055 |
available. Multi-threading is experimental! |
| 18056 |
- fixed a potential race condition. In the original code, marking was done |
| 18057 |
by an alarm handler, which could lead to all sorts of bad things. This |
| 18058 |
has been changed now. See comments in syslogd.c/domark() for details. |
| 18059 |
- improved debug output for property-based filters |
| 18060 |
- not a code change, but: I have checked all exit()s to make sure that |
| 18061 |
none occurs once rsyslogd has started up. Even in unusual conditions |
| 18062 |
(like low-memory conditions) rsyslogd somehow remains active. Of course, |
| 18063 |
it might loose a message or two, but at least it does not abort and it |
| 18064 |
can also recover when the condition no longer persists. |
| 18065 |
- fixed a bug that could cause loss of the last message received |
| 18066 |
immediately before rsyslogd was terminated. |
| 18067 |
- added comments on thread-safety of global variables in syslogd.c |
| 18068 |
- fixed a small bug: spurios printf() when TCP syslog was used |
| 18069 |
- fixed a bug that causes rsyslogd to dump core on termination when one |
| 18070 |
of the selector lines did not receive a message during the run (very |
| 18071 |
unlikely) |
| 18072 |
- fixed an one-too-low memory allocation in the TCP sender. Could result |
| 18073 |
in rsyslogd dumping core. |
| 18074 |
- fixed a bug with regular expression support (thanks to Andres Riancho) |
| 18075 |
- a little bit of code restructuring (especially main(), which was |
| 18076 |
horribly large) |
| 18077 |
--------------------------------------------------------------------------- |
| 18078 |
Version 1.11.1 (RGer), 2005-10-19 |
| 18079 |
- support for BSD-style program name and host blocks |
| 18080 |
- added a new property "programname" that can be used in templates |
| 18081 |
- added ability to specify listen port for rfc3195d |
| 18082 |
- fixed a bug that rendered the "startswith" comparison operation |
| 18083 |
unusable. |
| 18084 |
- changed more functions to "static" storage class to help compiler |
| 18085 |
optimize (should have been static in the first place...) |
| 18086 |
- fixed a potential memory leak in the string buffer class destructor. |
| 18087 |
As the destructor was previously never called, the leak did not actually |
| 18088 |
appear. |
| 18089 |
- some internal restructuring in anticipation/preparation of minimal |
| 18090 |
multi-threading support |
| 18091 |
- rsyslogd still shares some code with the sysklogd project. Some patches |
| 18092 |
for this shared code have been brought over from the sysklogd CVS. |
| 18093 |
--------------------------------------------------------------------------- |
| 18094 |
Version 1.11.0 (RGer), 2005-10-12 |
| 18095 |
- support for receiving messages via RFC 3195; added rfc3195d for that |
| 18096 |
purpose |
| 18097 |
- added an additional guard to prevent rsyslogd from aborting when the |
| 18098 |
2gb file size limit is hit. While a user can configure rsyslogd to |
| 18099 |
handle such situations, it would abort if that was not done AND large |
| 18100 |
file support was not enabled (ok, this is hopefully an unlikely scenario) |
| 18101 |
- fixed a bug that caused additional Unix domain sockets to be incorrectly |
| 18102 |
processed - could lead to message loss in extreme cases |
| 18103 |
--------------------------------------------------------------------------- |
| 18104 |
Version 1.10.2 (RGer), 2005-09-27 |
| 18105 |
- added comparison operations in property-based filters: |
| 18106 |
* isequal |
| 18107 |
* startswith |
| 18108 |
- added ability to negate all property-based filter comparison operations |
| 18109 |
by adding a !-sign right in front of the operation name |
| 18110 |
- added the ability to specify remote senders for UDP and TCP |
| 18111 |
received messages. Allows to block all but well-known hosts |
| 18112 |
- changed the $-config line directives to be case-INsensitive |
| 18113 |
- new command line option -w added: "do not display warnings if messages |
| 18114 |
from disallowed senders are received" |
| 18115 |
- fixed a bug that caused rsyslogd to dump core when the compare value |
| 18116 |
was not quoted in property-based filters |
| 18117 |
- fixed a bug in the new CStr compare function which lead to invalid |
| 18118 |
results (fortunately, this function was not yet used widely) |
| 18119 |
- added better support for "debugging" rsyslog.conf property filters |
| 18120 |
(only if -d switch is given) |
| 18121 |
- changed some function definitions to static, which eventually enables |
| 18122 |
some compiler optimizations |
| 18123 |
- fixed a bug in MySQL code; when a SQL error occurred, rsyslogd could |
| 18124 |
run in a tight loop. This was due to invalid sequence of error reporting |
| 18125 |
and is now fixed. |
| 18126 |
--------------------------------------------------------------------------- |
| 18127 |
Version 1.10.1 (RGer), 2005-09-23 |
| 18128 |
- added the ability to execute a shell script as an action. |
| 18129 |
Thanks to Bjoern Kalkbrenner for providing the code! |
| 18130 |
- fixed a bug in the MySQL code; due to the bug the automatic one-time |
| 18131 |
retry after an error did not happen - this lead to error message in |
| 18132 |
cases where none should be seen (e.g. after a MySQL restart) |
| 18133 |
- fixed a security issue with SQL-escaping in conjunction with |
| 18134 |
non-(SQL-)standard MySQL features. |
| 18135 |
--------------------------------------------------------------------------- |
| 18136 |
Version 1.10.0 (RGer), 2005-09-20 |
| 18137 |
REMINDER: 1.10 is the first unstable version if the 1.x series! |
| 18138 |
- added the capability to filter on any property in selector lines |
| 18139 |
(not just facility and priority) |
| 18140 |
- changed stringbuf into a new counted string class |
| 18141 |
- added support for a "discard" action. If a selector line with |
| 18142 |
discard (~ character) is found, no selector lines *after* that |
| 18143 |
line will be processed. |
| 18144 |
- thanks to Andres Riancho, regular expression support has been |
| 18145 |
added to the template engine |
| 18146 |
- added the FROMHOST property in the template processor, which could |
| 18147 |
previously not be obtained. Thanks to Cristian Testa for pointing |
| 18148 |
this out and even providing a fix. |
| 18149 |
- added display of compile-time options to -v output |
| 18150 |
- performance improvement for production build - made some checks |
| 18151 |
to happen only during debug mode |
| 18152 |
- fixed a problem with compiling on SUSE and - while doing so - removed |
| 18153 |
the socket call to set SO_BSDCOMPAT in cases where it is obsolete. |
| 18154 |
--------------------------------------------------------------------------- |
| 18155 |
Version 1.0.4 (RGer), 2006-02-01 |
| 18156 |
- a small but important fix: the tcp receiver had two forgotten printf's |
| 18157 |
in it that caused a lot of unnecessary output to stdout. This was |
| 18158 |
important enough to justify a new release |
| 18159 |
--------------------------------------------------------------------------- |
| 18160 |
Version 1.0.3 (RGer), 2005-11-14 |
| 18161 |
- added an additional guard to prevent rsyslogd from aborting when the |
| 18162 |
2gb file size limit is hit. While a user can configure rsyslogd to |
| 18163 |
handle such situations, it would abort if that was not done AND large |
| 18164 |
file support was not enabled (ok, this is hopefully an unlikely scenario) |
| 18165 |
- fixed a bug that caused additional Unix domain sockets to be incorrectly |
| 18166 |
processed - could lead to message loss in extreme cases |
| 18167 |
- applied some patches available from the sysklogd project to code |
| 18168 |
shared from there |
| 18169 |
- fixed a bug that causes rsyslogd to dump core on termination when one |
| 18170 |
of the selector lines did not receive a message during the run (very |
| 18171 |
unlikely) |
| 18172 |
- fixed an one-too-low memory allocation in the TCP sender. Could result |
| 18173 |
in rsyslogd dumping core. |
| 18174 |
- fixed a bug in the TCP sender that caused the retry logic to fail |
| 18175 |
after an error or receiver overrun |
| 18176 |
- fixed a bug in init() that could lead to dumping core |
| 18177 |
- fixed a bug that could lead to dumping core when no HOSTNAME or no TAG |
| 18178 |
was present in the syslog message |
| 18179 |
--------------------------------------------------------------------------- |
| 18180 |
Version 1.0.2 (RGer), 2005-10-05 |
| 18181 |
- fixed an issue with MySQL error reporting. When an error occurred, |
| 18182 |
the MySQL driver went into an endless loop (at least in most cases). |
| 18183 |
--------------------------------------------------------------------------- |
| 18184 |
Version 1.0.1 (RGer), 2005-09-23 |
| 18185 |
- fixed a security issue with SQL-escaping in conjunction with |
| 18186 |
non-(SQL-)standard MySQL features. |
| 18187 |
--------------------------------------------------------------------------- |
| 18188 |
Version 1.0.0 (RGer), 2005-09-12 |
| 18189 |
- changed install doc to cover daily cron scripts - a trouble source |
| 18190 |
- added rc script for slackware (provided by Chris Elvidge - thanks!) |
| 18191 |
- fixed a really minor bug in usage() - the -r option was still |
| 18192 |
reported as without the port parameter |
| 18193 |
--------------------------------------------------------------------------- |
| 18194 |
Version 0.9.8 (RGer), 2005-09-05 |
| 18195 |
- made startup and shutdown message more consistent and included the |
| 18196 |
pid, so that they can be easier correlated. Used syslog-protocol |
| 18197 |
structured data format for this purpose. |
| 18198 |
- improved config info in startup message, now tells not only |
| 18199 |
if it is listening remote on udp, but also for tcp. Also includes |
| 18200 |
the port numbers. The previous startup message was misleading, because |
| 18201 |
it did not say "remote reception" if rsyslogd was only listening via |
| 18202 |
tcp (but not via udp). |
| 18203 |
- added a "how can you help" document to the doc set |
| 18204 |
--------------------------------------------------------------------------- |
| 18205 |
Version 0.9.7 (RGer), 2005-08-15 |
| 18206 |
- some of the previous doc files (like INSTALL) did not properly |
| 18207 |
reflect the changes to the build process and the new doc. Fixed |
| 18208 |
that. |
| 18209 |
- changed syslogd.c so that when compiled without database support, |
| 18210 |
an error message is displayed when a database action is detected |
| 18211 |
in the config file (previously this was used as an user rule ;)) |
| 18212 |
- fixed a bug in the os-specific Makefiles which caused MySQL |
| 18213 |
support to not be compiled, even if selected |
| 18214 |
--------------------------------------------------------------------------- |
| 18215 |
Version 0.9.6 (RGer), 2005-08-09 |
| 18216 |
- greatly enhanced documentation. Now available in html format in |
| 18217 |
the "doc" folder and FreeBSD. Finally includes an install howto. |
| 18218 |
- improved MySQL error messages a little - they now show up as log |
| 18219 |
messages, too (formerly only in debug mode) |
| 18220 |
- added the ability to specify the listen port for udp syslog. |
| 18221 |
WARNING: This introduces an incompatibility. Formerly, udp |
| 18222 |
syslog was enabled by the -r command line option. Now, it is |
| 18223 |
"-r [port]", which is consistent with the tcp listener. However, |
| 18224 |
just -r will now return an error message. |
| 18225 |
- added sample startup scripts for Debian and FreeBSD |
| 18226 |
- added support for easy feature selection in the makefile. Un- |
| 18227 |
fortunately, this also means I needed to spilt the make file |
| 18228 |
for different OS and distros. There are some really bad syntax |
| 18229 |
differences between FreeBSD and Linux make. |
| 18230 |
--------------------------------------------------------------------------- |
| 18231 |
Version 0.9.5 (RGer), 2005-08-01 |
| 18232 |
- the "semicolon bug" was actually not (fully) solved in 0.9.4. One |
| 18233 |
part of the bug was solved, but another still existed. This one |
| 18234 |
is fixed now, too. |
| 18235 |
- the "semicolon bug" actually turned out to be a more generic bug. |
| 18236 |
It appeared whenever an invalid template name was given. With some |
| 18237 |
selector actions, rsyslogd dumped core, with other it "just" had |
| 18238 |
a small resource leak with others all worked well. These anomalies |
| 18239 |
are now fixed. Note that they only appeared during system initialization |
| 18240 |
once the system was running, nothing bad happened. |
| 18241 |
- improved error reporting for template errors on startup. They are now |
| 18242 |
shown on the console and the start-up tty. Formerly, they were only |
| 18243 |
visible in debug mode. |
| 18244 |
- support for multiple instances of rsyslogd on a single machine added |
| 18245 |
- added new option "-o" --> omit local unix domain socket. This option |
| 18246 |
enables rsyslogd NOT to listen to the local socket. This is most |
| 18247 |
helpful when multiple instances of rsyslogd (or rsyslogd and another |
| 18248 |
syslogd) shall run on a single system. |
| 18249 |
- added new option "-i <pidfile>" which allows one to specify the pidfile. |
| 18250 |
This is needed when multiple instances of rsyslogd are to be run. |
| 18251 |
- the new project home page is now online at www.rsyslog.com |
| 18252 |
--------------------------------------------------------------------------- |
| 18253 |
Version 0.9.4 (RGer), 2005-07-25 |
| 18254 |
- finally added the TCP sender. It now supports non-blocking mode, no |
| 18255 |
longer disabling message reception during connect. As it is now, it |
| 18256 |
is usable in production. The code could be more sophisticated, but |
| 18257 |
I've kept it short in anticipation of the move to liblogging, which |
| 18258 |
will lead to the removal of the code just written ;) |
| 18259 |
- the "exiting on signal..." message still had the "syslogd" name in |
| 18260 |
it. Changed this to "rsyslogd", as we do not have a large user base |
| 18261 |
yet, this should pose no problem. |
| 18262 |
- fixed "the semicolon" bug. rsyslogd dumped core if a write-db action |
| 18263 |
was specified but no semicolon was given after the password (an empty |
| 18264 |
template was ok, but the semicolon needed to be present). |
| 18265 |
- changed a default for traditional output format. During testing, it |
| 18266 |
was seen that the timestamp written to file in default format was |
| 18267 |
the time of message reception, not the time specified in the TIMESTAMP |
| 18268 |
field of the message itself. Traditionally, the message TIMESTAMP is |
| 18269 |
used and this has been changed now. |
| 18270 |
--------------------------------------------------------------------------- |
| 18271 |
Version 0.9.3 (RGer), 2005-07-19 |
| 18272 |
- fixed a bug in the message parser. In June, the RFC 3164 timestamp |
| 18273 |
was not correctly parsed (yes, only in June and some other months, |
| 18274 |
see the code comment to learn why...) |
| 18275 |
- added the ability to specify the destination port when forwarding |
| 18276 |
syslog messages (both for TCP and UDP) |
| 18277 |
- added an very experimental TCP sender (activated by |
| 18278 |
@@machine:port in config). This is not yet for production use. If |
| 18279 |
the receiver is not alive, rsyslogd will wait quite some time until |
| 18280 |
the connection request times out, which most probably leads to |
| 18281 |
loss of incoming messages. |
| 18282 |
|
| 18283 |
--------------------------------------------------------------------------- |
| 18284 |
Version 0.9.2 (RGer), around 2005-07-06 |
| 18285 |
- I intended to change the maxsupported message size to 32k to |
| 18286 |
support IHE - but given the memory inefficiency in the usual use |
| 18287 |
cases, I have not done this. I have, however, included very |
| 18288 |
specific instructions on how to do this in the source code. I have |
| 18289 |
also done some testing with 32k messages, so you can change the |
| 18290 |
max size without taking too much risk. |
| 18291 |
- added a syslog/tcp receiver; we now can receive messages via |
| 18292 |
plain tcp, but we can still send only via UDP. The syslog/tcp |
| 18293 |
receiver is the primary enhancement of this release. |
| 18294 |
- slightly changed some error messages that contained a spurios \n at |
| 18295 |
the end of the line (which gives empty lines in your log...) |
| 18296 |
|
| 18297 |
--------------------------------------------------------------------------- |
| 18298 |
Version 0.9.1 (RGer) |
| 18299 |
- fixed code so that it compiles without errors under FreeBSD |
| 18300 |
- removed now unused function "allocate_log()" from syslogd.c |
| 18301 |
- changed the make file so that it contains more defines for |
| 18302 |
different environments (in the long term, we need a better |
| 18303 |
system for disabling/enabling features...) |
| 18304 |
- changed some printf's printing off_t types to %lld and |
| 18305 |
explicit (long long) casts. I tried to figure out the exact type, |
| 18306 |
but did not succeed in this. In the worst case, ultra-large peta- |
| 18307 |
byte files will now display funny informational messages on rollover, |
| 18308 |
something I think we can live with for the next 10 years or so... |
| 18309 |
|
| 18310 |
--------------------------------------------------------------------------- |
| 18311 |
Version 0.9.0 (RGer) |
| 18312 |
- changed the filed structure to be a linked list. Previously, it |
| 18313 |
was a table - well, for non-SYSV it was defined as linked list, |
| 18314 |
but from what I see that code did no longer work after my |
| 18315 |
modifications. I am now using a linked list in general because |
| 18316 |
that is needed for other upcoming modifications. |
| 18317 |
- fixed a bug that caused rsyslogd not to listen to anything if |
| 18318 |
the configuration file could not be read |
| 18319 |
- previous versions disabled network logging (send/receive) if |
| 18320 |
syslog/udp port was not in /etc/services. Now defaulting to |
| 18321 |
port 514 in this case. |
| 18322 |
- internal error messages are now supported up to 256 bytes |
| 18323 |
- error message seen during config file read are now also displayed |
| 18324 |
to the attached tty and not only the console |
| 18325 |
- changed some error messages during init to be sent to the console |
| 18326 |
and/or emergency log. Previously, they were only seen if the |
| 18327 |
-d (debug) option was present on the command line. |
| 18328 |
- fixed the "2gb file issue on 32bit systems". If a file grew to |
| 18329 |
more than 2gb, the syslogd was aborted with "file size exceeded". |
| 18330 |
Now, defines have been added according to |
| 18331 |
http://www.daimi.au.dk/~kasperd/comp.os.linux.development.faq.html#LARGEFILE |
| 18332 |
Testing revealed that they work ;) |
| 18333 |
HOWEVER, if your file system, glibc, kernel, whatever does not |
| 18334 |
support files larger 2gb, you need to set a file size limit with |
| 18335 |
the new output channel mechanism. |
| 18336 |
- updated man pages to reflect the changes |
| 18337 |
|
| 18338 |
--------------------------------------------------------------------------- |
| 18339 |
Version 0.8.4 |
| 18340 |
|
| 18341 |
- improved -d debug output (removed developer-only content) |
| 18342 |
- now compiles under FreeBSD and NetBSD (only quick testing done on NetBSD) |
| 18343 |
--------------------------------------------------------------------------- |
| 18344 |
Version 0.8.3 |
| 18345 |
|
| 18346 |
- security model in "make install" changed |
| 18347 |
- minor doc updates |
| 18348 |
--------------------------------------------------------------------------- |
| 18349 |
Version 0.8.2 |
| 18350 |
|
| 18351 |
- added man page for rsyslog.conf and rsyslogd |
| 18352 |
- gave up on the concept of rsyslog being a "drop in" replacement |
| 18353 |
for syslogd. Now, the user installs rsyslogd and also needs to |
| 18354 |
adjust his system settings to this specifically. This also lead |
| 18355 |
to these changes: |
| 18356 |
* changed Makefile so that install now installs rsyslogd instead |
| 18357 |
of dealing with syslogd |
| 18358 |
* changed the default config file name to rsyslog.conf |
| 18359 |
--------------------------------------------------------------------------- |
| 18360 |
Version 0.8.1 |
| 18361 |
|
| 18362 |
- fixed a nasty memory leak (probably not the last one with this release) |
| 18363 |
- some enhancements to Makefile as suggested by Bennett Todd |
| 18364 |
- syslogd-internal messages (like restart) were missing the hostname |
| 18365 |
this has been corrected |
| 18366 |
--------------------------------------------------------------------------- |
| 18367 |
Version 0.8.0 |
| 18368 |
|
| 18369 |
Initial testing release. Based on the sysklogd package. Thanks to the |
| 18370 |
sysklogd maintainers for all their good work! |
| 18371 |
--------------------------------------------------------------------------- |
| 18372 |
|
| 18373 |
---------------------------------------------------------------------- |
| 18374 |
The following comments were left in the syslogd source. While they provide |
| 18375 |
not too much detail, the help to date when Rainer started work on the |
| 18376 |
project (which was 2003, now even surprising for Rainer himself ;)). |
| 18377 |
* \author Rainer Gerhards <[email protected]> |
| 18378 |
* \date 2003-10-17 |
| 18379 |
* Some initial modifications on the sysklogd package to support |
| 18380 |
* liblogging. These have actually not yet been merged to the |
| 18381 |
* source you see currently (but they hopefully will) |
| 18382 |
* |
| 18383 |
* \date 2004-10-28 |
| 18384 |
* Restarted the modifications of sysklogd. This time, we |
| 18385 |
* focus on a simpler approach first. The initial goal is to |
| 18386 |
* provide MySQL database support (so that syslogd can log |
| 18387 |
* to the database). |
| 18388 |
---------------------------------------------------------------------- |
| 18389 |
The following comments are from the stock syslogd.c source. They provide |
| 18390 |
some insight into what happened to the source before we forked |
| 18391 |
rsyslogd. However, much of the code already has been replaced and more |
| 18392 |
is to be replaced. So over time, these comments become less valuable. |
| 18393 |
I have moved them out of the syslogd.c file to shrink it, especially |
| 18394 |
as a lot of them do no longer apply. For historical reasons and |
| 18395 |
understanding of how the daemon evolved, they are probably still |
| 18396 |
helpful. |
| 18397 |
* Author: Eric Allman |
| 18398 |
* extensive changes by Ralph Campbell |
| 18399 |
* more extensive changes by Eric Allman (again) |
| 18400 |
* |
| 18401 |
* Steve Lord: Fix UNIX domain socket code, added linux kernel logging |
| 18402 |
* change defines to |
| 18403 |
* SYSLOG_INET - listen on a UDP socket |
| 18404 |
* SYSLOG_UNIXAF - listen on unix domain socket |
| 18405 |
* SYSLOG_KERNEL - listen to linux kernel |
| 18406 |
* |
| 18407 |
* Mon Feb 22 09:55:42 CST 1993: Dr. Wettstein |
| 18408 |
* Additional modifications to the source. Changed priority scheme |
| 18409 |
* to increase the level of configurability. In its stock configuration |
| 18410 |
* syslogd no longer logs all messages of a certain priority and above |
| 18411 |
* to a log file. The * wildcard is supported to specify all priorities. |
| 18412 |
* Note that this is a departure from the BSD standard. |
| 18413 |
* |
| 18414 |
* Syslogd will now listen to both the inetd and the unixd socket. The |
| 18415 |
* strategy is to allow all local programs to direct their output to |
| 18416 |
* syslogd through the unixd socket while the program listens to the |
| 18417 |
* inetd socket to get messages forwarded from other hosts. |
| 18418 |
* |
| 18419 |
* Fri Mar 12 16:55:33 CST 1993: Dr. Wettstein |
| 18420 |
* Thanks to Stephen Tweedie (dcs.ed.ac.uk!sct) for helpful bug-fixes |
| 18421 |
* and an enlightened commentary on the prioritization problem. |
| 18422 |
* |
| 18423 |
* Changed the priority scheme so that the default behavior mimics the |
| 18424 |
* standard BSD. In this scenario all messages of a specified priority |
| 18425 |
* and above are logged. |
| 18426 |
* |
| 18427 |
* Add the ability to specify a wildcard (=) as the first character |
| 18428 |
* of the priority name. Doing this specifies that ONLY messages with |
| 18429 |
* this level of priority are to be logged. For example: |
| 18430 |
* |
| 18431 |
* *.=debug /usr/adm/debug |
| 18432 |
* |
| 18433 |
* Would log only messages with a priority of debug to the /usr/adm/debug |
| 18434 |
* file. |
| 18435 |
* |
| 18436 |
* Providing an * as the priority specifies that all messages are to be |
| 18437 |
* logged. Note that this case is degenerate with specifying a priority |
| 18438 |
* level of debug. The wildcard * was retained because I believe that |
| 18439 |
* this is more intuitive. |
| 18440 |
* |
| 18441 |
* Thu Jun 24 11:34:13 CDT 1993: Dr. Wettstein |
| 18442 |
* Modified sources to incorporate changes in libc4.4. Messages from |
| 18443 |
* syslog are now null-terminated, syslogd code now parses messages |
| 18444 |
* based on this termination scheme. Linux as of libc4.4 supports the |
| 18445 |
* fsync system call. Modified code to fsync after all writes to |
| 18446 |
* log files. |
| 18447 |
* |
| 18448 |
* Sat Dec 11 11:59:43 CST 1993: Dr. Wettstein |
| 18449 |
* Extensive changes to the source code to allow compilation with no |
| 18450 |
* complaints with -Wall. |
| 18451 |
* |
| 18452 |
* Reorganized the facility and priority name arrays so that they |
| 18453 |
* compatible with the syslog.h source found in /usr/include/syslog.h. |
| 18454 |
* NOTE that this should really be changed. The reason I do not |
| 18455 |
* allow the use of the values defined in syslog.h is on account of |
| 18456 |
* the extensions made to allow the wildcard character in the |
| 18457 |
* priority field. To fix this properly one should malloc an array, |
| 18458 |
* copy the contents of the array defined by syslog.h and then |
| 18459 |
* make whatever modifications that are desired. Next round. |
| 18460 |
* |
| 18461 |
* Thu Jan 6 12:07:36 CST 1994: Dr. Wettstein |
| 18462 |
* Added support for proper decomposition and re-assembly of |
| 18463 |
* fragment messages on UNIX domain sockets. Lack of this capability |
| 18464 |
* was causing 'partial' messages to be output. Since facility and |
| 18465 |
* priority information is encoded as a leader on the messages this |
| 18466 |
* was causing lines to be placed in erroneous files. |
| 18467 |
* |
| 18468 |
* Also added a patch from Shane Alderton ([email protected]) to |
| 18469 |
* correct a problem with syslogd dumping core when an attempt was made |
| 18470 |
* to write log messages to a logged-on user. Thank you. |
| 18471 |
* |
| 18472 |
* Many thanks to Juha Virtanen ([email protected]) for a series of |
| 18473 |
* interchanges which lead to the fixing of problems with messages set |
| 18474 |
* to priorities of none and emerg. Also thanks to Juha for a patch |
| 18475 |
* to exclude users with a class of LOGIN from receiving messages. |
| 18476 |
* |
| 18477 |
* Shane Alderton provided an additional patch to fix zombies which |
| 18478 |
* were conceived when messages were written to multiple users. |
| 18479 |
* |
| 18480 |
* Mon Feb 6 09:57:10 CST 1995: Dr. Wettstein |
| 18481 |
* Patch to properly reset the single priority message flag. Thanks |
| 18482 |
* to Christopher Gori for spotting this bug and forwarding a patch. |
| 18483 |
* |
| 18484 |
* Wed Feb 22 15:38:31 CST 1995: Dr. Wettstein |
| 18485 |
* Added version information to startup messages. |
| 18486 |
* |
| 18487 |
* Added defines so that paths to important files are taken from |
| 18488 |
* the definitions in paths.h. Hopefully this will insure that |
| 18489 |
* everything follows the FSSTND standards. Thanks to Chris Metcalf |
| 18490 |
* for a set of patches to provide this functionality. Also thanks |
| 18491 |
* Elias Levy for prompting me to get these into the sources. |
| 18492 |
* |
| 18493 |
* Wed Jul 26 18:57:23 MET DST 1995: Martin Schulze |
| 18494 |
* Linux' gethostname only returns the hostname and not the fqdn as |
| 18495 |
* expected in the code. But if you call hostname with an fqdn then |
| 18496 |
* gethostname will return an fqdn, so we have to mention that. This |
| 18497 |
* has been changed. |
| 18498 |
* |
| 18499 |
* The 'LocalDomain' and the hostname of a remote machine is |
| 18500 |
* converted to lower case, because the original caused some |
| 18501 |
* inconsistency, because the (at least my) nameserver did respond an |
| 18502 |
* fqdn containing of upper- _and_ lowercase letters while |
| 18503 |
* 'LocalDomain' consisted only of lowercase letters and that didn't |
| 18504 |
* match. |
| 18505 |
* |
| 18506 |
* Sat Aug 5 18:59:15 MET DST 1995: Martin Schulze |
| 18507 |
* Now no messages that were received from any remote host are sent |
| 18508 |
* out to another. At my domain this missing feature caused ugly |
| 18509 |
* syslog-loops, sometimes. |
| 18510 |
* |
| 18511 |
* Remember that no message is sent out. I can't figure out any |
| 18512 |
* scenario where it might be useful to change this behavior and to |
| 18513 |
* send out messages to other hosts than the one from which we |
| 18514 |
* received the message, but I might be shortsighted. :-/ |
| 18515 |
* |
| 18516 |
* Thu Aug 10 19:01:08 MET DST 1995: Martin Schulze |
| 18517 |
* Added my pidfile.[ch] to it to perform a better handling with |
| 18518 |
* pidfiles. Now both, syslogd and klogd, can only be started |
| 18519 |
* once. They check the pidfile. |
| 18520 |
* |
| 18521 |
* Sun Aug 13 19:01:41 MET DST 1995: Martin Schulze |
| 18522 |
* Add an addition to syslog.conf's interpretation. If a priority |
| 18523 |
* begins with an exclamation mark ('!') the normal interpretation |
| 18524 |
* of the priority is inverted: ".!*" is the same as ".none", ".!=info" |
| 18525 |
* don't logs the info priority, ".!crit" won't log any message with |
| 18526 |
* the priority crit or higher. For example: |
| 18527 |
* |
| 18528 |
* mail.*;mail.!=info /usr/adm/mail |
| 18529 |
* |
| 18530 |
* Would log all messages of the facility mail except those with |
| 18531 |
* the priority info to /usr/adm/mail. This makes the syslogd |
| 18532 |
* much more flexible. |
| 18533 |
* |
| 18534 |
* Defined TABLE_ALLPRI=255 and changed some occurrences. |
| 18535 |
* |
| 18536 |
* Sat Aug 19 21:40:13 MET DST 1995: Martin Schulze |
| 18537 |
* Making the table of facilities and priorities while in debug |
| 18538 |
* mode more readable. |
| 18539 |
* |
| 18540 |
* If debugging is turned on, printing the whole table of |
| 18541 |
* facilities and priorities every hexadecimal or 'X' entry is |
| 18542 |
* now 2 characters wide. |
| 18543 |
* |
| 18544 |
* The number of the entry is prepended to each line of |
| 18545 |
* facilities and priorities, and F_UNUSED lines are not shown |
| 18546 |
* anymore. |
| 18547 |
* |
| 18548 |
* Corrected some #ifdef SYSV's. |
| 18549 |
* |
| 18550 |
* Mon Aug 21 22:10:35 MET DST 1995: Martin Schulze |
| 18551 |
* Corrected a strange behavior during parsing of configuration |
| 18552 |
* file. The original BSD syslogd doesn't understand spaces as |
| 18553 |
* separators between specifier and action. This syslogd now |
| 18554 |
* understands them. The old behavior caused some confusion over |
| 18555 |
* the Linux community. |
| 18556 |
* |
| 18557 |
* Thu Oct 19 00:02:07 MET 1995: Martin Schulze |
| 18558 |
* The default behavior has changed for security reasons. The |
| 18559 |
* syslogd will not receive any remote message unless you turn |
| 18560 |
* reception on with the "-r" option. |
| 18561 |
* |
| 18562 |
* Not defining SYSLOG_INET will result in not doing any network |
| 18563 |
* activity, i.e. not sending or receiving messages. I changed |
| 18564 |
* this because the old idea is implemented with the "-r" option |
| 18565 |
* and the old thing didn't work anyway. |
| 18566 |
* |
| 18567 |
* Thu Oct 26 13:14:06 MET 1995: Martin Schulze |
| 18568 |
* Added another logfile type F_FORW_UNKN. The problem I ran into |
| 18569 |
* was a name server that runs on my machine and a forwarder of |
| 18570 |
* kern.crit to another host. The hosts address can only be |
| 18571 |
* fetched using the nameserver. But named is started after |
| 18572 |
* syslogd, so syslogd complained. |
| 18573 |
* |
| 18574 |
* This logfile type will retry to get the address of the |
| 18575 |
* hostname ten times and then complain. This should be enough to |
| 18576 |
* get the named up and running during boot sequence. |
| 18577 |
* |
| 18578 |
* Fri Oct 27 14:08:15 1995: Dr. Wettstein |
| 18579 |
* Changed static array of logfiles to a dynamic array. This |
| 18580 |
* can grow during process. |
| 18581 |
* |
| 18582 |
* Fri Nov 10 23:08:18 1995: Martin Schulze |
| 18583 |
* Inserted a new tabular sys_h_errlist that contains plain text |
| 18584 |
* for error codes that are returned from the net subsystem and |
| 18585 |
* stored in h_errno. I have also changed some wrong lookups to |
| 18586 |
* sys_errlist. |
| 18587 |
* |
| 18588 |
* Wed Nov 22 22:32:55 1995: Martin Schulze |
| 18589 |
* Added the fabulous strip-domain feature that allows us to |
| 18590 |
* strip off (several) domain names from the fqdn and only log |
| 18591 |
* the simple hostname. This is useful if you're in a LAN that |
| 18592 |
* has a central log server and also different domains. |
| 18593 |
* |
| 18594 |
* I have also also added the -l switch do define hosts as |
| 18595 |
* local. These will get logged with their simple hostname, too. |
| 18596 |
* |
| 18597 |
* Thu Nov 23 19:02:56 MET DST 1995: Martin Schulze |
| 18598 |
* Added the possibility to omit fsyncing of logfiles after every |
| 18599 |
* write. This will give some performance back if you have |
| 18600 |
* programs that log in a very verbose manner (like innd or |
| 18601 |
* smartlist). Thanks to Stephen R. van den Berg <[email protected]> |
| 18602 |
* for the idea. |
| 18603 |
* |
| 18604 |
* Thu Jan 18 11:14:36 CST 1996: Dr. Wettstein |
| 18605 |
* Added patch from beta-testers to stop compile error. Also |
| 18606 |
* added removal of pid file as part of termination cleanup. |
| 18607 |
* |
| 18608 |
* Wed Feb 14 12:42:09 CST 1996: Dr. Wettstein |
| 18609 |
* Allowed forwarding of messages received from remote hosts to |
| 18610 |
* be controlled by a command-line switch. Specifying -h allows |
| 18611 |
* forwarding. The default behavior is to disable forwarding of |
| 18612 |
* messages which were received from a remote host. |
| 18613 |
* |
| 18614 |
* Parent process of syslogd does not exit until child process has |
| 18615 |
* finished initialization process. This allows rc.* startup to |
| 18616 |
* pause until syslogd facility is up and operating. |
| 18617 |
* |
| 18618 |
* Re-arranged the select code to move UNIX domain socket accepts |
| 18619 |
* to be processed later. This was a contributed change which |
| 18620 |
* has been proposed to correct the delays sometimes encountered |
| 18621 |
* when syslogd starts up. |
| 18622 |
* |
| 18623 |
* Minor code cleanups. |
| 18624 |
* |
| 18625 |
* Thu May 2 15:15:33 CDT 1996: Dr. Wettstein |
| 18626 |
* Fixed bug in init function which resulted in file descriptors |
| 18627 |
* being orphaned when syslogd process was re-initialized with SIGHUP |
| 18628 |
* signal. Thanks to Edvard Tuinder |
| 18629 |
* ([email protected]) for putting me on the |
| 18630 |
* trail of this bug. I am amazed that we didn't catch this one |
| 18631 |
* before now. |
| 18632 |
* |
| 18633 |
* Tue May 14 00:03:35 MET DST 1996: Martin Schulze |
| 18634 |
* Corrected a mistake that causes the syslogd to stop logging at |
| 18635 |
* some virtual consoles under Linux. This was caused by checking |
| 18636 |
* the wrong error code. Thanks to Michael Nonweiler |
| 18637 |
* <[email protected]> for sending me a patch. |
| 18638 |
* |
| 18639 |
* Mon May 20 13:29:32 MET DST 1996: Miquel van Smoorenburg <[email protected]> |
| 18640 |
* Added continuation line supported and fixed a bug in |
| 18641 |
* the init() code. |
| 18642 |
* |
| 18643 |
* Tue May 28 00:58:45 MET DST 1996: Martin Schulze |
| 18644 |
* Corrected behavior of blocking pipes - i.e. the whole system |
| 18645 |
* hung. Michael Nonweiler <[email protected]> has sent us |
| 18646 |
* a patch to correct this. A new logfile type F_PIPE has been |
| 18647 |
* introduced. |
| 18648 |
* |
| 18649 |
* Mon Feb 3 10:12:15 MET DST 1997: Martin Schulze |
| 18650 |
* Corrected behavior of logfiles if the file can't be opened. |
| 18651 |
* There was a bug that causes syslogd to try to log into non |
| 18652 |
* existing files which ate cpu power. |
| 18653 |
* |
| 18654 |
* Sun Feb 9 03:22:12 MET DST 1997: Martin Schulze |
| 18655 |
* Modified syslogd.c to not kill itself which confuses bash 2.0. |
| 18656 |
* |
| 18657 |
* Mon Feb 10 00:09:11 MET DST 1997: Martin Schulze |
| 18658 |
* Improved debug code to decode the numeric facility/priority |
| 18659 |
* pair into textual information. |
| 18660 |
* |
| 18661 |
* Tue Jun 10 12:35:10 MET DST 1997: Martin Schulze |
| 18662 |
* Corrected freeing of logfiles. Thanks to Jos Vos <[email protected]> |
| 18663 |
* for reporting the bug and sending an idea to fix the problem. |
| 18664 |
* |
| 18665 |
* Tue Jun 10 12:51:41 MET DST 1997: Martin Schulze |
| 18666 |
* Removed sleep(10) from parent process. This has caused a slow |
| 18667 |
* startup in former times - and I don't see any reason for this. |
| 18668 |
* |
| 18669 |
* Sun Jun 15 16:23:29 MET DST 1997: Michael Alan Dorman |
| 18670 |
* Some more glibc patches made by <[email protected]>. |
| 18671 |
* |
| 18672 |
* Thu Jan 1 16:04:52 CET 1998: Martin Schulze <[email protected] |
| 18673 |
* Applied patch from Herbert Thielen <[email protected]>. |
| 18674 |
* This included some balance parentheses for emacs and a bug in |
| 18675 |
* the exclamation mark handling. |
| 18676 |
* |
| 18677 |
* Fixed small bug which caused syslogd to write messages to the |
| 18678 |
* wrong logfile under some very rare conditions. Thanks to |
| 18679 |
* Herbert Xu <[email protected]> for fiddling this out. |
| 18680 |
* |
| 18681 |
* Thu Jan 8 22:46:35 CET 1998: Martin Schulze <[email protected]> |
| 18682 |
* Reworked one line of the above patch as it prevented syslogd |
| 18683 |
* from binding the socket with the result that no messages were |
| 18684 |
* forwarded to other hosts. |
| 18685 |
* |
| 18686 |
* Sat Jan 10 01:33:06 CET 1998: Martin Schulze <[email protected]> |
| 18687 |
* Fixed small bugs in F_FORW_UNKN mechanism. Thanks to Torsten |
| 18688 |
* Neumann <[email protected]> for pointing me to it. |
| 18689 |
* |
| 18690 |
* Mon Jan 12 19:50:58 CET 1998: Martin Schulze <[email protected]> |
| 18691 |
* Modified debug output concerning remote reception. |
| 18692 |
* |
| 18693 |
* Mon Feb 23 23:32:35 CET 1998: Topi Miettinen <[email protected]> |
| 18694 |
* Re-worked handling of Unix and UDP sockets to support closing / |
| 18695 |
* opening of them in order to have it open only if it is needed |
| 18696 |
* either for forwarding to a remote host or by reception from |
| 18697 |
* the network. |
| 18698 |
* |
| 18699 |
* Wed Feb 25 10:54:09 CET 1998: Martin Schulze <[email protected]> |
| 18700 |
* Fixed little comparison mistake that prevented the MARK |
| 18701 |
* feature to work properly. |
| 18702 |
* |
| 18703 |
* Wed Feb 25 13:21:44 CET 1998: Martin Schulze <[email protected]> |
| 18704 |
* Corrected Topi's patch as it prevented forwarding during |
| 18705 |
* startup due to an unknown LogPort. |
| 18706 |
* |
| 18707 |
* Sat Oct 10 20:01:48 CEST 1998: Martin Schulze <[email protected]> |
| 18708 |
* Added support for TESTING define which will turn syslogd into |
| 18709 |
* stdio-mode used for debugging. |
| 18710 |
* |
| 18711 |
* Sun Oct 11 20:16:59 CEST 1998: Martin Schulze <[email protected]> |
| 18712 |
* Reworked the initialization/fork code. Now the parent |
| 18713 |
* process activates a signal handler which the daughter process |
| 18714 |
* will raise if it is initialized. Only after that one the |
| 18715 |
* parent process may exit. Otherwise klogd might try to flush |
| 18716 |
* its log cache while syslogd can't receive the messages yet. |
| 18717 |
* |
| 18718 |
* Mon Oct 12 13:30:35 CEST 1998: Martin Schulze <[email protected]> |
| 18719 |
* Redirected some error output with regard to argument parsing to |
| 18720 |
* stderr. |
| 18721 |
* |
| 18722 |
* Mon Oct 12 14:02:51 CEST 1998: Martin Schulze <[email protected]> |
| 18723 |
* Applied patch provided vom Topi Miettinen with regard to the |
| 18724 |
* people from OpenBSD. This provides the additional '-a' |
| 18725 |
* argument used for specifying additional UNIX domain sockets to |
| 18726 |
* listen to. This is been used with chroot()'ed named's for |
| 18727 |
* example. See for http://www.psionic.com/papers/dns.html |
| 18728 |
* |
| 18729 |
* Mon Oct 12 18:29:44 CEST 1998: Martin Schulze <[email protected]> |
| 18730 |
* Added `ftp' facility which was introduced in glibc version 2. |
| 18731 |
* It's #ifdef'ed so won't harm with older libraries. |
| 18732 |
* |
| 18733 |
* Mon Oct 12 19:59:21 MET DST 1998: Martin Schulze <[email protected]> |
| 18734 |
* Code cleanups with regard to bsd -> posix transition and |
| 18735 |
* stronger security (buffer length checking). Thanks to Topi |
| 18736 |
* Miettinen <[email protected]> |
| 18737 |
* . index() --> strchr() |
| 18738 |
* . sprintf() --> snprintf() |
| 18739 |
* . bcopy() --> memcpy() |
| 18740 |
* . bzero() --> memset() |
| 18741 |
* . UNAMESZ --> UT_NAMESIZE |
| 18742 |
* . sys_errlist --> strerror() |
| 18743 |
* |
| 18744 |
* Mon Oct 12 20:22:59 CEST 1998: Martin Schulze <[email protected]> |
| 18745 |
* Added support for setutent()/getutent()/endutent() instead of |
| 18746 |
* binary reading the UTMP file. This is the the most portable |
| 18747 |
* way. This allows /var/run/utmp format to change, even to a |
| 18748 |
* real database or utmp daemon. Also if utmp file locking is |
| 18749 |
* implemented in libc, syslog will use it immediately. Thanks |
| 18750 |
* to Topi Miettinen <[email protected]>. |
| 18751 |
* |
| 18752 |
* Mon Oct 12 20:49:18 MET DST 1998: Martin Schulze <[email protected]> |
| 18753 |
* Avoid logging of SIGCHLD when syslogd is in the process of |
| 18754 |
* exiting and closing its files. Again thanks to Topi. |
| 18755 |
* |
| 18756 |
* Mon Oct 12 22:18:34 CEST 1998: Martin Schulze <[email protected]> |
| 18757 |
* Modified printline() to support 8bit characters - such as |
| 18758 |
* russian letters. Thanks to Vladas Lapinskas <[email protected]>. |
| 18759 |
* |
| 18760 |
* Sat Nov 14 02:29:37 CET 1998: Martin Schulze <[email protected]> |
| 18761 |
* ``-m 0'' now turns of MARK logging entirely. |
| 18762 |
* |
| 18763 |
* Tue Jan 19 01:04:18 MET 1999: Martin Schulze <[email protected]> |
| 18764 |
* Finally fixed an error with `-a' processing, thanks to Topi |
| 18765 |
* Miettinen <[email protected]>. |
| 18766 |
* |
| 18767 |
* Sun May 23 10:08:53 CEST 1999: Martin Schulze <[email protected]> |
| 18768 |
* Removed superfluous call to utmpname(). The path to the utmp |
| 18769 |
* file is defined in the used libc and should not be hardcoded |
| 18770 |
* into the syslogd binary referring the system it was compiled on. |
| 18771 |
* |
| 18772 |
* Sun Sep 17 20:45:33 CEST 2000: Martin Schulze <[email protected]> |
| 18773 |
* Fixed some bugs in printline() code that did not escape |
| 18774 |
* control characters '\177' through '\237' and contained a |
| 18775 |
* single-byte buffer overflow. Thanks to Solar Designer |
| 18776 |
* <[email protected]>. |
| 18777 |
* |
| 18778 |
* Sun Sep 17 21:26:16 CEST 2000: Martin Schulze <[email protected]> |
| 18779 |
* Don't close open sockets upon reload. Thanks to Bill |
| 18780 |
* Nottingham. |
| 18781 |
* |
| 18782 |
* Mon Sep 18 09:10:47 CEST 2000: Martin Schulze <[email protected]> |
| 18783 |
* Fixed bug in printchopped() that caused syslogd to emit |
| 18784 |
* kern.emerg messages when splitting long lines. Thanks to |
| 18785 |
* Daniel Jacobowitz <[email protected]> for the fix. |
| 18786 |
* |
| 18787 |
* Mon Sep 18 15:33:26 CEST 2000: Martin Schulze <[email protected]> |
| 18788 |
* Removed unixm/unix domain sockets and switch to Datagram Unix |
| 18789 |
* Sockets. This should remove one possibility to play DoS with |
| 18790 |
* syslogd. Thanks to Olaf Kirch <[email protected]> for the patch. |
| 18791 |
* |
| 18792 |
* Sun Mar 11 20:23:44 CET 2001: Martin Schulze <[email protected]> |
| 18793 |
* Don't return a closed fd if `-a' is called with a wrong path. |
| 18794 |
* Thanks to Bill Nottingham <[email protected]> for providing |
| 18795 |
* a patch. |