72 Commits

Author SHA1 Message Date
Josef Schlehofer
8fcf45d05a syslog-ng: add dependency for ivykis
Replace embedded ivykis with a separate package to improve
dependency management and enable library reuse.

The ivykis library now properly supports io_uring when
CONFIG_KERNEL_IO_URING is enabled.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-10-29 11:18:21 +01:00
Josef Schlehofer
b5d9b7cf9d syslog-ng: update to version 4.10.2
Release notes:
https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-4.10.2

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-10-22 12:55:10 +02:00
Josef Schlehofer
2ba11a2da5 syslog-ng: update to version 4.10.1
Release notes:
https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-4.10.1

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-10-01 15:28:02 +02:00
Josef Schlehofer
b1cfb71f7b syslog-ng: update to version 4.10.0
Release notes:
https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-4.10.0

Makefile changes
----------------

1. Disable experimental feature: stackdump
due to issues, which were reported to upstream

2. Disabled example modules to avoid adding libstdc++.so.6 dependency
Fixes:
Package syslog-ng is missing dependencies for the following libraries:
libstdc++.so.6

Other changes
-------------

In syslog-ng 4.8.0, there was added possibility to use value "current"
as version in the config file, so use it, which confirm to use
the latest version instead of bumping the version in the file
manually.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-09-26 00:53:36 +02:00
Josef Schlehofer
971a2164f5 syslog-ng: add runtime test
It adds a runtime test to verify that the compiled binary in
CI/CD runs without segfault and prints the version.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-09-26 00:10:20 +02:00
Fabrice Fontaine
3d32c62444 admin/syslog-ng: fix PKG_CPE_ID
oneidentity:syslog-ng is a better CPE ID than balabit:syslog-ng as
this CPE ID has the latest CVEs (whereas balabit:syslog-ng only
has a CVE from 2000):
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:oneidentity:syslog-ng

Fixes: 5f07bb1094 (syslog-ng: update to version 3.19.1)

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2025-05-20 13:09:26 +02:00
Sergey Ponomarev
641ec2b644 syslog-ng: alternative for logread
When the syslog-ng installed it records all messages to /var/log/messages.
This makes the default OpenWrt's ubox /sbin/logread useless and return nothing.

The logread script was added to the syslog-ng as a shim.
It's based on `tail /var/log/messages` and repeats basic options that the ubox logread have.
The script is installed instead of the /sbin/logread and this is causes an error.

Instead install it to /usr/libexec/logread.sh and specify as an alternative /sbin/logread.

The ubox logread also needs to be made as alternative in /usr/libexec/logread-ubox.

So we need to give it a separate name.
The most simple and clear would be logread-shell or just logread.sh.

Suggested-by: Andreas Gnau <andreas.gnau@iopsys.eu>
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2024-11-24 11:10:10 +01:00
Josef Schlehofer
9d49df0dab syslog-ng: update to version 4.7.1
Release notes:
- https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-4.7.0
- https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-4.7.1

Also bump version in the config file to avoid warning

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2024-04-26 13:41:49 +02:00
Josef Schlehofer
1e14d95d78 syslog-ng: enable http module based on zlib support in curl
Since version 4.4.0, syslog-ng added compression to http() destination
using zlib from curl. [1] However, zlib is currently disabled in curl [2]
and it prevented syslog-ng to start.

This commit changes the configuration opinion to enable http module only if
zlib support is enabled for curl and as well it adds dependency for zlib (in that case).
If the zlib is disabled, then it disables http module, so syslog-ng can start
and thus zlib dependency is not required.

