Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-firewall/ufw/files/syslog-ng: syslog-ng.example ufw.logrotate
Date: Sat, 03 Sep 2011 12:18:08
Message-Id: 20110903121752.BC05620051@flycatcher.gentoo.org
1 pva 11/09/03 12:17:52
2
3 Added: syslog-ng.example ufw.logrotate
4 Log:
5 Add example syslog configurations for rsyslog and syslog-ng, bug #380461, thank Emmanuel Andry for report and SÅ‚awomir Nizio for this job.
6
7 (Portage version: 2.1.10.11/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-firewall/ufw/files/syslog-ng/syslog-ng.example
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ufw/files/syslog-ng/syslog-ng.example?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ufw/files/syslog-ng/syslog-ng.example?rev=1.1&content-type=text/plain
14
15 Index: syslog-ng.example
16 ===================================================================
17 # This is an example rule for app-admin/syslog-ng to separate ufw logs
18 # from /var/log/messages.
19 # Place those lines before "log" entries in /etc/syslog-ng/syslog-ng.conf.
20
21 filter f_ufw { match("\\[UFW " value("MESSAGE")); };
22 destination ufwfile { file("/var/log/ufw.log"); };
23 log {
24 source(src);
25 filter(f_ufw);
26 destination(ufwfile);
27 destination(console_all);
28 flags(final);
29 };
30
31
32
33 1.1 net-firewall/ufw/files/syslog-ng/ufw.logrotate
34
35 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ufw/files/syslog-ng/ufw.logrotate?rev=1.1&view=markup
36 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ufw/files/syslog-ng/ufw.logrotate?rev=1.1&content-type=text/plain
37
38 Index: ufw.logrotate
39 ===================================================================
40 # logrotate snippet for ufw
41 # requires app-admin/syslog-ng
42 # copy the file into /etc/logrotate.d
43 /var/log/ufw.log {
44 missingok
45 rotate 5
46 notifempty
47 sharedscripts
48 postrotate
49 /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
50 endscript
51 }