[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[3be4d97] | 6 | <sect1 id="ch-system-sysklogd" xreflabel="Sysklogd">
|
---|
[673b0d8] | 7 | <title>Sysklogd-&sysklogd-version;</title>
|
---|
| 8 | <?dbhtml filename="sysklogd.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-sysklogd"><primary sortas="a-Sysklogd">Sysklogd</primary></indexterm>
|
---|
[6370fa6] | 11 |
|
---|
[5888299] | 12 | <para>The Sysklogd package contains programs for logging system messages, such
|
---|
| 13 | as those given by the kernel when unusual things happen.</para>
|
---|
| 14 |
|
---|
[673b0d8] | 15 | <screen>&buildtime; 0.1 SBU
|
---|
| 16 | &diskspace; 0.5 MB</screen>
|
---|
| 17 |
|
---|
| 18 | <para>Sysklogd installation depends on: Binutils, Coreutils, GCC, Glibc, Make.</para>
|
---|
[3554fa3a] | 19 |
|
---|
[73aedd1d] | 20 |
|
---|
| 21 | <sect2>
|
---|
| 22 | <title>Installation of Sysklogd</title>
|
---|
| 23 |
|
---|
[9dfc02f] | 24 | <para>Sysklogd has issues with the Linux 2.6 kernel series - fix these isues
|
---|
| 25 | by applying the following patch:</para>
|
---|
| 26 |
|
---|
[c8ba565] | 27 | <screen><userinput>patch -Np1 -i ../sysklogd-&sysklogd-version;-kernel-headers-1.patch</userinput></screen>
|
---|
[9dfc02f] | 28 |
|
---|
[dc20ac5] | 29 | <para>There is also a race condition in the signal handling logic, and this
|
---|
| 30 | sometimes confuses the <command>sysklogd</command> initscript.
|
---|
| 31 | Fix this bug by applying another patch:</para>
|
---|
| 32 |
|
---|
| 33 | <screen><userinput>patch -Np1 -i ../sysklogd-&sysklogd-version;-signal-1.patch</userinput></screen>
|
---|
| 34 |
|
---|
[73aedd1d] | 35 | <para>Compile Sysklogd:</para>
|
---|
| 36 |
|
---|
| 37 | <screen><userinput>make</userinput></screen>
|
---|
| 38 |
|
---|
[673b0d8] | 39 | <para>Now install it:</para>
|
---|
[73aedd1d] | 40 |
|
---|
| 41 | <screen><userinput>make install</userinput></screen>
|
---|
| 42 |
|
---|
| 43 | </sect2>
|
---|
[5888299] | 44 |
|
---|
[342b176] | 45 |
|
---|
[673b0d8] | 46 | <sect2 id="conf-sysklogd"><title>Configuring Sysklogd</title>
|
---|
| 47 | <indexterm zone="conf-sysklogd">
|
---|
| 48 | <primary sortas="a-Sysklogd">Sysklogd</primary>
|
---|
| 49 | <secondary>configuring</secondary></indexterm>
|
---|
| 50 |
|
---|
| 51 | <indexterm zone="conf-sysklogd"><primary sortas="e-/etc/syslog.conf">/etc/syslog.conf</primary></indexterm>
|
---|
[342b176] | 52 |
|
---|
| 53 | <para>Create a new <filename>/etc/syslog.conf</filename> file by running the
|
---|
| 54 | following:</para>
|
---|
| 55 |
|
---|
| 56 | <screen><userinput>cat > /etc/syslog.conf << "EOF"</userinput>
|
---|
| 57 | # Begin /etc/syslog.conf
|
---|
| 58 |
|
---|
| 59 | auth,authpriv.* -/var/log/auth.log
|
---|
| 60 | *.*;auth,authpriv.none -/var/log/sys.log
|
---|
| 61 | daemon.* -/var/log/daemon.log
|
---|
| 62 | kern.* -/var/log/kern.log
|
---|
| 63 | mail.* -/var/log/mail.log
|
---|
| 64 | user.* -/var/log/user.log
|
---|
| 65 | *.emerg *
|
---|
| 66 |
|
---|
| 67 | # End /etc/syslog.conf
|
---|
| 68 | <userinput>EOF</userinput></screen>
|
---|
| 69 |
|
---|
| 70 | </sect2>
|
---|
[5888299] | 71 |
|
---|
| 72 |
|
---|
[673b0d8] | 73 | <sect2 id="contents-sysklogd"><title>Contents of Sysklogd</title>
|
---|
| 74 |
|
---|
| 75 | <para><emphasis>Installed programs</emphasis>: klogd and syslogd</para>
|
---|
| 76 |
|
---|
| 77 | </sect2>
|
---|
| 78 |
|
---|
[73aedd1d] | 79 |
|
---|
[673b0d8] | 80 | <sect2><title>Short descriptions</title>
|
---|
| 81 |
|
---|
| 82 | <indexterm zone="ch-system-sysklogd klogd"><primary sortas="b-klogd">klogd</primary></indexterm>
|
---|
| 83 | <para id="klogd"><command>klogd</command> is a system daemon for intercepting and
|
---|
| 84 | logging kernel messages.</para>
|
---|
| 85 |
|
---|
| 86 | <indexterm zone="ch-system-sysklogd syslogd"><primary sortas="b-syslogd">syslogd</primary></indexterm>
|
---|
| 87 | <para id="syslogd"><command>syslogd</command> logs the messages that system programs
|
---|
| 88 | offer for logging. Every logged message contains at least a date stamp and a
|
---|
| 89 | hostname, and normally the program's name too, but that depends on how
|
---|
| 90 | trusting the logging daemon is told to be.</para>
|
---|
| 91 |
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 |
|
---|
| 95 |
|
---|
| 96 | </sect1>
|
---|