syslog-ng is an enhanced log daemon, supporting a wide range of input and output methods: syslog, unstructured text, queueing, SQL & NoSQL.
syslog-ng is an enhanced log daemon, supporting a wide range of input and output methods: syslog, unstructured text, queueing, SQL & NoSQL.
syslog-ng is an enhanced log daemon, supporting a wide range of input and output methods: syslog, unstructured text, message queues, databases (SQL and NoSQL alike), and more.
The simplest configuration accepts system logs from /dev/log (from applications or forwarded by systemd) and writes everything to a single file:
@version: current
@include "scl.conf"
log {
source { system(); };
destination { file("/var/log/syslog"); };
};This one additionally processes logs from the network (TCP/514 by default):
@version: current
@include "scl.conf"
log {
source {
system();
network();
};
destination { file("/var/log/syslog"); };
};This config is designed for structured/application logging, using local submission via JSON, and outputting in key=value format:
@version: current
@include "scl.conf"
log {
source { system(); };
destination { file("/var/log/app.log" template("$(format-welf --subkeys .cim.)\n")); };
};To submit a structured log using logger, you might run:
$ logger '@cim: {"name1":"value1", "name2":"value2"}'In which case the resulting message will be:
name1=value1 name2=value2For a brief introduction to configuring the syslog-ng application, see the quickstart guide.
We are really interested to see who uses our software, so if you do use it and you like what you see, please tell us about it. A star on github or an email saying thanks means a lot already, but telling us about your use case, your experience, and things to improve would be much appreciated.
Just send an email to feedback (at) syslog-ng.org.
Feedback Powers Open Source.
Releases and precompiled tarballs are available on GitHub.
To compile from source, the easiest is to use dbld, a docker based,
self-hosted compile/build/release infrastructure within the source tree. See
dbld/README.md for more information.
For the brave souls who want to compile syslog-ng from scratch, the usual drill applies:
$ ./configure && make && make installThe extra effort in contrast with the dbld based build is the need to fetch and install all build dependencies of syslog-ng (of which there are a few).
If you don't have a configure script (because of cloning from git, for example), run
./autogen.shto generate it.
Some of the functionality of syslog-ng is compiled only if the required development libraries are present. The configure script displays a summary of enabled features at the end of its run. For details, see the syslog-ng compiling instructions.
Binaries are available in various Linux distributions and contributors maintain packages of the latest and greatest syslog-ng version for various OSes.
Simply invoke the following command as root:
apt install syslog-ngThe latest versions of syslog-ng are available for a wide range of Debian and Ubuntu releases from our APT repository.
The packages and the APT repository are provided "as is" without warranty of any kind, on a best-effort level.
syslog-ng packages are released for the following distribution versions:
| Distro version | sources.list component name | Arch | stable | nightly |
|---|---|---|---|---|
| Ubuntu 26.04 | ubuntu-resolute | x86-64 | stable | nightly |
| Ubuntu 26.04 | ubuntu-resolute-arm64 | arm64 | stable | nightly |
| Ubuntu 25.04 | ubuntu-plucky | x86-64 | stable | nightly |
| Ubuntu 25.04 | ubuntu-plucky-arm64 | arm64 | stable | nightly |
| Ubuntu 24.04 | ubuntu-noble | x86-64 | stable | nightly |
| Ubuntu 24.04 | ubuntu-noble-arm64 | arm64 | stable | nightly |
| Ubuntu 22.04 | ubuntu-jammy | x86-64 | stable | nightly |
| Debian 13 | debian-trixie | x86-64 | stable | nightly |
| Debian 13 | debian-trixie-arm64 | arm64 | stable | nightly |
| Debian 12 | debian-bookworm | x86-64 | stable | nightly |
| Debian 12 | debian-bookworm-arm64 | arm64 | stable | nightly |
| Debian Unstable | debian-sid | x86-64 | stable | nightly |
| Debian Testing | debian-testing | x86-64 | stable | nightly |
Download and store the release signing key:
wget -qO - https://ose-repo.syslog-ng.com/apt/syslog-ng-ose-pub.asc | sudo apt-key add -with newer apt (like on Debian 13 - Trixie)
wget -qO - https://ose-repo.syslog-ng.com/apt/syslog-ng-ose-pub.asc | sudo gpg --dearmor -o /etc/apt/keyrings/syslog-ng-ose.gpgAdd the repository containing the latest stable build of syslog-ng to your APT sources.
For example if you are running Debian 13 on ARM64, you would use debian-trixie-arm64 (see chart above)
NOTE: For X86-64 you do not have to use any postfix, so, for Debian 13 on X86-64, you should simply use debian-trixie.
deb [signed-by=/etc/apt/keyrings/syslog-ng-ose.gpg] https://ose-repo.syslog-ng.com/apt/ stable <os>-<codename>[-<architecture>]on newer OSes (like on Debian 13 - Trixie)
echo "deb [signed-by=/etc/apt/keyrings/syslog-ng-ose.gpg] https://ose-repo.syslog-ng.com/apt/ stable <os>-<codename>[-<architecture>]" | sudo tee /etc/apt/sources.list.d/syslog-ng-ose.list > /dev/nullUpdate your repositories with
sudo apt updateNow install syslog-ng:
sudo apt install syslog-ngNightly packages are built and released from the git develop branch everyday.
Use nightly instead of stable in step 2 to use the nightly APT repository. e.g.:
echo "deb https://ose-repo.syslog-ng.com/apt/ nightly ubuntu-noble" | sudo tee -a /etc/apt/sources.list.d/syslog-ng-ose.listNightly builds can be used for testing purposes (obtaining new features and bugfixes) at the risk of breakage.
Simply invoke the following command as root:
dnf install syslog-ngThe latest versions of syslog-ng are available for a wide range of RHEL releases from our DNF repository.
The packages and the DNF repository are provided "as is" without warranty of any kind, on a best-effort level.
syslog-ng packages are released for the following distribution versions:
| Distro version | sources.list component name | Arch | stable | nightly |
|---|---|---|---|---|
| RHEL 8 | rhel8 | x86-64 | stable | nightly |
| RHEL 8 | rhel8-arm64 | arm64 | stable | nightly |
| RHEL 9 | rhel9 | x86-64 | stable | nightly |
| RHEL 9 | rhel9-arm64 | arm64 | stable | nightly |
| RHEL 10 | rhel10 | x86-64 | stable | nightly |
| RHEL 10 | rhel10-arm64 | arm64 | [stable](https://ose-repo.syslog-n |
No open issues yet, or sync has not completed.