blob: b500d5471e6d5902e8aa5e38bbaa387034289045 [file] [log] [blame]
Eric Andersenc9f20d92002-12-05 08:41:41 +00001#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
5
6menu "System Logging Utilities"
7
Denis Vlasenko7d219aa2006-10-05 10:17:08 +00008config SYSLOGD
Eric Andersenc9f20d92002-12-05 08:41:41 +00009 bool "syslogd"
10 default n
11 help
Eric Andersen08f4a4c2003-02-28 07:20:55 +000012 The syslogd utility is used to record logs of all the
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000013 significant events that occur on a system. Every
Eric Andersen08f4a4c2003-02-28 07:20:55 +000014 message that is logged records the date and time of the
15 event, and will generally also record the name of the
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000016 application that generated the message. When used in
Eric Andersen08f4a4c2003-02-28 07:20:55 +000017 conjunction with klogd, messages from the Linux kernel
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000018 can also be recorded. This is terribly useful,
Eric Andersen88c916b2003-10-22 09:58:56 +000019 especially for finding what happened when something goes
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000020 wrong. And something almost always will go wrong if
Eric Andersen08f4a4c2003-02-28 07:20:55 +000021 you wait long enough....
Eric Andersenc9f20d92002-12-05 08:41:41 +000022
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000023config FEATURE_ROTATE_LOGFILE
Rob Landley2ec922e2006-04-13 23:22:16 +000024 bool "Rotate message files"
Eric Andersen29c77f72003-10-09 09:43:18 +000025 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000026 depends on SYSLOGD
Eric Andersen29c77f72003-10-09 09:43:18 +000027 help
28 This enables syslogd to rotate the message files
29 on his own. No need to use an external rotatescript.
30
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000031config FEATURE_REMOTE_LOG
Rob Landley2ec922e2006-04-13 23:22:16 +000032 bool "Remote Log support"
Eric Andersenc9f20d92002-12-05 08:41:41 +000033 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000034 depends on SYSLOGD
Eric Andersenc9f20d92002-12-05 08:41:41 +000035 help
Eric Andersen08f4a4c2003-02-28 07:20:55 +000036 When you enable this feature, the syslogd utility can
37 be used to send system log messages to another system
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000038 connected via a network. This allows the remote
Eric Andersen08f4a4c2003-02-28 07:20:55 +000039 machine to log all the system messages, which can be
40 terribly useful for reducing the number of serial
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000041 cables you use. It can also be a very good security
Eric Andersen08f4a4c2003-02-28 07:20:55 +000042 measure to prevent system logs from being tampered with
43 by an intruder.
Eric Andersenc9f20d92002-12-05 08:41:41 +000044
Denis Vlasenkobe048f22008-02-26 20:13:52 +000045config FEATURE_SYSLOGD_DUP
46 bool "Support -D (drop dups) option"
47 default n
48 depends on SYSLOGD
49 help
50 Option -D instructs syslogd to drop consecutive messages
51 which are totally the same.
52
Janne Kiviluotoc897dfe2010-03-31 15:58:58 +020053config FEATURE_SYSLOGD_READ_BUFFER_SIZE
Denys Vlasenko345e0932010-03-31 16:03:56 +020054 int "Read buffer size in bytes"
55 default 256
56 range 256 20000
57 depends on SYSLOGD
58 help
59 This option sets the size of the syslog read buffer.
60 Actual memory usage increases around five times the
61 change done here.
Janne Kiviluotoc897dfe2010-03-31 15:58:58 +020062
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000063config FEATURE_IPC_SYSLOG
Rob Landley2ec922e2006-04-13 23:22:16 +000064 bool "Circular Buffer support"
Eric Andersenc9f20d92002-12-05 08:41:41 +000065 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000066 depends on SYSLOGD
Eric Andersenc9f20d92002-12-05 08:41:41 +000067 help
Eric Andersen08f4a4c2003-02-28 07:20:55 +000068 When you enable this feature, the syslogd utility will
69 use a circular buffer to record system log messages.
70 When the buffer is filled it will continue to overwrite
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000071 the oldest messages. This can be very useful for
Eric Andersen88c916b2003-10-22 09:58:56 +000072 systems with little or no permanent storage, since
Eric Andersen08f4a4c2003-02-28 07:20:55 +000073 otherwise system logs can eventually fill up your
74 entire filesystem, which may cause your system to
75 break badly.
Eric Andersenc9f20d92002-12-05 08:41:41 +000076
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000077config FEATURE_IPC_SYSLOG_BUFFER_SIZE
Denis Vlasenko4ee7cd42008-03-17 09:13:22 +000078 int "Circular buffer size in Kbytes (minimum 4KB)"
Eric Andersend4a5e252003-12-19 11:32:14 +000079 default 16
Bernhard Reutner-Fischerbb4b9f12007-06-07 13:22:56 +000080 range 4 2147483647
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000081 depends on FEATURE_IPC_SYSLOG
Eric Andersend4a5e252003-12-19 11:32:14 +000082 help
83 This option sets the size of the circular buffer
84 used to record system log messages.
85
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000086config LOGREAD
Rob Landley2ec922e2006-04-13 23:22:16 +000087 bool "logread"
Eric Andersenc9f20d92002-12-05 08:41:41 +000088 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000089 depends on FEATURE_IPC_SYSLOG
Eric Andersenc9f20d92002-12-05 08:41:41 +000090 help
Eric Andersen08f4a4c2003-02-28 07:20:55 +000091 If you enabled Circular Buffer support, you almost
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000092 certainly want to enable this feature as well. This
Eric Andersen08f4a4c2003-02-28 07:20:55 +000093 utility will allow you to read the messages that are
94 stored in the syslogd circular buffer.
95
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000096config FEATURE_LOGREAD_REDUCED_LOCKING
Denis Vlasenko4ee7cd42008-03-17 09:13:22 +000097 bool "Double buffering"
Eric Andersend4a5e252003-12-19 11:32:14 +000098 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000099 depends on LOGREAD
Eric Andersend4a5e252003-12-19 11:32:14 +0000100 help
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000101 'logread' ouput to slow serial terminals can have
Eric Andersend4a5e252003-12-19 11:32:14 +0000102 side effects on syslog because of the semaphore.
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000103 This option make logread to double buffer copy
104 from circular buffer, minimizing semaphore
Eric Andersend4a5e252003-12-19 11:32:14 +0000105 contention at some minor memory expense.
106
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000107config KLOGD
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000108 bool "klogd"
109 default n
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000110 help
Eric Andersen88c916b2003-10-22 09:58:56 +0000111 klogd is a utility which intercepts and logs all
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000112 messages from the Linux kernel and sends the messages
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000113 out to the 'syslogd' utility so they can be logged. If
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000114 you wish to record the messages produced by the kernel,
115 you should enable this option.
116
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000117config LOGGER
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000118 bool "logger"
119 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000120 select FEATURE_SYSLOG
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000121 help
Eric Andersen480f1532003-07-26 08:20:46 +0000122 The logger utility allows you to send arbitrary text
123 messages to the system log (i.e. the 'syslogd' utility) so
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000124 they can be logged. This is generally used to help locate
Eric Andersen480f1532003-07-26 08:20:46 +0000125 problems that occur within programs and scripts.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000126
127endmenu
128