[1] https://gitlab.nic.cz/turris/os/packages/-/issues/932
[2] 93cbaacbfb/net/curl/Config.in (L134)
Fixes: 4dd49d7c3c ("syslog-ng: update to version 4.4.0")

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2024-03-19 13:25:40 +01:00
Josef Schlehofer
cf4df28d06 syslog-ng: update to version 4.6.0
1. Bump version config to 4.6
2. Updated to 4.6.0 version
https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-4.6.0
https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-4.5.0

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2024-03-05 22:17:24 +01:00
Sergey Ponomarev
37d2d69595 syslog-ng: conf: fix deprecated stats_freq
The deprecated stats_freq() replaced with stats(freq(0)).

Also make comments shorter.
Fix tabs.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
2024-03-05 20:40:05 +01:00
Josef Schlehofer
4dd49d7c3c syslog-ng: update to version 4.4.0
- Release notes:
https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-4.4.0

- Bump version in config file

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2023-10-04 18:02:13 +02:00
Josef Schlehofer
c43599b0c8 syslog-ng: update to version 4.3.1
Makefile changes:
- Since version 4.3.0, there is required to use pcre2 instead of pcre
Reference: https://github.com/syslog-ng/syslog-ng/pull/4537

- Disable c++ support by default to avoid picking libstdcpp dependency
Reference: https://github.com/syslog-ng/syslog-ng/pull/4484

Config changes:
- Bump version in config file

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2023-09-15 09:27:40 +02:00
Josef Schlehofer
1e1b2051db treewide: change my no longer used email
Since February 2023, I decided to no longer work with Turris, I mean CZ.NIC company
due to some reasons how the development goes and since that day my work address is not
available and not sure if there is some redirect to someone else, but if anyone wants to
reach me, use my email address, where they can find me.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2023-09-04 16:02:56 +02:00
W. Michael Petullo
1fcea07981 syslog-ng: update to 4.2.0
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2023-05-20 13:18:29 +08:00
Paul Fertser
0c10c224be treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.

The following temporary change was made to the core:

diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
 abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))

 COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))

 all:
 FORCE: ;

And this command used to fix affected packages:

for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
                              sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
  make package/$i/download
done

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 22:46:58 +02:00
Josef Schlehofer
7de98324c7 syslog-ng: update to version 4.1.1
- Release notes:
https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-4.1.1

- Updated version in config

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2023-04-12 20:22:04 +02:00
Josef Schlehofer
34b7af9e08 syslog-ng: update to version 3.38.1
- Release notes:
https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-3.38.1

- Update the configuration file to use version 4.0 as mentioned in the
  release notes to try the latest changes

Fixes: CVE-2022-38725

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-09-07 14:34:28 +02:00
Petr Štetiar
660fa63faf syslog-ng: fix OOM issues by adding support for logrotate
With heavy system logging which goes by default into `/var/log/messages`
log file which is usually placed in tmpfs/RAM one can trigger OOM killer
fairly easily, thus killing random processes and in some cases making
system unusable.

This is likely happening due to the fact, that Linux by default uses 1/2
of available RAM for tmpfs, which might be for example an issue on low
RAM devices with ath10k wireless.

So let's fix it by adding logrotate functionality which should limit the
size of `/var/log/messages` log file to 1M by default, but could be
tweaked by config knob if needed be.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2022-08-26 16:57:00 +02:00
Josef Schlehofer
ae7aefe111 syslog-ng: update to version 3.37.1
- Changelog:
https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-3.37.1

- Bump config version

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-06-24 11:30:36 -07:00
Josef Schlehofer
110d46eb37 syslog-ng: update to version 3.36.1
- Bump version in config file

Release notes:
https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-3.36.1

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-03-10 16:19:19 +01:00
Sergey V. Lobanov
0a9a52ee77 syslog-ng: fix build on macos
configure script detects Darwin and uses flags incompatible with
Linux target build.

This patch uses fakeuname tool if host OS is MacOS to avoid Darwin
detection on target build.

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-01-26 16:02:58 +03:00
Josef Schlehofer
2d2fd36e28 syslog-ng: update to version 3.35.1
Also bump the version in syslog-ng config file.
Removes this warning:

