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