[37de9d1] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//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-rsyslog" xreflabel="rsyslog" role="wrap">
|
---|
| 9 | <?dbhtml filename="rsyslog.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Rsyslog-&rsyslog-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-rsyslog">
|
---|
| 14 | <primary sortas="a-rsyslog">rsyslog</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The rsyslog 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">
|
---|
[13e20ae] | 26 | <title>Installation of Rsyslog</title>
|
---|
[37de9d1] | 27 |
|
---|
| 28 | <para os="a">Prepare Rsyslog for compilation:</para>
|
---|
| 29 |
|
---|
| 30 | <screen os="b"><userinput>./configure --prefix=/usr --sbindir=/sbin</userinput></screen>
|
---|
| 31 |
|
---|
| 32 | <para os="c">Compile the package:</para>
|
---|
| 33 |
|
---|
| 34 | <screen os="d"><userinput>make</userinput></screen>
|
---|
| 35 |
|
---|
| 36 | <para os="e">This package does not come with a test suite.</para>
|
---|
| 37 |
|
---|
| 38 | <para os="f">Install the package:</para>
|
---|
| 39 |
|
---|
| 40 | <screen os="g"><userinput>make install</userinput></screen>
|
---|
| 41 |
|
---|
| 42 | </sect2>
|
---|
| 43 |
|
---|
| 44 | <sect2 id="conf-rsyslog" role="configuration">
|
---|
| 45 | <title>Configuring rsyslog</title>
|
---|
| 46 |
|
---|
| 47 | <indexterm zone="conf-rsyslog">
|
---|
| 48 | <primary sortas="a-rsyslog">rsyslog</primary>
|
---|
| 49 | <secondary>configuring</secondary></indexterm>
|
---|
| 50 |
|
---|
| 51 | <indexterm zone="conf-rsyslog">
|
---|
| 52 | <primary sortas="e-/etc/rsyslog.conf">/etc/rsyslog.conf</primary>
|
---|
| 53 | </indexterm>
|
---|
| 54 |
|
---|
| 55 | <para>Create a new <filename>/etc/rsyslog.conf</filename> file by running
|
---|
| 56 | the following:</para>
|
---|
| 57 |
|
---|
| 58 | <screen><userinput>cat > /etc/rsyslog.conf << "EOF"
|
---|
| 59 | <literal># Begin /etc/rsyslog.conf
|
---|
| 60 |
|
---|
| 61 | # CLFS configuration of rsyslog. For more info use man rsyslog.conf
|
---|
| 62 |
|
---|
| 63 | #######################################################################
|
---|
| 64 | # Rsyslog Modules
|
---|
| 65 |
|
---|
| 66 | # Support for Local System Logging
|
---|
| 67 | $ModLoad imuxsock.so
|
---|
| 68 |
|
---|
| 69 | # Support for Kernel Logging
|
---|
| 70 | $ModLoad imklog.so
|
---|
| 71 |
|
---|
| 72 | #######################################################################
|
---|
| 73 | # Global Options
|
---|
| 74 |
|
---|
| 75 | # Use traditional timestamp format.
|
---|
| 76 | $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
|
---|
| 77 |
|
---|
| 78 | # Set the default permissions for all log files.
|
---|
| 79 | $FileOwner root
|
---|
| 80 | $FileGroup root
|
---|
| 81 | $FileCreateMode 0640
|
---|
| 82 | $DirCreateMode 0755
|
---|
| 83 |
|
---|
| 84 | #######################################################################
|
---|
| 85 | # Standard Log Files
|
---|
| 86 |
|
---|
| 87 | auth,authpriv.* /var/log/auth.log
|
---|
| 88 | *.*;auth,authpriv.none -/var/log/syslog
|
---|
| 89 | daemon.* -/var/log/daemon.log
|
---|
| 90 | kern.* -/var/log/kern.log
|
---|
| 91 | lpr.* -/var/log/lpr.log
|
---|
| 92 | mail.* -/var/log/mail.log
|
---|
| 93 | user.* -/var/log/user.log
|
---|
| 94 |
|
---|
| 95 | # Catch All Logs
|
---|
| 96 | *.=debug;\
|
---|
| 97 | auth,authpriv.none;\
|
---|
| 98 | news.none;mail.none -/var/log/debug
|
---|
| 99 | *.=info;*.=notice;*.=warn;\
|
---|
| 100 | auth,authpriv.none;\
|
---|
| 101 | cron,daemon.none;\
|
---|
| 102 | mail,news.none -/var/log/messages
|
---|
| 103 |
|
---|
| 104 | # Emergency are shown to everyone
|
---|
| 105 | *.emerg *
|
---|
| 106 |
|
---|
| 107 | # End /etc/rsyslog.conf</literal>
|
---|
| 108 | EOF</userinput></screen>
|
---|
| 109 |
|
---|
| 110 | </sect2>
|
---|
| 111 |
|
---|
| 112 | <sect2 id="contents-rsyslog" role="content">
|
---|
| 113 | <title>Contents of rsyslog</title>
|
---|
| 114 |
|
---|
| 115 | <segmentedlist>
|
---|
| 116 | <segtitle>Installed programs</segtitle>
|
---|
| 117 |
|
---|
| 118 | <seglistitem>
|
---|
| 119 | <seg>rsyslogd</seg>
|
---|
| 120 | </seglistitem>
|
---|
| 121 | </segmentedlist>
|
---|
| 122 |
|
---|
| 123 | <variablelist>
|
---|
| 124 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 125 | <?dbfo list-presentation="list"?>
|
---|
| 126 | <?dbhtml list-presentation="table"?>
|
---|
| 127 |
|
---|
| 128 | <varlistentry id="rsyslogd">
|
---|
| 129 | <term><command>rsyslogd</command></term>
|
---|
| 130 | <listitem>
|
---|
| 131 | <para>Logs the messages that system programs offer for logging.
|
---|
| 132 | Every logged message contains at least a date stamp and a hostname,
|
---|
| 133 | and normally the program's name too, but that depends on how
|
---|
| 134 | trusting the logging daemon is told to be.</para>
|
---|
| 135 | <indexterm zone="ch-system-rsyslog rsyslogd">
|
---|
| 136 | <primary sortas="b-rsyslogd">syslogd</primary>
|
---|
| 137 | </indexterm>
|
---|
| 138 | </listitem>
|
---|
| 139 | </varlistentry>
|
---|
| 140 |
|
---|
| 141 | </variablelist>
|
---|
| 142 |
|
---|
| 143 | </sect2>
|
---|
| 144 |
|
---|
| 145 | </sect1>
|
---|