Nov 16 14:19:41 turris syslog-ng[15159]: WARNING: Configuration file format is too old, syslog-ng is running in compatibility mode. Please update it to use the syslog-ng 3.35 format at your time of convenience. To upgrade the configuration, please review the warnings about incompatible changes printed by syslog-ng, and once completed change the @version header at the top of the configuration file; config-version='3.33'

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2021-11-16 13:28:41 -08:00
Josef Schlehofer
d8e88ef51e syslog-ng: update to version 3.34.1
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2021-10-17 10:14:00 -07:00
Josef Schlehofer
4b06f9ff4c syslog-ng: update to version 3.33.2
Changelog:
https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-3.33.2

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2021-07-21 23:28:23 +02:00
Josef Schlehofer
e319e89fde syslog-ng: disable mqtt
For now, disable mqtt as it was automatically enabled as the build
system finds compiled libpaho-mqtt-c and requires dependency.

---
Here is the output:
Package syslog-ng is missing dependencies for the following libraries:
libpaho-mqtt3c.so.1
---

This is a new feature since syslog-ng 3.33.1 and if anyone is interested
in it, it can be enabled.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2021-07-12 16:16:57 +02:00
Josef Schlehofer
2b4be08a8c syslog-ng: update to version 3.33.1
- Release notes:
https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-3.33.1

- Bump version in config
It fixes:
WARNING: Configuration file format is too old, syslog-ng is running in compatibility mode. Please update it to use the syslog-ng 3.33 format at your time of convenience. To upgrade the configuration, please review the warnings about incompatible changes printed by syslog-ng, and once completed change the @version header at the top of the configuration file; config-version='3.31'

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2021-07-11 20:23:28 +02:00
W. Michael Petullo
f93ef64793 syslog-ng: update to 3.32.1
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2021-05-10 23:29:40 +02:00
Josef Schlehofer
3d817e968e syslog-ng: update to version 3.31.2
Bump config file

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2021-03-22 11:19:12 +01:00
Josef Schlehofer
e0f76cfa82 syslog-ng: update to version 3.30.1
Bump version also in config file

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2020-12-02 01:10:16 +01:00
Josef Schlehofer
1607774df4 syslog-ng: bump version in config file
This fixes issues:
syslog-ng[3895]: WARNING: Configuration file format is too old, syslog-ng is running in compatibility mode. Please update it to use the syslog-ng 3.29 format at your time of convenience. To upgrade the configuration, please review the warnings about incompatible changes printed by syslog-ng, and once completed change the @version header at the top of the configuration file; config-version='3.26'

