Installation
How to compile syslog-ng on macOS. This guide includes specific instructions for macOS with Apple Silicon.
Last updated
Was this helpful?
How to compile syslog-ng on macOS. This guide includes specific instructions for macOS with Apple Silicon.
Last updated
Was this helpful?
At present, macOS syslog-ng is not supported on the official repository. However, you can compile it from the source using this guide.
Note: the guide is tested on ARM macOS Ventura 13.4, and Intel macOS Monterey 12.6.6 machines, your actual system may require additional steps or slightly different settings.
Like every project syslog-ng also uses different libraries and build-systems that must be installed for compiling and running properly. These dependencies can be satisfied by compiling every-each libs and tools manually, but it might be preferred to do it the easy way. is a package manager for macOS that has great community and support. You can also use it to install the dependencies you need.
on your system.
Perform if you have not done it yet.
Install the following dependencies:
automake
autoconf
autoconf-archive
binutils
bison
flex
gcc@11
glib
ivykis
json-c
libtool
pcre
pkg-config
openssl
The following package(s) might be needed tas well depending on your macOS version and architecture
net-snmp
Extra modules might require the following
hiredis
libdbi # see bellow!
libmaxminddb
libnet
librdkafka
mongo-c-driver
python3
rabbitmq-c
riemann-client
In the terminal all the above should look something like this
Depending your macOS architecture homebrew is using different location for storing its data, so worth using a generic reference to it
Force the building process to use bison and net-snmp installed through homebrew instead of provided by Apple Developer Tools.
Option 1: add bison to $PATH
Option 2: when configuring set the environmental variable $YACC
to bison
Extend the search path of pkg-config to use the homebrew version of openssl and net-snmp
To get the latest master from syslog-ng git you can use
For a full feature set (excluded the not yet supported modules on macOS):
Optionally, you can specify the install prefix passing --prefix /example/installdir/
to the configure script.
To start the service, you can either navigate to the syslog-ng folder where you've compiled it and run
Or, you can start the service with the official command:
libdbi and libdbi-drivers are in syslog-ng OSE repositories, use the latest master version from there
is now offering MacOS ARM builds of OpenJDK on their website in the downloads section. This has not been tested, so your mileage may vary.
For options and more information, read the guide.
For more information read the guide and the syslog-ng