• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

src/29-Dec-2025-9250

CMakeLists.txtD29-Dec-2025285 127

KconfigD29-Dec-2025873 3225

README.rstD29-Dec-20251.3 KiB5941

docker-test.shD29-Dec-20251.1 KiB4130

overlay-runtime-srv-addr.confD29-Dec-2025117 43

prj.confD29-Dec-20251 KiB4029

sample.yamlD29-Dec-20251.3 KiB4645

README.rst

1.. zephyr:code-sample:: syslog-net
2   :name: Remote syslog
3   :relevant-api: log_backend log_ctrl
4
5   Enable a remote syslog service that sends syslog messages to a remote server
6
7Overview
8********
9
10This sample application enables a remote syslog service that will
11send syslog messages to a remote server, as configured in ``prj.conf``.
12See :rfc:`5424` and :rfc:`5426` for more details about syslog protocol over UDP.
13
14The source code for this sample application can be found at:
15:zephyr_file:`samples/net/syslog_net`.
16
17Requirements
18************
19
20- :ref:`networking_with_host`
21
22Building and Running
23********************
24
25For configuring the remote IPv6 syslog server, set the following
26variables in prj.conf file:
27
28.. code-block:: cfg
29
30	CONFIG_LOG_BACKEND_NET=y
31	CONFIG_LOG_BACKEND_NET_SERVER="[2001:db8::2]:514"
32
33Default port number is 514 if user does not specify a value.
34The following syntax is supported for the server address
35and port:
36
37.. code-block:: console
38
39	192.0.2.1:514
40	192.0.2.42
41	[2001:db8::1]:514
42	[2001:db8::2]
43	2001:db::42
44
45Build syslog_net sample application like this:
46
47.. zephyr-app-commands::
48   :zephyr-app: samples/net/syslog_net
49   :board: <board to use>
50   :conf: <config file to use>
51   :goals: build
52   :compact:
53
54Wi-Fi
55=====
56
57The IPv4 Wi-Fi support can be enabled in the sample with
58:ref:`Wi-Fi snippet <snippet-wifi-ipv4>`.
59