source: clfs-sysroot/BOOK/final-system/common/rsyslog.xml@ e867aad

Last change on this file since e867aad was 667fd39, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Fixed compilation errors with xzutils and rsyslog.

  • Property mode set to 100644
File size: 5.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="cc1">When Cross Compiling the configure script does not
29 does not determine the correct values for the following, Set the values
30 manually:</para>
31
32<screen os="cc1"><userinput>cat &gt; config.cache &lt;&lt; EOF
33ac_cv_func_malloc_0_nonnull=yes
34ac_cv_func_realloc_0_nonnull=yes
35EOF</userinput></screen>
36
37 <para os="a">Prepare Rsyslog for compilation:</para>
38
39<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
40 --prefix=/usr --sbindir=/sbin \
41 --cache-file=config.cache</userinput></screen>
42
43 <para os="c">Compile the package:</para>
44
45<screen os="d"><userinput>make</userinput></screen>
46
47 <para os="e">This package does not come with a test suite.</para>
48
49 <para os="f">Install the package:</para>
50
51<screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
52
53 <para os="h">Create a directory for expansion snippets:</para>
54
55<screen os="i"><userinput>install -dv ${CLFS}/etc/rsyslog.d</userinput></screen>
56
57 </sect2>
58
59 <sect2 id="conf-rsyslog" role="configuration">
60 <title>Configuring rsyslog</title>
61
62 <indexterm zone="conf-rsyslog">
63 <primary sortas="a-rsyslog">rsyslog</primary>
64 <secondary>configuring</secondary></indexterm>
65
66 <indexterm zone="conf-rsyslog">
67 <primary sortas="e-/etc/rsyslog.conf">/etc/rsyslog.conf</primary>
68 </indexterm>
69
70 <para>Create a new <filename>/etc/rsyslog.conf</filename> file by running
71 the following:</para>
72
73<screen><userinput>cat &gt; ${CLFS}/etc/rsyslog.conf &lt;&lt; "EOF"
74<literal># Begin /etc/rsyslog.conf
75
76# CLFS configuration of rsyslog. For more info use man rsyslog.conf
77
78#######################################################################
79# Rsyslog Modules
80
81# Support for Local System Logging
82$ModLoad imuxsock.so
83
84# Support for Kernel Logging
85$ModLoad imklog.so
86
87#######################################################################
88# Global Options
89
90# Use traditional timestamp format.
91$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
92
93# Set the default permissions for all log files.
94$FileOwner root
95$FileGroup root
96$FileCreateMode 0640
97$DirCreateMode 0755
98
99# Provides UDP reception
100$ModLoad imudp
101$UDPServerRun 514
102
103# Disable Repating of Entries
104$RepeatedMsgReduction on
105
106#######################################################################
107# Include Rsyslog Config Snippets
108
109$IncludeConfig /etc/rsyslog.d/*.conf
110
111#######################################################################
112# Standard Log Files
113
114auth,authpriv.* /var/log/auth.log
115*.*;auth,authpriv.none -/var/log/syslog
116daemon.* -/var/log/daemon.log
117kern.* -/var/log/kern.log
118lpr.* -/var/log/lpr.log
119mail.* -/var/log/mail.log
120user.* -/var/log/user.log
121
122# Catch All Logs
123*.=debug;\
124 auth,authpriv.none;\
125 news.none;mail.none -/var/log/debug
126*.=info;*.=notice;*.=warn;\
127 auth,authpriv.none;\
128 cron,daemon.none;\
129 mail,news.none -/var/log/messages
130
131# Emergency are shown to everyone
132*.emerg *
133
134# End /etc/rsyslog.conf</literal>
135EOF</userinput></screen>
136
137 </sect2>
138
139 <sect2 id="contents-rsyslog" role="content">
140 <title>Contents of rsyslog</title>
141
142 <segmentedlist>
143 <segtitle>Installed programs</segtitle>
144
145 <seglistitem>
146 <seg>rsyslogd</seg>
147 </seglistitem>
148 </segmentedlist>
149
150 <variablelist>
151 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
152 <?dbfo list-presentation="list"?>
153 <?dbhtml list-presentation="table"?>
154
155 <varlistentry id="rsyslogd">
156 <term><command>rsyslogd</command></term>
157 <listitem>
158 <para>Logs the messages that system programs offer for logging.
159 Every logged message contains at least a date stamp and a hostname,
160 and normally the program's name too, but that depends on how
161 trusting the logging daemon is told to be.</para>
162 <indexterm zone="ch-system-rsyslog rsyslogd">
163 <primary sortas="b-rsyslogd">syslogd</primary>
164 </indexterm>
165 </listitem>
166 </varlistentry>
167
168 </variablelist>
169
170 </sect2>
171
172</sect1>
Note: See TracBrowser for help on using the repository browser.