[90d4172] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[1e91bc9] | 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>
|
---|
[fc1024a] | 19 | <seglistitem><seg>0.1 SBU</seg><seg>704 KB</seg></seglistitem>
|
---|
[90d4172] | 20 | </segmentedlist>
|
---|
| 21 |
|
---|
| 22 | <segmentedlist>
|
---|
[7b409b7] | 23 | <segtitle>&dependencies;</segtitle>
|
---|
[90d4172] | 24 | <seglistitem><seg>Binutils, Coreutils, GCC, Glibc, Make</seg></seglistitem>
|
---|
| 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 |
|
---|
[7b409b7] | 34 | <screen><userinput>patch -Np1 -i ../sysklogd-&sysklogd-version;-fixes-1.patch</userinput></screen>
|
---|
[90d4172] | 35 |
|
---|
[7b409b7] | 36 | <para>Compile the package:</para>
|
---|
[90d4172] | 37 |
|
---|
| 38 | <screen><userinput>make</userinput></screen>
|
---|
| 39 |
|
---|
[7b409b7] | 40 | <para>Install the package:</para>
|
---|
[90d4172] | 41 |
|
---|
| 42 | <screen><userinput>make install</userinput></screen>
|
---|
| 43 |
|
---|
| 44 | </sect2>
|
---|
| 45 |
|
---|
| 46 |
|
---|
| 47 | <sect2 id="conf-sysklogd" role="configuration"><title>Configuring Sysklogd</title>
|
---|
| 48 | <indexterm zone="conf-sysklogd">
|
---|
| 49 | <primary sortas="a-Sysklogd">Sysklogd</primary>
|
---|
| 50 | <secondary>configuring</secondary></indexterm>
|
---|
| 51 |
|
---|
| 52 | <indexterm zone="conf-sysklogd"><primary sortas="e-/etc/syslog.conf">/etc/syslog.conf</primary></indexterm>
|
---|
| 53 |
|
---|
| 54 | <para>Create a new <filename>/etc/syslog.conf</filename> file by running the
|
---|
| 55 | following:</para>
|
---|
| 56 |
|
---|
| 57 | <screen><userinput>cat > /etc/syslog.conf << "EOF"
|
---|
[6ff69d4] | 58 | <literal># Begin /etc/syslog.conf
|
---|
[90d4172] | 59 |
|
---|
| 60 | auth,authpriv.* -/var/log/auth.log
|
---|
| 61 | *.*;auth,authpriv.none -/var/log/sys.log
|
---|
| 62 | daemon.* -/var/log/daemon.log
|
---|
| 63 | kern.* -/var/log/kern.log
|
---|
| 64 | mail.* -/var/log/mail.log
|
---|
| 65 | user.* -/var/log/user.log
|
---|
| 66 | *.emerg *
|
---|
| 67 |
|
---|
[7b409b7] | 68 | # log the bootscript output:
|
---|
| 69 | local2.* -/var/log/boot.log
|
---|
| 70 |
|
---|
[6ff69d4] | 71 | # End /etc/syslog.conf</literal>
|
---|
[90d4172] | 72 | EOF</userinput></screen>
|
---|
| 73 |
|
---|
[c851a9a] | 74 | <beginpage/>
|
---|
[90d4172] | 75 |
|
---|
[c851a9a] | 76 | </sect2>
|
---|
[90d4172] | 77 |
|
---|
| 78 | <sect2 id="contents-sysklogd" role="content"><title>Contents of Sysklogd</title>
|
---|
| 79 |
|
---|
| 80 | <segmentedlist>
|
---|
| 81 | <segtitle>Installed programs</segtitle>
|
---|
| 82 | <seglistitem><seg>klogd and syslogd</seg></seglistitem>
|
---|
| 83 | </segmentedlist>
|
---|
| 84 |
|
---|
[7b409b7] | 85 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 86 | <?dbfo list-presentation="list"?>
|
---|
| 87 | <?dbhtml list-presentation="table"?>
|
---|
[90d4172] | 88 |
|
---|
| 89 | <varlistentry id="klogd">
|
---|
| 90 | <term><command>klogd</command></term>
|
---|
| 91 | <listitem>
|
---|
[6ff69d4] | 92 | <para>A system daemon for intercepting and logging kernel messages</para>
|
---|
[c851a9a] | 93 | <indexterm zone="ch-system-sysklogd klogd"><primary sortas="b-klogd">klogd</primary></indexterm>
|
---|
[90d4172] | 94 | </listitem>
|
---|
| 95 | </varlistentry>
|
---|
| 96 |
|
---|
| 97 | <varlistentry id="syslogd">
|
---|
| 98 | <term><command>syslogd</command></term>
|
---|
| 99 | <listitem>
|
---|
[6ff69d4] | 100 | <para>Logs the messages that system programs offer for logging. Every logged
|
---|
[7b409b7] | 101 | message contains at least a date stamp and a hostname, and normally the
|
---|
| 102 | program's name too, but that depends on how trusting the logging daemon is told
|
---|
[6ff69d4] | 103 | to be</para>
|
---|
[c851a9a] | 104 | <indexterm zone="ch-system-sysklogd syslogd"><primary sortas="b-syslogd">syslogd</primary></indexterm>
|
---|
[90d4172] | 105 | </listitem>
|
---|
| 106 | </varlistentry>
|
---|
| 107 | </variablelist>
|
---|
| 108 |
|
---|
| 109 | </sect2>
|
---|
| 110 |
|
---|
| 111 | </sect1>
|
---|