[3f8be484] | 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.3/docbookx.dtd" [ |
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent"> |
---|
| 5 | %general-entities; |
---|
| 6 | ]> |
---|
| 7 | |
---|
| 8 | <sect1 id="ch-system-sysklogd" xreflabel="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 | </sect2> |
---|
| 24 | |
---|
| 25 | <sect2 role="installation"> |
---|
| 26 | <title>Installation of Sysklogd</title> |
---|
| 27 | |
---|
| 28 | <para os="a">The following patch fixes various issues, including a |
---|
| 29 | problem building Sysklogd with Linux 2.6 series kernels</para> |
---|
| 30 | |
---|
| 31 | <screen os="b"><userinput>patch -Np1 -i ../&sysklogd-fixes-patch;</userinput></screen> |
---|
| 32 | |
---|
| 33 | <para os="c">Compile the package:</para> |
---|
| 34 | |
---|
[e0e40d3] | 35 | <screen os="d"><userinput>make</userinput></screen> |
---|
[3f8be484] | 36 | |
---|
[d1631d1] | 37 | <para os="e">This package does not come with a test suite.</para> |
---|
[3f8be484] | 38 | |
---|
[d1631d1] | 39 | <para os="f">Install the package:</para> |
---|
| 40 | |
---|
| 41 | <screen os="g"><userinput>make install</userinput></screen> |
---|
[3f8be484] | 42 | |
---|
| 43 | </sect2> |
---|
| 44 | |
---|
| 45 | <sect2 id="conf-sysklogd" role="configuration"> |
---|
| 46 | <title>Configuring Sysklogd</title> |
---|
| 47 | |
---|
| 48 | <indexterm zone="conf-sysklogd"> |
---|
| 49 | <primary sortas="a-Sysklogd">Sysklogd</primary> |
---|
| 50 | <secondary>configuring</secondary></indexterm> |
---|
| 51 | |
---|
| 52 | <indexterm zone="conf-sysklogd"> |
---|
| 53 | <primary sortas="e-/etc/syslog.conf">/etc/syslog.conf</primary> |
---|
| 54 | </indexterm> |
---|
| 55 | |
---|
| 56 | <para>Create a new <filename>/etc/syslog.conf</filename> file by running |
---|
| 57 | the following:</para> |
---|
| 58 | |
---|
| 59 | <screen><userinput>cat > /etc/syslog.conf << "EOF" |
---|
| 60 | <literal># Begin /etc/syslog.conf |
---|
| 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 | |
---|
| 70 | # log the bootscript output: |
---|
| 71 | local2.* -/var/log/boot.log |
---|
| 72 | |
---|
| 73 | # End /etc/syslog.conf</literal> |
---|
| 74 | EOF</userinput></screen> |
---|
| 75 | |
---|
| 76 | </sect2> |
---|
| 77 | |
---|
| 78 | <sect2 id="contents-sysklogd" role="content"> |
---|
| 79 | <title>Contents of Sysklogd</title> |
---|
| 80 | |
---|
| 81 | <segmentedlist> |
---|
| 82 | <segtitle>Installed programs</segtitle> |
---|
| 83 | |
---|
| 84 | <seglistitem> |
---|
| 85 | <seg>klogd and syslogd</seg> |
---|
| 86 | </seglistitem> |
---|
| 87 | </segmentedlist> |
---|
| 88 | |
---|
| 89 | <variablelist> |
---|
| 90 | <bridgehead renderas="sect3">Short Descriptions</bridgehead> |
---|
| 91 | <?dbfo list-presentation="list"?> |
---|
| 92 | <?dbhtml list-presentation="table"?> |
---|
| 93 | |
---|
| 94 | <varlistentry id="klogd"> |
---|
| 95 | <term><command>klogd</command></term> |
---|
| 96 | <listitem> |
---|
| 97 | <para>A system daemon for intercepting and logging kernel |
---|
| 98 | messages</para> |
---|
| 99 | <indexterm zone="ch-system-sysklogd klogd"> |
---|
| 100 | <primary sortas="b-klogd">klogd</primary> |
---|
| 101 | </indexterm> |
---|
| 102 | </listitem> |
---|
| 103 | </varlistentry> |
---|
| 104 | |
---|
| 105 | <varlistentry id="syslogd"> |
---|
| 106 | <term><command>syslogd</command></term> |
---|
| 107 | <listitem> |
---|
| 108 | <para>Logs the messages that system programs offer for logging. |
---|
| 109 | Every logged message contains at least a date stamp and a hostname, |
---|
| 110 | and normally the program's name too, but that depends on how |
---|
[3bec8f3] | 111 | trusting the logging daemon is told to be.</para> |
---|
[3f8be484] | 112 | <indexterm zone="ch-system-sysklogd syslogd"> |
---|
| 113 | <primary sortas="b-syslogd">syslogd</primary> |
---|
| 114 | </indexterm> |
---|
| 115 | </listitem> |
---|
| 116 | </varlistentry> |
---|
| 117 | |
---|
| 118 | </variablelist> |
---|
| 119 | |
---|
| 120 | </sect2> |
---|
| 121 | |
---|
| 122 | </sect1> |
---|