blob: 1e59872754164154368dd8d4cd46b5968378b88b [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
Denys Vlasenkod70e0e92010-06-08 12:15:11 +02008INSERT
9
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000010config SYSLOGD
Eric Andersenc9f20d92002-12-05 08:41:41 +000011 bool "syslogd"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020012 default y
Eric Andersenc9f20d92002-12-05 08:41:41 +000013 help
Eric Andersen08f4a4c2003-02-28 07:20:55 +000014 The syslogd utility is used to record logs of all the
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000015 significant events that occur on a system. Every
Eric Andersen08f4a4c2003-02-28 07:20:55 +000016 message that is logged records the date and time of the
17 event, and will generally also record the name of the
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000018 application that generated the message. When used in
Eric Andersen08f4a4c2003-02-28 07:20:55 +000019 conjunction with klogd, messages from the Linux kernel
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000020 can also be recorded. This is terribly useful,
Eric Andersen88c916b2003-10-22 09:58:56 +000021 especially for finding what happened when something goes
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000022 wrong. And something almost always will go wrong if
Eric Andersen08f4a4c2003-02-28 07:20:55 +000023 you wait long enough....
Eric Andersenc9f20d92002-12-05 08:41:41 +000024
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000025config FEATURE_ROTATE_LOGFILE
Rob Landley2ec922e2006-04-13 23:22:16 +000026 bool "Rotate message files"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020027 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000028 depends on SYSLOGD
Eric Andersen29c77f72003-10-09 09:43:18 +000029 help
30 This enables syslogd to rotate the message files
31 on his own. No need to use an external rotatescript.
32
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000033config FEATURE_REMOTE_LOG
Rob Landley2ec922e2006-04-13 23:22:16 +000034 bool "Remote Log support"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020035 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000036 depends on SYSLOGD
Eric Andersenc9f20d92002-12-05 08:41:41 +000037 help
Eric Andersen08f4a4c2003-02-28 07:20:55 +000038 When you enable this feature, the syslogd utility can
39 be used to send system log messages to another system
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000040 connected via a network. This allows the remote
Eric Andersen08f4a4c2003-02-28 07:20:55 +000041 machine to log all the system messages, which can be
42 terribly useful for reducing the number of serial
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000043 cables you use. It can also be a very good security
Eric Andersen08f4a4c2003-02-28 07:20:55 +000044 measure to prevent system logs from being tampered with
45 by an intruder.
Eric Andersenc9f20d92002-12-05 08:41:41 +000046
Denis Vlasenkobe048f22008-02-26 20:13:52 +000047config FEATURE_SYSLOGD_DUP
48 bool "Support -D (drop dups) option"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020049 default y
Denis Vlasenkobe048f22008-02-26 20:13:52 +000050 depends on SYSLOGD
51 help
52 Option -D instructs syslogd to drop consecutive messages
53 which are totally the same.
54
Janne Kiviluotoc897dfe2010-03-31 15:58:58 +020055config FEATURE_SYSLOGD_READ_BUFFER_SIZE
Denys Vlasenko345e0932010-03-31 16:03:56 +020056 int "Read buffer size in bytes"
57 default 256
58 range 256 20000
59 depends on SYSLOGD
60 help
61 This option sets the size of the syslog read buffer.
62 Actual memory usage increases around five times the
63 change done here.
Janne Kiviluotoc897dfe2010-03-31 15:58:58 +020064
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000065config FEATURE_IPC_SYSLOG
Rob Landley2ec922e2006-04-13 23:22:16 +000066 bool "Circular Buffer support"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020067 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000068 depends on SYSLOGD
Eric Andersenc9f20d92002-12-05 08:41:41 +000069 help
Eric Andersen08f4a4c2003-02-28 07:20:55 +000070 When you enable this feature, the syslogd utility will
71 use a circular buffer to record system log messages.
72 When the buffer is filled it will continue to overwrite
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000073 the oldest messages. This can be very useful for
Eric Andersen88c916b2003-10-22 09:58:56 +000074 systems with little or no permanent storage, since
Eric Andersen08f4a4c2003-02-28 07:20:55 +000075 otherwise system logs can eventually fill up your
76 entire filesystem, which may cause your system to
77 break badly.
Eric Andersenc9f20d92002-12-05 08:41:41 +000078
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000079config FEATURE_IPC_SYSLOG_BUFFER_SIZE
Denis Vlasenko4ee7cd42008-03-17 09:13:22 +000080 int "Circular buffer size in Kbytes (minimum 4KB)"
Eric Andersend4a5e252003-12-19 11:32:14 +000081 default 16
Bernhard Reutner-Fischerbb4b9f12007-06-07 13:22:56 +000082 range 4 2147483647
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000083 depends on FEATURE_IPC_SYSLOG
Eric Andersend4a5e252003-12-19 11:32:14 +000084 help
85 This option sets the size of the circular buffer
86 used to record system log messages.
87
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000088config LOGREAD
Rob Landley2ec922e2006-04-13 23:22:16 +000089 bool "logread"
Eric Andersenc9f20d92002-12-05 08:41:41 +000090 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000091 depends on FEATURE_IPC_SYSLOG
Eric Andersenc9f20d92002-12-05 08:41:41 +000092 help
Eric Andersen08f4a4c2003-02-28 07:20:55 +000093 If you enabled Circular Buffer support, you almost
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000094 certainly want to enable this feature as well. This
Eric Andersen08f4a4c2003-02-28 07:20:55 +000095 utility will allow you to read the messages that are
96 stored in the syslogd circular buffer.
97
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000098config FEATURE_LOGREAD_REDUCED_LOCKING
Denis Vlasenko4ee7cd42008-03-17 09:13:22 +000099 bool "Double buffering"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200100 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000101 depends on LOGREAD
Eric Andersend4a5e252003-12-19 11:32:14 +0000102 help
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000103 'logread' ouput to slow serial terminals can have
Eric Andersend4a5e252003-12-19 11:32:14 +0000104 side effects on syslog because of the semaphore.
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000105 This option make logread to double buffer copy
106 from circular buffer, minimizing semaphore
Eric Andersend4a5e252003-12-19 11:32:14 +0000107 contention at some minor memory expense.
108
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000109config KLOGD
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000110 bool "klogd"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200111 default y
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000112 help
Eric Andersen88c916b2003-10-22 09:58:56 +0000113 klogd is a utility which intercepts and logs all
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000114 messages from the Linux kernel and sends the messages
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000115 out to the 'syslogd' utility so they can be logged. If
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000116 you wish to record the messages produced by the kernel,
117 you should enable this option.
118
Jeremie Koenig63c2e7e2010-08-01 03:01:44 +0200119config FEATURE_KLOGD_KLOGCTL
120 bool "Use the klogctl() interface"
121 default y
122 depends on KLOGD && PLATFORM_LINUX
123 help
124 The klogd applet supports two interfaces for reading
125 kernel messages. Linux provides the klogctl() interface
126 which allows reading messages from the kernel ring buffer
127 independently from the file system.
128
129 If you answer 'N' here, klogd will use the more portable
130 approach of reading them from /proc or a device node.
131 However, this method requires the file to be available.
132
133 If in doubt, say 'Y'.
134
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000135config LOGGER
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000136 bool "logger"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200137 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000138 select FEATURE_SYSLOG
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000139 help
Eric Andersen480f1532003-07-26 08:20:46 +0000140 The logger utility allows you to send arbitrary text
141 messages to the system log (i.e. the 'syslogd' utility) so
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000142 they can be logged. This is generally used to help locate
Eric Andersen480f1532003-07-26 08:20:46 +0000143 problems that occur within programs and scripts.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000144
145endmenu