source: chapter06/syslogng.xml@ 307348a

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 307348a was 45992ae, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Removed the package name from the dependencies titles.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4682 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 5.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-syslogng" xreflabel="Syslog-ng" role="wrap">
7<title>Syslog-ng-&syslog-ng-version;</title>
8<?dbhtml filename="syslogng.html"?>
9
10<indexterm zone="ch-system-syslogng"><primary sortas="a-Syslogng">Syslog-ng</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Syslog-ng package contains programs for logging system messages, such
14as those given by the kernel when unusual things happen.</para>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>Unchecked</seg><seg>Unchecked</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>&dependencies;</segtitle>
24<seglistitem><seg>Unchecked</seg></seglistitem>
25</segmentedlist>
26</sect2>
27
28<sect2 role="installation">
29<title>Installation of Syslog-ng</title>
30
31<para>Prepare Syslog-ng for compilation:</para>
32
33<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc</userinput></screen>
34
35<para>Compile the package:</para>
36
37<screen><userinput>make</userinput></screen>
38
39<para>Install the package:</para>
40
41<screen><userinput>make install</userinput></screen>
42
43</sect2>
44
45
46<sect2 id="conf-syslogng" role="configuration"><title>Configuring Syslog-ng</title>
47<indexterm zone="conf-syslogng">
48<primary sortas="a-Syslogng">Syslog-ng</primary>
49<secondary>configuring</secondary></indexterm>
50
51<indexterm zone="conf-syslogng"><primary sortas="e-/etc/syslog-ng/syslog-ng.conf">/etc/syslog-ng/syslog-ng.conf</primary></indexterm>
52
53<para>Create a new <filename>/etc/syslog-ng/syslog-ng.conf</filename> file by
54running the following:</para>
55
56<screen><userinput>mkdir -p /etc/syslog-ng
57cat &gt; /etc/syslog-ng/syslog-ng.conf &lt;&lt; "EOF"
58<literal># Begin /etc/syslog-ng/syslog-ng.conf
59
60options { sync (0);
61 time_reopen (10);
62 log_fifo_size (1000);
63 long_hostnames(off);
64 use_dns (no);
65 use_fqdn (no);
66 create_dirs (no);
67 keep_hostname (yes);
68 };
69
70source src { unix-stream("/dev/log");
71 internal();
72 pipe("/proc/kmsg");
73 };
74
75destination authlog { file("/var/log/authorize.log"); };
76destination syslog { file("/var/log/syslog.log"); };
77destination cron { file("/var/log/cron.log"); };
78destination daemon { file("/var/log/daemon.log"); };
79destination kernel { file("/var/log/kernel.log"); };
80destination lpr { file("/var/log/lpr.log"); };
81destination user { file("/var/log/user.log"); };
82destination uucp { file("/var/log/uucp.log"); };
83destination mail { file("/var/log/mail.log"); };
84destination news { file("/var/log/news.log"); };
85destination debug { file("/var/log/debug.log"); };
86destination messages { file("/var/log/messages.log"); };
87destination everything { file("/var/log/everything.log"); };
88destination console { usertty("root"); };
89destination console_all { file("/dev/tty12"); };
90
91filter f_auth { facility(auth); };
92filter f_authpriv { facility(auth, authpriv); };
93filter f_syslog { not facility(authpriv, mail); };
94filter f_cron { facility(cron); };
95filter f_daemon { facility(daemon); };
96filter f_kernel { facility(kern); };
97filter f_lpr { facility(lpr); };
98filter f_mail { facility(mail); };
99filter f_news { facility(news); };
100filter f_user { facility(user); };
101filter f_uucp { facility(uucp); };
102filter f_debug { not facility(auth, authpriv, news, mail); };
103filter f_messages { level(info..warn) and not facility(auth, authpriv, mail, news); };
104filter f_everything { level(debug..emerg) and not facility(auth, authpriv); };
105
106filter f_emergency { level(emerg); };
107filter f_info { level(info); };
108filter f_notice { level(notice); };
109filter f_warn { level(warn); };
110filter f_crit { level(crit); };
111filter f_err { level(err); };
112
113log { source(src); filter(f_authpriv); destination(authlog); };
114log { source(src); filter(f_syslog); destination(syslog); };
115log { source(src); filter(f_cron); destination(cron); };
116log { source(src); filter(f_daemon); destination(daemon); };
117log { source(src); filter(f_kernel); destination(kernel); };
118log { source(src); filter(f_lpr); destination(lpr); };
119log { source(src); filter(f_mail); destination(mail); };
120log { source(src); filter(f_news); destination(news); };
121log { source(src); filter(f_user); destination(user); };
122log { source(src); filter(f_uucp); destination(uucp); };
123log { source(src); filter(f_debug); destination(debug); };
124log { source(src); filter(f_messages); destination(messages); };
125log { source(src); filter(f_emergency); destination(console); };
126log { source(src); filter(f_everything); destination(everything); };
127log { source(src); destination(console_all); };
128
129# END /etc/syslog-ng/syslog-ng.conf</literal>
130EOF</userinput></screen>
131
132</sect2>
133
134<sect2 id="contents-syslogng" role="content"><title>Contents of Syslog-ng</title>
135
136<segmentedlist>
137<segtitle>Installed programs</segtitle>
138<seglistitem><seg>Unchecked</seg></seglistitem>
139</segmentedlist>
140
141<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
142<?dbfo list-presentation="list"?>
143<?dbhtml list-presentation="table"?>
144
145<varlistentry id="syslog-ng">
146<term><command>syslog-ng</command></term>
147<listitem>
148<indexterm zone="ch-system-syslogng"><primary sortas="b-syslog-ng">syslog-ng</primary></indexterm>
149<para>Logs the messages that system programs
150offer for logging. Every logged message contains at least a date stamp and a
151hostname, and normally the program's name too, but that depends on how
152trusting the logging daemon is told to be.</para>
153</listitem>
154
155</varlistentry>
156</variablelist>
157
158</sect2>
159
160</sect1>
Note: See TracBrowser for help on using the repository browser.