samples/net/syslog_net/README.html · samples/net/syslog_net/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Networking · Logging

Remote syslog

Network log backend와 server address를 설정하고 기본 UDP port 514로 message를 전송합니다.

Official pathsamples/net/syslog_net/README.html
Source filesamples/net/syslog_net/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

Bracketed IPv6를 포함한 다섯 address syntax와 Kconfig를 보존합니다.

Transport

UDP

Default port

514

Addressing

IPv4 · IPv6

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 BE63C70E69A4951811133A2EDE1B36BED66FCCF95C05C7A71E14A691563B9749
.. zephyr:code-sample:: syslog-net
   :name: Remote syslog
   :relevant-api: log_backend log_ctrl

   Enable a remote syslog service that sends syslog messages to a remote server

Overview
********

This sample application enables a remote syslog service that will
send syslog messages to a remote server, as configured in ``prj.conf``.
See https://tools.ietf.org/html/rfc5424 and https://tools.ietf.org/html/rfc5426
for more details about syslog protocol over UDP.

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

Requirements
************

- :ref:`networking_with_host`

Building and Running
********************

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

.. code-block:: cfg

	CONFIG_LOG_BACKEND_NET=y
	CONFIG_LOG_BACKEND_NET_SERVER="[2001:db8::2]:514"

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

.. code-block:: console

	192.0.2.1:514
	192.0.2.42
	[2001:db8::1]:514
	[2001:db8::2]
	2001:db::42

Build syslog_net sample application like this:

.. zephyr-app-commands::
   :zephyr-app: samples/net/syslog_net
   :board: <board to use>
   :conf: <config file to use>
   :goals: build
   :compact:

Part 3

한국어 전문 번역

개요

이 sample application은 prj.conf에 설정된 remote server로 syslog message를 보내는 remote syslog service를 활성화합니다.

UDP 위의 syslog protocol에 관한 자세한 내용은 RFC 5424와 RFC 5426을 참고하십시오.

이 sample application의 source code는 samples/net/syslog_net에서 찾을 수 있습니다.

요구 사항

빌드 및 실행

Remote IPv6 syslog server를 설정하려면 prj.conf에 다음 variable을 지정합니다.

CONFIG_LOG_BACKEND_NET=y
CONFIG_LOG_BACKEND_NET_SERVER="[2001:db8::2]:514"

사용자가 port를 지정하지 않으면 기본 port number는 514입니다. Server address와 port에는 다음 syntax를 사용할 수 있습니다.

192.0.2.1:514
192.0.2.42
[2001:db8::1]:514
[2001:db8::2]
2001:db::42

syslog_net sample application은 다음과 같이 build합니다.

west build -b <board to use> samples/net/syslog_net -- -DCONF_FILE=<config file to use>

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.