Skip to content

Commit d8e530c

Browse files
authored
Merge pull request #782 from axoflow/version/4.17.0
Version: 4.17.0
2 parents f5b2835 + eebda29 commit d8e530c

33 files changed

+113
-156
lines changed

.mailmap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ Attila Szakacs <attila.szakacs@balabit.com> <attila.szakacs@quest.com>
1414
Attila Szakacs <attila.szakacs@balabit.com> <attila.szakacs@balabit.com>
1515
Attila Szakacs <attila.szakacs@balabit.com> <attila.szakacs@oneidentity.com>
1616
Attila Szakacs <attila.szakacs@balabit.com> <45236571+alltilla@users.noreply.github.com>
17-
Attila Szakacs <attila.szakacs@balabit.com> <szakacs.attila96@gmail.com>
18-
Attila Szakacs <attila.szakacs@balabit.com> <attila.szakacs@axoflow.com>
1917
Balint Kovacs <balint.kovacs@balasys.hu> <blint@balabit.hu>
2018
Balint Kovacs <balint.kovacs@balasys.hu> <blint@blint.hu>
2119
Fabien Wernli <wernli@in2p3.fr> <wernli@in2p3.fr>
@@ -39,7 +37,6 @@ Lorand Muzamel <lorand.muzamel@balabit.com> <lorand.muzamel@balabit.com>
3937
Lorand Muzamel <lorand.muzamel@balabit.com> <lorand.muzamel@oneidentity.com>
4038
László Várady <laszlo.varady@balabit.com> <3130044+MrAnno@users.noreply.github.com>
4139
László Várady <laszlo.varady@balabit.com> <MrAnno@users.noreply.github.com>
42-
László Várady <laszlo.varady@balabit.com> <laszlo.varady93@gmail.com>
4340
László Várady <laszlo.varady@balabit.com> <laszlo.varady@balabit.com>
4441
Marton ILLES <marton.illes@balabit.com> <marton.illes@balabit.com>
4542
Marton ILLES <marton.illes@balabit.com> <marci@balabit.com>

NEWS.md

Lines changed: 66 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
4.16.0
1+
4.17.0
22
======
33

