Skip to content

Commit dc307eb

Browse files
authored
Merge pull request #913 from axoflow/version/4.22.0
Version: 4.22.0
2 parents 367c017 + e136a78 commit dc307eb

27 files changed

+85
-103
lines changed

NEWS.md

Lines changed: 38 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
4.21.0
1+
4.22.0
22
======
33

44
AxoSyslog is binary-compatible with syslog-ng [1] and serves as a drop-in replacement.
@@ -9,72 +9,61 @@ Packages are available in our [APT](https://github.com/axoflow/axosyslog/#deb-pa
99

1010
Check out the [AxoSyslog documentation](https://axoflow.com/docs/axosyslog-core/) for all the details.
1111

12+
1213
## Features
1314

14-
* `format_syslog_5424()`: Added new FilterX function for syslog formatting
15+
* FilterX `in` operator: Added support for `dict` keys for membership check.
1516

16-
Usage:
1717
```
18-
format_syslog_5424(
19-
message,
20-
add_octet_count=false,
21-
pri=expr,
22-
timestamp=expr,
23-
host=expr,
24-
program=expr,
25-
pid=expr,
26-
msgid=expr
27-
)
18+
my_dict = {"foo": "foovalue", "bar": "barvalue"};
19+
my_needle = "foobar";
20+
21+
if (my_needle in my_dict) {
22+
$MSG = "Found: " + my_dict[my_needle];
23+
} else {
24+
$MSG = "Not Found";
25+
};
2826
```
27+
([#888](https://github.com/axoflow/axosyslog/pull/888))
2928
30-
`message` is the only mandatory argument.
31-
32-
Fallback values will be used instead of the named arguments
33-
if they are not set, or their evaluation fails.
34-
([#875](https://github.com/axoflow/axosyslog/pull/875))
3529
36-
* `http()` and other threaded destinations: add `worker-partition-autoscaling(yes)`
30+
## Bugfixes
3731
38-
When `worker-partition-key()` is used to categorize messages into different batches,
39-
the messages are - by default - hashed into workers, which prevents them from being distributed across workers
40-
efficiently, based on load.
32+
* `parallelize()`: Fixed occasional crashes on high load.
33+
([#904](https://github.com/axoflow/axosyslog/pull/904))
4134
42-
The new `worker-partition-autoscaling(yes)` option uses a 1-minute statistic to help distribute
43-
high-traffic partitions among multiple workers, allowing each worker to maximize its batch size.
35+
* `parallelize()`: Fixed unoptimized parallelization with more `workers()` than CPU cores.
36+
([#906](https://github.com/axoflow/axosyslog/pull/906))
4437
45-
When using this autoscaling option, it is recommended to oversize the number of workers: set it higher than the
46-
expected number of partitions.
47-
([#855](https://github.com/axoflow/axosyslog/pull/855))
38+
* FilterX `regexp_subst()` function: Fixed capture group references in the replacement argument.
4839
49-
* `network()`: add `transport(nul-terminated)` to support NULL characters to separate log records instead of the
50-
more traditional newline separated format
51-
([#867](https://github.com/axoflow/axosyslog/pull/867))
40+
In the case of `global=true`, the value of capture group references were always used from
41+
that of the first match, e.g. the 2nd and subseqent matches used an incorrect value.
42+
([#895](https://github.com/axoflow/axosyslog/pull/895))
5243
53-
* New metrics: `syslogng_output_workers` and `syslogng_output_active_worker_partitions`
44+
* `disk-buffer()`: Fixed various bugs.
5445
55-
Using the new `worker-partition-autoscaling(yes)` option allows producing partition metrics, which can be used
56-
for alerting: if the number of active partitions remains higher than the configured number of workers,
57-
it may indicate that events are not being batched properly, which can lead to performance degradation.
58-
([#866](https://github.com/axoflow/axosyslog/pull/866))
46+
* Fixed potential writes beyond the configured front-cache limit.
47+
* Fixed a possible issue where memory usage metrics could reset on reload.
5948
60-
## Bugfixes
49+
([#901](https://github.com/axoflow/axosyslog/pull/901))
6150
62-
* FilterX `parse_csv()`: fix crash
63-
([#879](https://github.com/axoflow/axosyslog/pull/879))
6451
65-
* FilterX `metrics_labels()`: fix `+=` operator
66-
([#878](https://github.com/axoflow/axosyslog/pull/878))
52+
## Other changes
6753
68-
* `disk-buffer()`: fix memory leaks
69-
([#872](https://github.com/axoflow/axosyslog/pull/872))
54+
* `disk-buffer()`: Various smaller improvements and QoL features.
7055
71-
## Other changes
56+
* Added detailed debug logging for diskbuffer load and save operations,
57+
exposing the internal state of the non-reliable diskbuffer.
58+
* Improved front-cache balancing by enforcing the front-cache limit when
59+
distributing items between front-cache and front-cache-output.
60+
* Improved calculation of abandoned diskbuffer metrics by using existing
61+
file header data instead of loading the entire buffer file,
62+
significantly reducing reload time impact.
7263
73-
* `disk-buffer()`: significant performance improvements for the non-reliable disk buffer
74-
([#857](https://github.com/axoflow/axosyslog/pull/857))
64+
([#901](https://github.com/axoflow/axosyslog/pull/901))
65+
([#902](https://github.com/axoflow/axosyslog/pull/902))
7566
76-
* Performance improvements for memory queues
77-
([#881](https://github.com/axoflow/axosyslog/pull/881))
7867
7968
[1] syslog-ng is a trademark of One Identity.
8069
@@ -95,5 +84,5 @@ of AxoSyslog, contribute.
9584
9685
We would like to thank the following people for their contribution:
9786
98-
Andras Mitzki, Attila Szakacs, Balazs Scheidler, László Várady, Szilard Parrag,
99-
Tamás Kosztyu, shifter
87+
Andras Mitzki, Attila Szakacs, Balazs Scheidler,
88+
BenBryzak-brisbaneqldgovau, László Várady, Szilard Parrag, shifter

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ A simple example is to ingest syslog traffic on tcp/514 and write it to a
4545
file:
4646

4747
```
48-
@version: 4.21
48+
@version: 4.22
4949
@include "scl.conf"
5050
5151
log {
@@ -85,7 +85,7 @@ docker pull ghcr.io/axoflow/axosyslog:nightly
8585
> Note: These named packages are automatically updated when a new AxoSyslog package is released. To install a specific version, run `docker pull ghcr.io/axoflow/axosyslog:<version-number>`, for example:
8686
>
8787
> ```shell
88-
> docker pull ghcr.io/axoflow/axosyslog:4.21.0
88+
> docker pull ghcr.io/axoflow/axosyslog:4.22.0
8989
> ```
9090
9191
The container images contain a default configuration file which you probably

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.21.0
1+
4.22.0

contrib/openbsd-packaging/syslog-ng.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This should provide behavior similar to OpenBSD's syslog.conf(5).
33
# 2021-05-24 millert@openbsd.org
44

5-
@version: 4.21
5+
@version: 4.22
66
@requires openbsd
77

88
options {

doc/man/dqtool.1.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<refmeta>
3131
<refentrytitle>dqtool</refentrytitle>
3232
<manvolnum>1</manvolnum>
33-
<refmiscinfo class="version">4.21</refmiscinfo>
33+
<refmiscinfo class="version">4.22</refmiscinfo>
3434
<refmiscinfo class="source"/>
3535
</refmeta>
3636
<refnamediv>
@@ -117,7 +117,7 @@ Mar 3 10:52:05 tristram localprg[1234]: seq: 0000011631, runid: 1267609923, sta
117117
<link linkend="syslog-ng.8"><command>syslog-ng</command>(8)</link>
118118
</para>
119119
<note version="5.0">
120-
<para>For the detailed documentation of see <link xmlns:ns1="http://www.w3.org/1999/xlink" ns1:href="https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.37/administration-guide"><command>The 4.21 Administrator Guide</command></link></para>
120+
<para>For the detailed documentation of see <link xmlns:ns1="http://www.w3.org/1999/xlink" ns1:href="https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.37/administration-guide"><command>The 4.22 Administrator Guide</command></link></para>
121121
<para>If you experience any problems or need help with syslog-ng, visit the <link xmlns:ns1="http://www.w3.org/1999/xlink" ns1:href="https://lists.balabit.hu/mailman/listinfo/syslog-ng"><command>syslog-ng mailing list</command></link>.</para>
122122
<para>For news and notifications about of syslog-ng, visit the <link xmlns:ns1="http://www.w3.org/1999/xlink" ns1:href="https://syslog-ng.org/blogs/"><command>syslog-ng blogs</command></link>.</para>
123123
</note>

doc/man/loggen.1.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<refmeta>
3131
<refentrytitle>loggen</refentrytitle>
3232
<manvolnum>1</manvolnum>
33-
<refmiscinfo class="version">4.21</refmiscinfo>
33+
<refmiscinfo class="version">4.22</refmiscinfo>
3434
<refmiscinfo class="source"/>
3535
</refmeta>
3636
<refnamediv>
@@ -280,7 +280,7 @@
280280
<link linkend="syslog-ng.conf.5"><command>syslog-ng.conf</command>(5)</link>
281281
</para>
282282
<note version="5.0">
283-
<para>For the detailed documentation of see <link xmlns:ns1="http://www.w3.org/1999/xlink" ns1:href="https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.37/administration-guide"><command>The 4.21 Administrator Guide</command></link></para>
283+
<para>For the detailed documentation of see <link xmlns:ns1="http://www.w3.org/1999/xlink" ns1:href="https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.37/administration-guide"><command>The 4.22 Administrator Guide</command></link></para>
284284
<para>If you experience any problems or need help with syslog-ng, visit the <link xmlns:ns1="http://www.w3.org/1999/xlink" ns1:href="https://lists.balabit.hu/mailman/listinfo/syslog-ng"><command>syslog-ng mailing list</command></link>.</para>
285285
<para>For news and notifications about of syslog-ng, visit the <link xmlns:ns1="http://www.w3.org/1999/xlink" ns1:href="https://syslog-ng.org/blogs/"><command>syslog-ng blogs</command></link>.</para>
286286
</note>

doc/man/pdbtool.1.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<refmeta>
3131
<refentrytitle>pdbtool</refentrytitle>
3232
<manvolnum>1</manvolnum>
33-
<refmiscinfo class="version">4.21</refmiscinfo>
33+
<refmiscinfo class="version">4.22</refmiscinfo>
3434
<refmiscinfo class="source"/>
3535
</refmeta>
3636
<refnamediv>
@@ -377,7 +377,7 @@
377377
</term>
378378
<listitem>
379379
<para>A pattern is added to the output pattern database if at least the specified percentage of log messages from the input logfile match the pattern. For example, if the input logfile contains 1000 log messages and the <parameter>--support=3.0</parameter> option is used, a pattern is created only if the pattern matches at least 3 percent of the log messages (that is, 30 log messages). If patternize does not create enough patterns, try to decrease the support value.</para>
380-
<para>Default value: <parameter>4.21</parameter></para>
380+
<para>Default value: <parameter>4.22</parameter></para>
381381
</listitem>
382382
</varlistentry>
383383
<varlistentry version="5.0">
@@ -467,7 +467,7 @@
467467
<link linkend="syslog-ng.8"><command>syslog-ng</command>(8)</link>
468468
</para>
469469
<note version="5.0">
470-
<para>For the detailed documentation of see <link xmlns:ns1="http://www.w3.org/1999/xlink" ns1:href="https://www.balabit.com/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/index.html"><command>The 4.21 Administrator Guide</command></link></para>
470+
<para>For the detailed documentation of see <link xmlns:ns1="http://www.w3.org/1999/xlink" ns1:href="https://www.balabit.com/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/index.html"><command>The 4.22 Administrator Guide</command></link></para>
471471
<para>If you experience any problems or need help with syslog-ng, visit the <link xmlns:ns1="http://www.w3.org/1999/xlink" ns1:href="https://lists.balabit.hu/mailman/listinfo/syslog-ng"><command>syslog-ng mailing list</command></link>.</para>
472472
<para>For news and notifications about of syslog-ng, visit the <link xmlns:ns1="http://www.w3.org/1999/xlink" ns1:href="https://syslog-ng.org/blogs/"><command>syslog-ng blogs</command></link>.</para>
473473
</note>

doc/man/persist-tool.1.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<refmeta>
3131
<refentrytitle>persist-tool</refentrytitle>
3232
<manvolnum>1</manvolnum>
33-
<refmiscinfo class="version">4.21</refmiscinfo>
33+
<refmiscinfo class="version">4.22</refmiscinfo>
3434
<refmiscinfo class="source"/>
3535
</refmeta>
3636
<refnamediv>
@@ -130,7 +130,7 @@ affile_sd_curpos(/var/aaa.txt) OK</synopsis>
130130
<para><link linkend="syslog-ng.conf.5"> <command>syslog-ng.conf</command>(5)</link></para>
131131
<para><link linkend="syslog-ng.8"> <command>syslog-ng</command>(8)</link></para>
132132
<note version="5.0">
133-
<para>For the detailed documentation of see <link xmlns:ns1="http://www.w3.org/1999/xlink" ns1:href="https://www.balabit.com/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/index.html"><command>The 4.21 Administrator Guide</command></link></para>
133+
<para>For the detailed documentation of see <link xmlns:ns1="http://www.w3.org/1999/xlink" ns1:href="https://www.balabit.com/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/index.html"><command>The 4.22 Administrator Guide</command></link></para>
134134
<para>If you experience any problems or need help with syslog-ng, visit the <link xmlns:ns1="http://www.w3.org/1999/xlink" ns1:href="https://lists.balabit.hu/mailman/listinfo/syslog-ng"><command>syslog-ng mailing list</command></link>.</para>
135135
<para>For news and notifications about of syslog-ng, visit the <link xmlns:ns1="http://www.w3.org/1999/xlink" ns1:href="https://syslog-ng.org/blogs/"><command>syslog-ng blogs</command></link>.</para>
136136
</note>

doc/man/secure-logging.7.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<refmeta>
3131
<refentrytitle>secure-logging</refentrytitle>
3232
<manvolnum>7</manvolnum>
33-
<refmiscinfo class="version">4.21</refmiscinfo>
33+
<refmiscinfo class="version">4.22</refmiscinfo>
3434
<refmiscinfo class="source"/>
3535
</refmeta>
3636
<refnamediv>
@@ -190,7 +190,7 @@ AgAAAAAAAAA=:5UVybnKL1EAbgC4CLfd8HpgurjREf4LEN61/yWHSD2hbXjRD4QmQdtbwguT1chzdItK
190190
# entries will be logged to a single file called /var/log/messages.slog
191191
#
192192
193-
@version: 4.21
193+
@version: 4.22
194194
@include "scl.conf"
195195
196196
source s_local {

doc/man/slogencrypt.1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<refmeta>
3131
<refentrytitle>slogencrypt</refentrytitle>
3232
<manvolnum>1</manvolnum>
33-
<refmiscinfo class="version">4.21</refmiscinfo>
33+
<refmiscinfo class="version">4.22</refmiscinfo>
3434
<refmiscinfo class="source"/>
3535
</refmeta>
3636
<refnamediv>

0 commit comments

Comments
 (0)