1 |
mr_bones_ 11/09/29 21:21:12 |
2 |
|
3 |
Added: syslog-ng.conf.gentoo.3.3 |
4 |
syslog-ng.conf.gentoo.hardened.3.3 |
5 |
syslog-ng.conf.gentoo.fbsd.3.3 |
6 |
Log: |
7 |
masked version bump for ebuild testing |
8 |
|
9 |
(Portage version: 2.1.10.11/cvs/Linux i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 app-admin/syslog-ng/files/syslog-ng.conf.gentoo.3.3 |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.3.3?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.3.3?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: syslog-ng.conf.gentoo.3.3 |
18 |
=================================================================== |
19 |
@version: 3.3 |
20 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.3.3,v 1.1 2011/09/29 21:21:12 mr_bones_ Exp $ |
21 |
# |
22 |
# Syslog-ng default configuration file for Gentoo Linux |
23 |
|
24 |
options { |
25 |
chain_hostnames(no); |
26 |
|
27 |
# The default action of syslog-ng is to log a STATS line |
28 |
# to the file every 10 minutes. That's pretty ugly after a while. |
29 |
# Change it to every 12 hours so you get a nice daily update of |
30 |
# how many messages syslog-ng missed (0). |
31 |
stats_freq(43200); |
32 |
# The default action of syslog-ng is to log a MARK line |
33 |
# to the file every 20 minutes. That's seems high for most |
34 |
# people so turn it down to once an hour. Set it to zero |
35 |
# if you don't want the functionality at all. |
36 |
mark_freq(3600); |
37 |
}; |
38 |
|
39 |
source src { |
40 |
unix-stream("/dev/log" max-connections(256)); |
41 |
internal(); |
42 |
file("/proc/kmsg"); |
43 |
}; |
44 |
|
45 |
destination messages { file("/var/log/messages"); }; |
46 |
|
47 |
# By default messages are logged to tty12... |
48 |
destination console_all { file("/dev/tty12"); }; |
49 |
# ...if you intend to use /dev/console for programs like xconsole |
50 |
# you can comment out the destination line above that references /dev/tty12 |
51 |
# and uncomment the line below. |
52 |
#destination console_all { file("/dev/console"); }; |
53 |
|
54 |
log { source(src); destination(messages); }; |
55 |
log { source(src); destination(console_all); }; |
56 |
|
57 |
|
58 |
|
59 |
1.1 app-admin/syslog-ng/files/syslog-ng.conf.gentoo.hardened.3.3 |
60 |
|
61 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.hardened.3.3?rev=1.1&view=markup |
62 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.hardened.3.3?rev=1.1&content-type=text/plain |
63 |
|
64 |
Index: syslog-ng.conf.gentoo.hardened.3.3 |
65 |
=================================================================== |
66 |
@version: 3.3 |
67 |
# Copyright 1999-2011 Gentoo Foundation |
68 |
# Distributed under the terms of the GNU General Public License v2 |
69 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.hardened.3.3,v 1.1 2011/09/29 21:21:12 mr_bones_ Exp $ |
70 |
|
71 |
# |
72 |
# Syslog-ng configuration file, compatible with default hardened installations. |
73 |
# |
74 |
|
75 |
options { |
76 |
chain_hostnames(no); |
77 |
stats_freq(43200); |
78 |
}; |
79 |
|
80 |
source src { |
81 |
unix-stream("/dev/log"); |
82 |
internal(); |
83 |
}; |
84 |
source kernsrc { |
85 |
file("/proc/kmsg"); |
86 |
}; |
87 |
|
88 |
#source net { udp(); }; |
89 |
#log { source(net); destination(net_logs); }; |
90 |
#destination net_logs { file("/var/log/HOSTS/$HOST/$YEAR$MONTH$DAY.log"); }; |
91 |
|
92 |
destination authlog { file("/var/log/auth.log"); }; |
93 |
destination _syslog { file("/var/log/syslog"); }; |
94 |
destination cron { file("/var/log/cron.log"); }; |
95 |
destination daemon { file("/var/log/daemon.log"); }; |
96 |
destination kern { file("/var/log/kern.log"); file("/dev/tty12"); }; |
97 |
destination lpr { file("/var/log/lpr.log"); }; |
98 |
destination user { file("/var/log/user.log"); }; |
99 |
destination uucp { file("/var/log/uucp.log"); }; |
100 |
#destination ppp { file("/var/log/ppp.log"); }; |
101 |
destination mail { file("/var/log/mail.log"); }; |
102 |
|
103 |
destination avc { file("/var/log/avc.log"); }; |
104 |
destination audit { file("/var/log/audit.log"); }; |
105 |
destination pax { file("/var/log/pax.log"); }; |
106 |
destination grsec { file("/var/log/grsec.log"); }; |
107 |
|
108 |
destination mailinfo { file("/var/log/mail.info"); }; |
109 |
destination mailwarn { file("/var/log/mail.warn"); }; |
110 |
destination mailerr { file("/var/log/mail.err"); }; |
111 |
|
112 |
destination newscrit { file("/var/log/news/news.crit"); }; |
113 |
destination newserr { file("/var/log/news/news.err"); }; |
114 |
destination newsnotice { file("/var/log/news/news.notice"); }; |
115 |
|
116 |
destination debug { file("/var/log/debug"); }; |
117 |
destination messages { file("/var/log/messages"); }; |
118 |
destination console { usertty("root"); }; |
119 |
destination console_all { file("/dev/tty12"); }; |
120 |
#destination loghost { udp("loghost" port(999)); }; |
121 |
|
122 |
destination xconsole { pipe("/dev/xconsole"); }; |
123 |
|
124 |
filter f_auth { facility(auth); }; |
125 |
filter f_authpriv { facility(auth, authpriv); }; |
126 |
filter f_syslog { not facility(authpriv, mail); }; |
127 |
filter f_cron { facility(cron); }; |
128 |
filter f_daemon { facility(daemon); }; |
129 |
filter f_kern { facility(kern); }; |
130 |
filter f_lpr { facility(lpr); }; |
131 |
filter f_mail { facility(mail); }; |
132 |
filter f_user { facility(user); }; |
133 |
filter f_uucp { facility(uucp); }; |
134 |
#filter f_ppp { facility(ppp); }; |
135 |
filter f_news { facility(news); }; |
136 |
filter f_debug { not facility(auth, authpriv, news, mail); }; |
137 |
filter f_messages { level(info..warn) |
138 |
and not facility(auth, authpriv, mail, news); }; |
139 |
filter f_emergency { level(emerg); }; |
140 |
|
141 |
filter f_info { level(info); }; |
142 |
|
143 |
filter f_notice { level(notice); }; |
144 |
filter f_warn { level(warn); }; |
145 |
filter f_crit { level(crit); }; |
146 |
filter f_err { level(err); }; |
147 |
|
148 |
filter f_avc { message(".*avc: .*"); }; |
149 |
filter f_audit { message("^(\\[.*\..*\] |)audit.*") and not message(".*avc: .*"); }; |
150 |
filter f_pax { message("^(\\[.*\..*\] |)PAX:.*"); }; |
151 |
filter f_grsec { message("^(\\[.*\..*\] |)grsec:.*"); }; |
152 |
|
153 |
log { source(src); filter(f_authpriv); destination(authlog); }; |
154 |
log { source(src); filter(f_syslog); destination(_syslog); }; |
155 |
log { source(src); filter(f_cron); destination(cron); }; |
156 |
log { source(src); filter(f_daemon); destination(daemon); }; |
157 |
log { source(kernsrc); filter(f_kern); destination(kern); }; |
158 |
log { source(src); filter(f_lpr); destination(lpr); }; |
159 |
log { source(src); filter(f_mail); destination(mail); }; |
160 |
log { source(src); filter(f_user); destination(user); }; |
161 |
log { source(src); filter(f_uucp); destination(uucp); }; |
162 |
log { source(kernsrc); filter(f_pax); destination(pax); }; |
163 |
log { source(kernsrc); filter(f_grsec); destination(grsec); }; |
164 |
log { source(kernsrc); filter(f_audit); destination(audit); }; |
165 |
log { source(kernsrc); filter(f_avc); destination(avc); }; |
166 |
log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); }; |
167 |
log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); }; |
168 |
log { source(src); filter(f_mail); filter(f_err); destination(mailerr); }; |
169 |
log { source(src); filter(f_news); filter(f_crit); destination(newscrit); }; |
170 |
log { source(src); filter(f_news); filter(f_err); destination(newserr); }; |
171 |
log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); }; |
172 |
log { source(src); filter(f_debug); destination(debug); }; |
173 |
log { source(src); filter(f_messages); destination(messages); }; |
174 |
log { source(src); filter(f_emergency); destination(console); }; |
175 |
#log { source(src); filter(f_ppp); destination(ppp); }; |
176 |
log { source(src); destination(console_all); }; |
177 |
|
178 |
|
179 |
|
180 |
1.1 app-admin/syslog-ng/files/syslog-ng.conf.gentoo.fbsd.3.3 |
181 |
|
182 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.fbsd.3.3?rev=1.1&view=markup |
183 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.fbsd.3.3?rev=1.1&content-type=text/plain |
184 |
|
185 |
Index: syslog-ng.conf.gentoo.fbsd.3.3 |
186 |
=================================================================== |
187 |
@version: 3.3 |
188 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.fbsd.3.3,v 1.1 2011/09/29 21:21:12 mr_bones_ Exp $ |
189 |
# |
190 |
# Syslog-ng default configuration file for Gentoo FreeBSD |
191 |
# |
192 |
options { |
193 |
chain_hostnames(no); |
194 |
|
195 |
# The default action of syslog-ng is to log a STATS line |
196 |
# to the file every 10 minutes. That's pretty ugly after a while. |
197 |
# Change it to every 12 hours so you get a nice daily update of |
198 |
# how many messages syslog-ng missed (0). |
199 |
stats_freq(43200); |
200 |
}; |
201 |
|
202 |
source src { |
203 |
unix-dgram("/var/run/log"); |
204 |
internal(); |
205 |
file("/dev/klog"); |
206 |
}; |
207 |
|
208 |
destination messages { file("/var/log/messages"); }; |
209 |
|
210 |
log { source(src); destination(messages); }; |