Fixes: 06f3ac21b4 ("syslog-ng: update to
version 3.29.1")

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2020-10-02 11:29:24 +02:00
Karel Kočí
7b7d074c8d syslog-ng: tweak shell code of network_localhost little bit
We can get rid of pipe with -n flag to sysctl.

Signed-off-by: Karel Kočí <cynerd@email.cz>
2020-09-13 11:29:43 +02:00
Josef Schlehofer
06f3ac21b4 syslog-ng: update to version 3.29.1
Changelog: https://github.com/syslog-ng/syslog-ng/releases/tag/syslog-ng-3.29.1

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2020-09-12 11:10:28 +02:00
Karel Kočí
43a8f7072e syslog-ng: detect disabled IPv6 on loopback and fallback to IPv4
Binding in default to IPv6 is preferable but it can be disabled in
kernel and that prevents syslog-ng to start. This setup should not be
that common but syslog is very important service and should survive
that.

This introduces new plugin defining source generator
`network_localhost`. This is used instead of original network source.

Signed-off-by: Karel Kočí <cynerd@email.cz>
2020-06-26 13:04:46 +02:00
Rosen Penev
a642cef8ad Merge pull request #12197 from BKPepe/syslog-ng
syslog-ng: update to version 3.27.1
2020-05-19 15:15:11 -07:00
Josef Schlehofer
d4db36ea09 syslog-ng: update to version 3.27.1
snmp-dest was moved to afsnmp

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2020-05-17 17:54:04 +02:00
Josef Schlehofer
cb7d8210d3 Merge pull request #12091 from pprindeville/syslog-ng-restore-reload
syslog-ng: restore service "reload" to actually working
2020-05-17 15:40:48 +02:00
Philip Prindeville
c27f4ca53b syslog-ng: restore service "reload" to actually working
Commit 44a16ca broke syslog-ng such that it no longer works with
logrotate, for example.  Yes, you can manually stop and start the
service, but (1) you shouldn't have to and (2) it creates a window
where you potentially lose messages if the syslog UDP socket
overruns.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2020-05-06 10:38:43 -06:00
Philip Prindeville
f8443ae829 syslog-ng: including user settings after system settings
Initially we included user-specific settings last, so that they
could turn off or replace system settings... otherwise we only get
to change what's NOT explicitly set by the system.  This is overly
constraining.

Restore the original functionality of allowing the user to
override settings defined by the distribution's configuration.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2020-05-02 17:22:50 -06:00
Josef Schlehofer
fe165eeb94 syslog-ng: update to version 3.26.1
- Bump version also in the config file
- Move logread to /sbin location instead of /usr/sbin
Because package logd in OpenWrt's ubox Makefile uses /sbin folder and LuCI has
the same path hardcoded in
modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json and using
different location results that LuCI is not able to load log data as it
is not found.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2020-03-08 07:53:35 +01:00
Alexander Traud
a4553b2efe syslog-ng: listen not globally but just locally
Beside that, listen not only on IPv4 but also on IPv6 = Dual Stack.

Signed-off-by: Alexander Traud <pabstraud@compuserve.com>
2020-01-27 21:39:26 +01:00
Josef Schlehofer
ac4870f205 syslog-ng: Update to version 3.25.1
Bump version in config

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-12-18 21:44:37 +01:00
Josef Schlehofer
72f8cda2a5 syslog-ng: Update to version 3.24.1
Bump version also in config file

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-10-14 09:06:29 +02:00
Josef Schlehofer
d4eed8c422 syslog-ng: Add GPL license for plugins
- Correct SPDX License Identifier
- Move DEPENDS under URL

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-09-01 16:24:32 +02:00
Josef Schlehofer
298a91364c syslog-ng: Update to version 3.23.1
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-09-01 16:19:58 +02:00
Josef Schlehofer
e07cc320d8 syslog-ng: update to version 3.22.1
- Bump version in the config and improve a link for documentation
- Disable snmp destination for now

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-07-04 07:29:22 +02:00
Karel Kočí
44a16ca325 syslog-ng: improve init and fix service stop
This fixes service stop. Problem was that in default syslog-ng forks to
background which causes procd to loose track of it. It no longer has in
such case PID of syslog-ng process and is unable to stop it. This means
that instance for such process hangs in procd and also it is not
possible to stop it as daemon. Fix is simple. syslog-ng is now
instructed to run in foreground.

This commit also drops unnecessary reload section. In default reload
calls restart and restart in default is implemented as calling stop and
start. This means that effectively it is implemented same as in case of
this init reload service implementation.

Signed-off-by: Karel Kočí <karel.koci@nic.cz>
2019-06-10 09:53:18 +02:00
Josef Schlehofer
960dae682a syslog-ng: update to version 3.21.1
Bump also version in config

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-05-13 21:48:34 +02:00
Karel Kočí
00d3817b04 syslog-ng: disable geoip2 support
Signed-off-by: Karel Kočí <karel.koci@nic.cz>
2019-03-25 00:51:41 +01:00
Josef Schlehofer
d4aa683306 syslog-ng: superseded current maintainer by me
Signed-off-by: Josef Schlehofer <josef.schlehofer@nic.cz>
2019-03-08 15:36:32 +01:00