]> git.pld-linux.org Git - packages/syslog-ng.git/blame - syslog-ng.conf
- updated to 1.6.5, removed obsolete ac25x patch, simplified spec
[packages/syslog-ng.git] / syslog-ng.conf
CommitLineData
9bb5922e 1#
9b839c47 2# Syslog-ng example configuration for PLD Linux
9bb5922e 3#
4# Copyright (c) 1999 anonymous
5# Copyright (c) 1999 Balazs Scheidler
6# $Id$
7#
69f7f14f 8# Syslog-ng configuration file, compatible with default PLD syslogd
9bb5922e 9# installation.
10#
11
12options { long_hostnames(off); sync(0); };
13
bc57df04
JB
14source src { pipe ("/proc/kmsg" log_prefix("kernel: ")); unix-stream("/dev/log"); internal(); };
15# uncomment the line below if you want to setup syslog server
bc14f9b7 16#source net { udp(); };
69f7f14f
JR
17
18#destination loghost { udp("loghost" port(999)); };
19
20destination kern { file("/var/log/kernel"); };
21destination messages { file("/var/log/messages"); };
22destination authlog { file("/var/log/secure"); };
23destination mail { file("/var/log/maillog"); };
24destination uucp { file("/var/log/spooler"); };
25
26destination debug { file("/var/log/debug"); };
27destination console { usertty("root"); };
93386b4c 28#destination console_all { file("/dev/tty12"); };
69f7f14f
JR
29
30destination xconsole { pipe("/dev/xconsole"); };
31
bc57df04
JB
32#destination mailinfo { file("/var/log/mail/info"); };
33#destination mailwarn { file("/var/log/mail/warn"); };
34#destination mailerr { file("/var/log/mail/err"); };
69f7f14f 35
21fda14b
JR
36destination newscrit { file("/var/log/news/news.crit" owner(news) group(news)); };
37destination newserr { file("/var/log/news/news.err" owner(news) group(news)); };
38destination newsnotice { file("/var/log/news/news.notice" owner(news) group(news)); };
69f7f14f
JR
39
40destination cron { file("/var/log/cron"); };
41destination syslog { file("/var/log/syslog"); };
42destination daemon { file("/var/log/daemon"); };
43destination lpr { file("/var/log/lpr"); };
44destination user { file("/var/log/user"); };
45destination ppp { file("/var/log/ppp"); };
46
47# Log iptables messages to separate file
71df2625 48destination iptables { file("/var/log/iptables"); };
69f7f14f
JR
49
50filter f_auth { facility(auth); };
bc57df04
JB
51filter f_authpriv { facility(auth, authpriv); };
52filter f_syslog { not facility(authpriv, cron, lpr, mail, news); };
53filter f_cron { facility(cron); };
69f7f14f 54filter f_daemon { facility(daemon); };
bc57df04 55filter f_kern { facility(kern); };
69f7f14f
JR
56filter f_lpr { facility(lpr); };
57filter f_mail { facility(mail); };
58filter f_user { facility(user); };
e4b58b62 59filter f_uucp { facility(uucp); };
69f7f14f
JR
60filter f_ppp { facility(daemon) and program(pppd) or program(chat); };
61filter f_news { facility(news); };
62filter f_messages { level(info..warn)
bc57df04
JB
63 and not facility(auth, authpriv, cron, lpr, mail, news, daemon); };
64
69f7f14f
JR
65filter p_debug { level(debug); };
66filter p_info { level(info); };
67filter p_notice { level(notice); };
68filter p_warn { level(warn); };
69filter p_err { level(err); };
70filter p_alert { level(alert); };
71filter p_crit { level(crit); };
72filter p_emergency { level(emerg); };
73
bc57df04 74filter f_iptables { facility(kern) and match("IN=[A-Za-z0-9]* OUT=[A-Za-z0-9]*"); };
69f7f14f
JR
75
76log { source(src); filter(f_kern); destination(kern); };
77
78log { source(src); filter(f_authpriv); destination(authlog); };
79log { source(src); filter(f_syslog); destination(syslog); };
80log { source(src); filter(f_cron); destination(cron); };
81log { source(src); filter(f_daemon); destination(daemon); };
82log { source(src); filter(f_lpr); destination(lpr); };
83log { source(src); filter(f_user); destination(user); };
84log { source(src); filter(f_uucp); destination(uucp); };
85log { source(src); filter(f_messages); destination(messages); };
86log { source(src); filter(f_ppp); destination(ppp); };
87log { source(src); filter(p_debug); destination(debug); };
88log { source(src); filter(p_emergency); destination(console); };
bc57df04 89#log { source(src); destination(console_all); };
9bb5922e 90
69f7f14f 91log { source(src); filter(f_mail); destination(mail); };
7995ef9b 92#log { source(src); filter(f_mail); filter(p_info); destination(mailinfo); };
93#log { source(src); filter(f_mail); filter(p_warn); destination(mailwarn); };
94#log { source(src); filter(f_mail); filter(p_err); destination(mailerr); };
69f7f14f
JR
95
96log { source(src); filter(f_news); filter(p_crit); destination(uucp); };
97log { source(src); filter(f_news); filter(p_crit); destination(newscrit); };
98log { source(src); filter(f_news); filter(p_err); destination(newserr); };
99log { source(src); filter(f_news); filter(p_warn); destination(newsnotice); };
100log { source(src); filter(f_news); filter(p_notice); destination(newsnotice); };
101log { source(src); filter(f_news); filter(p_info); destination(newsnotice); };
102log { source(src); filter(f_news); filter(p_debug); destination(newsnotice); };
9bb5922e 103
bc57df04
JB
104#log { source(src); filter(f_iptables); destination(iptables); };
105
106# This is a catchall statement, and should catch all messages which were not
107# accepted any of the previous statements.
108#log { source(src); filter(DEFAULT); destination(syslog); };
This page took 0.039838 seconds and 4 git commands to generate.