Syslog net Application


This sample application enables a remote syslog service that will send syslog messages to a remote server, as configured in prj.conf. See and for more details about syslog protocol over UDP.

The source code for this sample application can be found at: samples/net/syslog_net.

Building and Running

For configuring the remote IPv6 syslog server, set the following variables in prj.conf file:


Default port number is 514 if user does not specify a value. The following syntax is supported for the server address and port:

Build syslog_net sample application like this:

# On Linux/macOS
cd $ZEPHYR_BASE/samples/net/syslog_net
mkdir build && cd build
# On Windows
cd %ZEPHYR_BASE%\samples\net\syslog_net
mkdir build & cd build
cmake -GNinja -DBOARD=<board to use> -DCONF_FILE=<config file to use> ..