From d1a66a09dd0ca21f849088f48cb145d353246da5 Mon Sep 17 00:00:00 2001 From: Jeremy Utley Date: Tue, 31 Aug 2004 10:11:23 +0000 Subject: Removed sysklogd, added syslog-ng and libol as more up to date replacements. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4098 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/chapter06.xml | 3 +- chapter06/libol.xml | 78 ++++++++++++++++++++++ chapter06/sysklogd.xml | 111 ------------------------------- chapter06/syslogng.xml | 169 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 249 insertions(+), 112 deletions(-) create mode 100644 chapter06/libol.xml delete mode 100644 chapter06/sysklogd.xml create mode 100644 chapter06/syslogng.xml (limited to 'chapter06') diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index 6ae2b15e2..29ca97b57 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -62,7 +62,8 @@ - + + diff --git a/chapter06/libol.xml b/chapter06/libol.xml new file mode 100644 index 000000000..d82e71867 --- /dev/null +++ b/chapter06/libol.xml @@ -0,0 +1,78 @@ + + + %general-entities; +]> + +Libol-&libol-version; + + +Libol + + +<para>The Libol package contains support libraries needed by Syslog-ng.</para> + +<segmentedlist> +<segtitle>&buildtime;</segtitle> +<segtitle>&diskspace;</segtitle> +<seglistitem><seg>Unchecked</seg><seg>Unchecked</seg></seglistitem> +</segmentedlist> + +<segmentedlist> +<segtitle>Libol installation depends on</segtitle> +<seglistitem><seg>Unchecked</seg></seglistitem> +</segmentedlist> +</sect2> + +<sect2 role="installation"> +<title>Installation of Libol + +Prepare Libol for compilation + +./configure --prefix=/usr --enable-shared + +Compile Libol: + +make + +Now install it: + +make install + + + + +Contents of Libol + + +Installed programs +Unchecked + + + + + + + diff --git a/chapter06/sysklogd.xml b/chapter06/sysklogd.xml deleted file mode 100644 index 6e659e204..000000000 --- a/chapter06/sysklogd.xml +++ /dev/null @@ -1,111 +0,0 @@ - - - %general-entities; -]> - -Sysklogd-&sysklogd-version; - - -Sysklogd - - -<para>The Sysklogd package contains programs for logging system messages, such -as those given by the kernel when unusual things happen.</para> - -<segmentedlist> -<segtitle>&buildtime;</segtitle> -<segtitle>&diskspace;</segtitle> -<seglistitem><seg>0.1 SBU</seg><seg>0.5 MB</seg></seglistitem> -</segmentedlist> - -<segmentedlist> -<segtitle>Sysklogd installation depends on</segtitle> -<seglistitem><seg>Binutils, Coreutils, GCC, Glibc, Make</seg></seglistitem> -</segmentedlist> -</sect2> - -<sect2 role="installation"> -<title>Installation of Sysklogd - -Sysklogd has issues with the Linux 2.6 kernel series - fix these isues -by applying the following patch: - -patch -Np1 -i ../sysklogd-&sysklogd-version;-kernel_headers-1.patch - -There is also a race condition in the signal handling logic, and this -sometimes confuses the sysklogd initscript. -Fix this bug by applying another patch: - -patch -Np1 -i ../sysklogd-&sysklogd-version;-signal-1.patch - -Compile Sysklogd: - -make - -Now install it: - -make install - - - - -Configuring Sysklogd - -Sysklogd -configuring - -/etc/syslog.conf - -Create a new /etc/syslog.conf file by running the -following: - -cat > /etc/syslog.conf << "EOF" -# Begin /etc/syslog.conf - -auth,authpriv.* -/var/log/auth.log -*.*;auth,authpriv.none -/var/log/sys.log -daemon.* -/var/log/daemon.log -kern.* -/var/log/kern.log -mail.* -/var/log/mail.log -user.* -/var/log/user.log -*.emerg * - -# End /etc/syslog.conf -EOF - - - - -Contents of Sysklogd - - -Installed programs -klogd and syslogd - - -Short descriptions - - -klogd - -klogd -is a system daemon for intercepting and logging kernel messages. - - - - -syslogd - -syslogd -logs the messages that system programs -offer for logging. Every logged message contains at least a date stamp and a -hostname, and normally the program's name too, but that depends on how -trusting the logging daemon is told to be. - - - - - - - diff --git a/chapter06/syslogng.xml b/chapter06/syslogng.xml new file mode 100644 index 000000000..9be032d39 --- /dev/null +++ b/chapter06/syslogng.xml @@ -0,0 +1,169 @@ + + + %general-entities; +]> + +Syslog-ng-&syslogng-version; + + +Syslog-ng + + +<para>The Syslog-ng package contains programs for logging system messages, such +as those given by the kernel when unusual things happen.</para> + +<segmentedlist> +<segtitle>&buildtime;</segtitle> +<segtitle>&diskspace;</segtitle> +<seglistitem><seg>Unchecked</seg><seg>Unchecked</seg></seglistitem> +</segmentedlist> + +<segmentedlist> +<segtitle>Syslog-ng installation depends on</segtitle> +<seglistitem><seg>Unchecked</seg></seglistitem> +</segmentedlist> +</sect2> + +<sect2 role="installation"> +<title>Installation of Syslog-ng + +Prepare Syslog-ng for compilation: + +./configure --prefix=/usr --sysconfdir=/etc + +Compile Syslog-ng: + +make + +Now install it: + +make install + + + + +Configuring Syslog-ng + +Syslog-ng +configuring + +/etc/syslog-ng/syslog-ng.conf + +Create a new /etc/syslog-ng/syslog-ng.conf file by +running the following: + +mkdir -p /etc/syslog-ng +cat > /etc/syslog-ng/syslog-ng.conf << "EOF" +# Begin /etc/syslog-ng/syslog-ng.conf + +options { sync (0); + time_reopen (10); + log_fifo_size (1000); + long_hostnames(off); + use_dns (no); + use_fqdn (no); + create_dirs (no); + keep_hostname (yes); + }; + +source src { unix-stream("/dev/log"); + internal(); + pipe("/proc/kmsg"); + }; + +destination authlog { file("/var/log/authorize.log"); }; +destination syslog { file("/var/log/syslog.log"); }; +destination cron { file("/var/log/cron.log"); }; +destination daemon { file("/var/log/daemon.log"); }; +destination kernel { file("/var/log/kernel.log"); }; +destination lpr { file("/var/log/lpr.log"); }; +destination user { file("/var/log/user.log"); }; +destination uucp { file("/var/log/uucp.log"); }; +destination mail { file("/var/log/mail.log"); }; +destination news { file("/var/log/news.log"); }; +destination debug { file("/var/log/debug.log"); }; +destination messages { file("/var/log/messages.log"); }; +destination everything { file("/var/log/everything.log"); }; +destination console { usertty("root"); }; +destination console_all { file("/dev/tty12"); }; + +filter f_auth { facility(auth); }; +filter f_authpriv { facility(auth, authpriv); }; +filter f_syslog { not facility(authpriv, mail); }; +filter f_cron { facility(cron); }; +filter f_daemon { facility(daemon); }; +filter f_kernel { facility(kern); }; +filter f_lpr { facility(lpr); }; +filter f_mail { facility(mail); }; +filter f_news { facility(news); }; +filter f_user { facility(user); }; +filter f_uucp { facility(cron); }; +filter f_news { facility(news); }; +filter f_debug { not facility(auth, authpriv, news, mail); }; +filter f_messages { level(info..warn) and not facility(auth, authpriv, mail, news); }; +filter f_everything { level(debug..emerg) and not facility(auth, authpriv); }; + +filter f_emergency { level(emerg); }; +filter f_info { level(info); }; +filter f_notice { level(notice); }; +filter f_warn { level(warn); }; +filter f_crit { level(crit); }; +filter f_err { level(err); }; + +log { source(src); filter(f_authpriv); destination(authlog); }; +log { source(src); filter(f_syslog); destination(syslog); }; +log { source(src); filter(f_cron); destination(cron); }; +log { source(src); filter(f_daemon); destination(daemon); }; +log { source(src); filter(f_kernel); destination(kernel); }; +log { source(src); filter(f_lpr); destination(lpr); }; +log { source(src); filter(f_mail); destination(mail); }; +log { source(src); filter(f_news); destination(news); }; +log { source(src); filter(f_user); destination(user); }; +log { source(src); filter(f_uucp); destination(uucp); }; +log { source(src); filter(f_debug); destination(debug); }; +log { source(src); filter(f_messages); destination(messages); }; +log { source(src); filter(f_emergency); destination(console); }; +log { source(src); filter(f_everything); destination(everything); }; +log { source(src); destination(console_all); }; + +# END /etc/syslog-ng/syslog-ng.conf +EOF + + + + +Contents of Syslog-ng + + +Installed programs +Unchecked + + + + + + + -- cgit v1.2.3-54-g00ecf