mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Initial implementation of syslogd including version information, simple usage help and UDP transmission. The current implementation transmits RFC 5424 formatted syslog entries over UDP for consumption by a syslog collector. Only some options from the manpage are implemented since NuttX doesn't currently have the ability for some of the more complex features (-l, etc.). Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
53 lines
1.4 KiB
Text
53 lines
1.4 KiB
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config SYSTEM_SYSLOGD
|
|
bool "syslogd utility"
|
|
default n
|
|
depends on NET_UDP && SYSLOG_RFC5424
|
|
---help---
|
|
Enable support for the 'syslogd' utility. This utility will read syslog
|
|
messages from the syslog device and transmit them over UDP in RFC 5424
|
|
compatible format. Ensure the syslog device being used is capable of being
|
|
read from.
|
|
|
|
if SYSTEM_SYSLOGD
|
|
|
|
config SYSTEM_SYSLOGD_PROGNAME
|
|
string "syslogd progname"
|
|
default "syslogd"
|
|
---help---
|
|
This is the name of the program that will be used when the syslogd
|
|
program is installed.
|
|
|
|
config SYSTEM_SYSLOGD_PRIORITY
|
|
int "syslogd task priority"
|
|
default 100
|
|
|
|
config SYSTEM_SYSLOGD_STACKSIZE
|
|
int "syslogd stack size"
|
|
default DEFAULT_TASK_STACKSIZE
|
|
|
|
config SYSTEM_SYSLOGD_ENTRYSIZE
|
|
int "Max entry size"
|
|
default 480
|
|
---help---
|
|
The maximum size (in bytes) of the UDP message buffer for sending syslog
|
|
entries. Set this value to the expected maximum length of a syslog entry. RFC
|
|
5424 specifies a minimum maximum of 480.
|
|
|
|
config SYSTEM_SYSLOGD_PORT
|
|
int "syslogd port"
|
|
default 514
|
|
---help---
|
|
The default port for syslogd to send UDP traffic to.
|
|
|
|
config SYSTEM_SYSLOGD_ADDR
|
|
string "Log server address"
|
|
default "127.0.0.1"
|
|
---help---
|
|
The network address for syslogd to send UDP traffic to.
|
|
|
|
endif
|