[519ee45] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-sysklogd" role="wrap">
|
---|
| 9 | <?dbhtml filename="sysklogd.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Sysklogd-&sysklogd-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-sysklogd">
|
---|
| 14 | <primary sortas="a-Sysklogd">Sysklogd</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The Sysklogd package contains programs for logging system messages,
|
---|
| 21 | such as those given by the kernel when unusual things happen.</para>
|
---|
| 22 |
|
---|
| 23 | <segmentedlist>
|
---|
| 24 | <segtitle>&buildtime;</segtitle>
|
---|
| 25 | <segtitle>&diskspace;</segtitle>
|
---|
| 26 |
|
---|
| 27 | <seglistitem>
|
---|
| 28 | <seg>&sysklogd-ch6-sbu;</seg>
|
---|
| 29 | <seg>&sysklogd-ch6-du;</seg>
|
---|
| 30 | </seglistitem>
|
---|
| 31 | </segmentedlist>
|
---|
| 32 |
|
---|
| 33 | </sect2>
|
---|
| 34 |
|
---|
| 35 | <sect2 role="installation">
|
---|
| 36 | <title>Installation of Sysklogd</title>
|
---|
| 37 |
|
---|
| 38 | <para>The following patch fixes various issues, including a problem building
|
---|
[a76cbca] | 39 | Sysklogd with Linux 2.6 series kernels:</para>
|
---|
[519ee45] | 40 |
|
---|
| 41 | <screen><userinput>patch -Np1 -i ../&sysklogd-fixes-patch;</userinput></screen>
|
---|
| 42 |
|
---|
| 43 | <para>The following patch makes sysklogd treat bytes in the 0x80--0x9f range
|
---|
| 44 | literally in the messages being logged, instead of replacing them with octal
|
---|
[a76cbca] | 45 | codes. Unpatched sysklogd would damage messages in the UTF-8 encoding:</para>
|
---|
[519ee45] | 46 |
|
---|
| 47 | <screen><userinput>patch -Np1 -i ../&sysklogd-8bit-patch;</userinput></screen>
|
---|
| 48 |
|
---|
| 49 | <para>Compile the package:</para>
|
---|
| 50 |
|
---|
| 51 | <screen><userinput>make</userinput></screen>
|
---|
| 52 |
|
---|
| 53 | <para>This package does not come with a test suite.</para>
|
---|
| 54 |
|
---|
| 55 | <para>Install the package:</para>
|
---|
| 56 |
|
---|
| 57 | <screen><userinput>make install</userinput></screen>
|
---|
| 58 |
|
---|
| 59 | </sect2>
|
---|
| 60 |
|
---|
| 61 | <sect2 id="conf-sysklogd" role="configuration">
|
---|
| 62 | <title>Configuring Sysklogd</title>
|
---|
| 63 |
|
---|
| 64 | <indexterm zone="conf-sysklogd">
|
---|
| 65 | <primary sortas="a-Sysklogd">Sysklogd</primary>
|
---|
| 66 | <secondary>configuring</secondary>
|
---|
| 67 | </indexterm>
|
---|
| 68 |
|
---|
| 69 | <indexterm zone="conf-sysklogd">
|
---|
| 70 | <primary sortas="e-/etc/syslog.conf">/etc/syslog.conf</primary>
|
---|
| 71 | </indexterm>
|
---|
| 72 |
|
---|
| 73 | <para>Create a new <filename>/etc/syslog.conf</filename> file by running the
|
---|
| 74 | following:</para>
|
---|
| 75 |
|
---|
| 76 | <screen><userinput>cat > /etc/syslog.conf << "EOF"
|
---|
| 77 | <literal># Begin /etc/syslog.conf
|
---|
| 78 |
|
---|
| 79 | auth,authpriv.* -/var/log/auth.log
|
---|
| 80 | *.*;auth,authpriv.none -/var/log/sys.log
|
---|
| 81 | daemon.* -/var/log/daemon.log
|
---|
| 82 | kern.* -/var/log/kern.log
|
---|
| 83 | mail.* -/var/log/mail.log
|
---|
| 84 | user.* -/var/log/user.log
|
---|
| 85 | *.emerg *
|
---|
| 86 |
|
---|
| 87 | # End /etc/syslog.conf</literal>
|
---|
| 88 | EOF</userinput></screen>
|
---|
| 89 |
|
---|
| 90 | </sect2>
|
---|
| 91 |
|
---|
| 92 | <sect2 id="contents-sysklogd" role="content">
|
---|
| 93 | <title>Contents of Sysklogd</title>
|
---|
| 94 |
|
---|
| 95 | <segmentedlist>
|
---|
| 96 | <segtitle>Installed programs</segtitle>
|
---|
| 97 |
|
---|
| 98 | <seglistitem>
|
---|
| 99 | <seg>klogd and syslogd</seg>
|
---|
| 100 | </seglistitem>
|
---|
| 101 | </segmentedlist>
|
---|
| 102 |
|
---|
| 103 | <variablelist>
|
---|
| 104 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 105 | <?dbfo list-presentation="list"?>
|
---|
| 106 | <?dbhtml list-presentation="table"?>
|
---|
| 107 |
|
---|
| 108 | <varlistentry id="klogd">
|
---|
| 109 | <term><command>klogd</command></term>
|
---|
| 110 | <listitem>
|
---|
| 111 | <para>A system daemon for intercepting and logging kernel messages</para>
|
---|
| 112 | <indexterm zone="ch-system-sysklogd klogd">
|
---|
| 113 | <primary sortas="b-klogd">klogd</primary>
|
---|
| 114 | </indexterm>
|
---|
| 115 | </listitem>
|
---|
| 116 | </varlistentry>
|
---|
| 117 |
|
---|
| 118 | <varlistentry id="syslogd">
|
---|
| 119 | <term><command>syslogd</command></term>
|
---|
| 120 | <listitem>
|
---|
| 121 | <para>Logs the messages that system programs offer for logging. Every
|
---|
| 122 | logged message contains at least a date stamp and a hostname, and
|
---|
| 123 | normally the program's name too, but that depends on how trusting the
|
---|
| 124 | logging daemon is told to be</para>
|
---|
| 125 | <indexterm zone="ch-system-sysklogd syslogd">
|
---|
| 126 | <primary sortas="b-syslogd">syslogd</primary>
|
---|
| 127 | </indexterm>
|
---|
| 128 | </listitem>
|
---|
| 129 | </varlistentry>
|
---|
| 130 |
|
---|
| 131 | </variablelist>
|
---|
| 132 |
|
---|
| 133 | </sect2>
|
---|
| 134 |
|
---|
| 135 | </sect1>
|
---|