source: BOOK/final-system/common/rsyslog.xml@ b25f67d

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since b25f67d was b25f67d, checked in by Jim Gifford <clfs@…>, 16 years ago

Updates to rsyslog.conf

  • Property mode set to 100644
File size: 4.0 KB
Line 
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">
26 <title>Installation of Rsyslog</title>
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 &gt; /etc/rsyslog.conf &lt;&lt; "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# Provides UDP reception
85$ModLoad imudp
86$UDPServerRun 514
87
88# Disable Repating of Entries
89$RepeatedMsgReduction on
90
91#######################################################################
92# Standard Log Files
93
94auth,authpriv.* /var/log/auth.log
95*.*;auth,authpriv.none -/var/log/syslog
96daemon.* -/var/log/daemon.log
97kern.* -/var/log/kern.log
98lpr.* -/var/log/lpr.log
99mail.* -/var/log/mail.log
100user.* -/var/log/user.log
101
102# Catch All Logs
103*.=debug;\
104 auth,authpriv.none;\
105 news.none;mail.none -/var/log/debug
106*.=info;*.=notice;*.=warn;\
107 auth,authpriv.none;\
108 cron,daemon.none;\
109 mail,news.none -/var/log/messages
110
111# Emergency are shown to everyone
112*.emerg *
113
114# End /etc/rsyslog.conf</literal>
115EOF</userinput></screen>
116
117 </sect2>
118
119 <sect2 id="contents-rsyslog" role="content">
120 <title>Contents of rsyslog</title>
121
122 <segmentedlist>
123 <segtitle>Installed programs</segtitle>
124
125 <seglistitem>
126 <seg>rsyslogd</seg>
127 </seglistitem>
128 </segmentedlist>
129
130 <variablelist>
131 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
132 <?dbfo list-presentation="list"?>
133 <?dbhtml list-presentation="table"?>
134
135 <varlistentry id="rsyslogd">
136 <term><command>rsyslogd</command></term>
137 <listitem>
138 <para>Logs the messages that system programs offer for logging.
139 Every logged message contains at least a date stamp and a hostname,
140 and normally the program's name too, but that depends on how
141 trusting the logging daemon is told to be.</para>
142 <indexterm zone="ch-system-rsyslog rsyslogd">
143 <primary sortas="b-rsyslogd">syslogd</primary>
144 </indexterm>
145 </listitem>
146 </varlistentry>
147
148 </variablelist>
149
150 </sect2>
151
152</sect1>
Note: See TracBrowser for help on using the repository browser.