blob: fcf993054f5661555ddb133a99485cb6b61fccea [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
Sergey Naumov73ef15c2011-04-10 07:34:27 +020055config FEATURE_SYSLOGD_CFG
56 bool "Support syslog.conf"
57 default y
58 depends on SYSLOGD
59 help
Denys Vlasenko0288b272011-04-16 20:15:14 +020060 Supports restricted syslogd config. See docs/syslog.conf.txt
Sergey Naumov73ef15c2011-04-10 07:34:27 +020061
Janne Kiviluotoc897dfe2010-03-31 15:58:58 +020062config FEATURE_SYSLOGD_READ_BUFFER_SIZE
Denys Vlasenko345e0932010-03-31 16:03:56 +020063 int "Read buffer size in bytes"
64 default 256
65 range 256 20000
66 depends on SYSLOGD
67 help
68 This option sets the size of the syslog read buffer.
69 Actual memory usage increases around five times the
70 change done here.
Janne Kiviluotoc897dfe2010-03-31 15:58:58 +020071
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000072config FEATURE_IPC_SYSLOG
Rob Landley2ec922e2006-04-13 23:22:16 +000073 bool "Circular Buffer support"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020074 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000075 depends on SYSLOGD
Eric Andersenc9f20d92002-12-05 08:41:41 +000076 help
Eric Andersen08f4a4c2003-02-28 07:20:55 +000077 When you enable this feature, the syslogd utility will
78 use a circular buffer to record system log messages.
79 When the buffer is filled it will continue to overwrite
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000080 the oldest messages. This can be very useful for
Eric Andersen88c916b2003-10-22 09:58:56 +000081 systems with little or no permanent storage, since
Eric Andersen08f4a4c2003-02-28 07:20:55 +000082 otherwise system logs can eventually fill up your
83 entire filesystem, which may cause your system to
84 break badly.
Eric Andersenc9f20d92002-12-05 08:41:41 +000085
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000086config FEATURE_IPC_SYSLOG_BUFFER_SIZE
Denis Vlasenko4ee7cd42008-03-17 09:13:22 +000087 int "Circular buffer size in Kbytes (minimum 4KB)"
Eric Andersend4a5e252003-12-19 11:32:14 +000088 default 16
Bernhard Reutner-Fischerbb4b9f12007-06-07 13:22:56 +000089 range 4 2147483647
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000090 depends on FEATURE_IPC_SYSLOG
Eric Andersend4a5e252003-12-19 11:32:14 +000091 help
92 This option sets the size of the circular buffer
93 used to record system log messages.
94
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000095config LOGREAD
Rob Landley2ec922e2006-04-13 23:22:16 +000096 bool "logread"
Eric Andersenc9f20d92002-12-05 08:41:41 +000097 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000098 depends on FEATURE_IPC_SYSLOG
Eric Andersenc9f20d92002-12-05 08:41:41 +000099 help
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000100 If you enabled Circular Buffer support, you almost
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000101 certainly want to enable this feature as well. This
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000102 utility will allow you to read the messages that are
103 stored in the syslogd circular buffer.
104
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000105config FEATURE_LOGREAD_REDUCED_LOCKING
Denis Vlasenko4ee7cd42008-03-17 09:13:22 +0000106 bool "Double buffering"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200107 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000108 depends on LOGREAD
Eric Andersend4a5e252003-12-19 11:32:14 +0000109 help
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000110 'logread' ouput to slow serial terminals can have
Eric Andersend4a5e252003-12-19 11:32:14 +0000111 side effects on syslog because of the semaphore.
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000112 This option make logread to double buffer copy
113 from circular buffer, minimizing semaphore
Eric Andersend4a5e252003-12-19 11:32:14 +0000114 contention at some minor memory expense.
115
Peter Korsgaardcd776cf2013-01-06 00:07:19 +0100116config FEATURE_KMSG_SYSLOG
117 bool "Linux kernel printk buffer support"
118 default y
119 depends on SYSLOGD
120 select PLATFORM_LINUX
121 help
122 When you enable this feature, the syslogd utility will
123 write system log message to the Linux kernel's printk buffer.
124 This can be used as a smaller alternative to the syslogd IPC
125 support, as klogd and logread aren't needed.
126
127 NOTICE: Syslog facilities in log entries needs kernel 3.5+.
128
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000129config KLOGD
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000130 bool "klogd"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200131 default y
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000132 help
Eric Andersen88c916b2003-10-22 09:58:56 +0000133 klogd is a utility which intercepts and logs all
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000134 messages from the Linux kernel and sends the messages
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000135 out to the 'syslogd' utility so they can be logged. If
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000136 you wish to record the messages produced by the kernel,
137 you should enable this option.
138
Peter Korsgaardcd776cf2013-01-06 00:07:19 +0100139comment "klogd should not be used together with syslog to kernel printk buffer"
140 depends on KLOGD && FEATURE_KMSG_SYSLOG
141
Jeremie Koenig63c2e7e2010-08-01 03:01:44 +0200142config FEATURE_KLOGD_KLOGCTL
143 bool "Use the klogctl() interface"
144 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100145 depends on KLOGD
146 select PLATFORM_LINUX
Jeremie Koenig63c2e7e2010-08-01 03:01:44 +0200147 help
148 The klogd applet supports two interfaces for reading
149 kernel messages. Linux provides the klogctl() interface
150 which allows reading messages from the kernel ring buffer
151 independently from the file system.
152
153 If you answer 'N' here, klogd will use the more portable
154 approach of reading them from /proc or a device node.
155 However, this method requires the file to be available.
156
157 If in doubt, say 'Y'.
158
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000159config LOGGER
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000160 bool "logger"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200161 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000162 select FEATURE_SYSLOG
Eric Andersen08f4a4c2003-02-28 07:20:55 +0000163 help
Eric Andersen480f1532003-07-26 08:20:46 +0000164 The logger utility allows you to send arbitrary text
165 messages to the system log (i.e. the 'syslogd' utility) so
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000166 they can be logged. This is generally used to help locate
Eric Andersen480f1532003-07-26 08:20:46 +0000167 problems that occur within programs and scripts.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000168
169endmenu