44
AxoSyslog is binary-compatible with syslog-ng [1] and serves as a drop-in replacement.
@@ -11,77 +11,93 @@ Check out the [AxoSyslog documentation](https://axoflow.com/docs/axosyslog-core/
1111

1212
## Features
1313

14-
* New `$PROTO_NAME` macro: add a $PROTO_NAME macro that expands to "tcp" or
15-
"udp" depending on the transport used by syslog-ng.
16-
([#724](https://github.com/axoflow/axosyslog/pull/724))
14+
* FilterX `dpath()`: new function to set a potentially non-existing path within a dict
1715

16+
For example,
17+
```
18+
dpath(dict.path.to["complex.n-v"].create) = {...};
19+
```
20+
([#746](https://github.com/axoflow/axosyslog/pull/746))
1821
19-
## Bugfixes
22+
* FilterX string slices: support negative indexing
2023
21-
* Fix memory leaks during configuration parsing
22-
([#755](https://github.com/axoflow/axosyslog/pull/755))
24+
For example,
25+
```
26+
filterx {
27+
str = "example";
28+
str[..-2] == "examp";
29+
str[-3..] == "ple";
30+
};
31+
```
32+
([#780](https://github.com/axoflow/axosyslog/pull/780))
2333
24-
* `grpc` based destinations: Fixed a race condition around `syslogng_output_grpc_requests_total` metrics
25-
([#754](https://github.com/axoflow/axosyslog/pull/754))
34+
* `parallelize()`: add `batch-size()` option and other perf improvements
2635
27-
* `$PEER_PORT`: fix the value for the PEER_PORT macro, as it was incorrectly
28-
reversing the digits in the port value, port 514 would become port 415.
29-
([#724](https://github.com/axoflow/axosyslog/pull/724))
36+
The `batch-size()` option specifies, for each input thread, how many consecutive
37+
messages should be processed by a single `parallelize()` worker.
3038
31-
* `google-pubsub()`, `logscale()`, `openobserver()`, `splunk()`, and other batching destinations: fix slowdown
39+
This ensures that this many messages preserve their order on the output side
40+
and also improves `parallelize()` performance. A value around 100 is recommended.
41+
([#757](https://github.com/axoflow/axosyslog/pull/757))
3242
33-
The default value of `batch-timeout()` is now 0.
34-
This prevents artificial slowdowns in destinations when flow control is enabled
35-
and the `log-iw-size()` option of sources is set to a value lower than `batch-lines()`.
43+
* `clickhouse-destination()`: new `json-var()` directive
3644
37-
If you enable `batch-timeout()`, you can further improve batching performance,
38-
but you must also adjust the `log-iw-size()` option of your sources accordingly:
45+
The new `json-var()` option accepts either a JSON template or a variable containing a JSON string, and sends it to the ClickHouse server in Protobuf/JSON mixed mode (JSONEachRow format). In this mode, type validation is performed by the ClickHouse server itself, so no Protobuf schema is required for communication.
3946
40-
`log-iw-size / max-connections >= batch-lines * workers`
41-
([#753](https://github.com/axoflow/axosyslog/pull/753))
47+
This option is mutually exclusive with `proto-var()`, `server-side-schema()`, `schema()`, and `protobuf-schema()` directives.
4248
49+
example:
50+
```
51+
destination {
52+
clickhouse (
53+
...
54+
json-var("$json_data");
55+
or
56+
json-var(json("{\"ingest_time\":1755248921000000000, \"body\": \"test template\"}"))
57+
...
58+
};
59+
};
60+
```
61+
([#761](https://github.com/axoflow/axosyslog/pull/761))
4362
44-
## FilterX features
63+
* FilterX `parse_kv()`: add `stray_words_append_to_value` flag
4564
46-
* `str_strip()`, `str_lstrip()`, `str_rstrip()`: new string transformation functions to remove leading/trailing whitespaces from a string
47-
([#745](https://github.com/axoflow/axosyslog/pull/745))
65+
For example,
66+
```
67+
filterx {
68+
$MSG = parse_kv($MSG, value_separator="=", pair_separator=" ", stray_words_append_to_value=true);
69+
};
4870
71+
input: a=b b=c d e f=g
72+
output: {"a":"b","b":"c d e","f":"g"}
73+
```
74+
([#770](https://github.com/axoflow/axosyslog/pull/770))
4975
50-
## FilterX bugfixes
5176
52-
* `in` operator: fix crash, that happened, when the list was declared as an operand
77+
## Bugfixes
5378
54-
Example:
55-
```
56-
if ("test" in ["foo", "bar", "test"]) {
57-
$MSG = "YES";
58-
};
59-
```
60-
([#759](https://github.com/axoflow/axosyslog/pull/759))
79+
* filterx: fix `startswith()`/`endswith()`/`includes()` functions early free
80+
([#772](https://github.com/axoflow/axosyslog/pull/772))
6181
62-
* `parse_cef()`, `parse_leef()`: Renamed some parsed header fields.
82+
* `/string/`: fix escaping
6383
64-
**These are breaking changes**
84+
Strings between / characters are now treated literally. The only exception is `\/`, which can be used to represent a `/` character.
6585
66-
The motivation behind the renaming is that these names were too
67-
generic, and there is a chance to find them in the extensions.
86+
This syntax allows you to construct regular expression patterns without worrying about double escaping.
6887
69-
`parse_cef()`:
70-
* `version` -> `cef_version`
71-
* `name` -> `event_name`
88+
Note: Because of the simplified escaping rules, you cannot represent strings that end with a single `\` character,
89+
but such strings would not be valid regular expression patterns anyway.
90+
([#776](https://github.com/axoflow/axosyslog/pull/776))
7291
73-
`parse_leef()`:
74-
* `version` -> `leef_version`
75-
* `vendor` -> `vendor_name`
76-
* `delimiter` -> `leef_delimiter`
77-
([#748](https://github.com/axoflow/axosyslog/pull/748))
92+
* `program()` destination: Fix invalid access of freed log-writer cfg.
93+
([#779](https://github.com/axoflow/axosyslog/pull/779))
7894
95+
* `ebpf()`: acquire CAP_BPF before loading eBPF programs
7996
80-
## Other changes
97+
Previously, when AxoSyslog was compiled with Linux capabilities enabled,
98+
the `ebpf()` module was unable to load programs.
99+
([#768](https://github.com/axoflow/axosyslog/pull/768))
81100
82-
* The base of the AxoSyslog container image is updated to Alpine 3.22
83-
([#758](https://github.com/axoflow/axosyslog/pull/758))
84-
* `mongodb()`: support libmongoc v2
85101
86102
87103
[1] syslog-ng is a trademark of One Identity.
@@ -103,5 +119,5 @@ of AxoSyslog, contribute.
103119
104120
We would like to thank the following people for their contribution:
105121
106-
Andras Mitzki, Attila Szakacs, Balazs Scheidler, László Várady,
107-
Tamás Kosztyu
122+
Andras Mitzki, Attila Szakacs, Balazs Scheidler, Ben Ireland,
123+
László Várady, Szilard Parrag, Tamás Kosztyu, 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.16
48+
@version: 4.17
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.16.0
88+
> docker pull ghcr.io/axoflow/axosyslog:4.17.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.16.0
1+
4.17.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.16
5+
@version: 4.17
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.16</refmiscinfo>
33+
<refmiscinfo class="version">4.17</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.16 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.17 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.16</refmiscinfo>
33+
<refmiscinfo class="version">4.17</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.16 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.17 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.16</refmiscinfo>
33+
<refmiscinfo class="version">4.17</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.16</parameter></para>
380+
<para>Default value: <parameter>4.17</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.16 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.17 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.16</refmiscinfo>
33+
<refmiscinfo class="version">4.17</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.16 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.17 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.16</refmiscinfo>
33+
<refmiscinfo class="version">4.17</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.16
193+
@version: 4.17
194194
@include "scl.conf"
195195
196196
source s_local {

0 commit comments

Comments
 (0)