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