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