public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-firewall/ufw/files/syslog-ng: syslog-ng.example ufw.logrotate
@ 2011-09-03 12:17 Peter Volkov (pva)
  0 siblings, 0 replies; only message in thread
From: Peter Volkov (pva) @ 2011-09-03 12:17 UTC (permalink / raw
  To: gentoo-commits

pva         11/09/03 12:17:52

  Added:                syslog-ng.example ufw.logrotate
  Log:
  Add example syslog configurations for rsyslog and syslog-ng, bug #380461, thank Emmanuel Andry for report and Sławomir Nizio for this job.
  
  (Portage version: 2.1.10.11/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  net-firewall/ufw/files/syslog-ng/syslog-ng.example

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ufw/files/syslog-ng/syslog-ng.example?rev=1.1&view=markup
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

Index: syslog-ng.example
===================================================================
# This is an example rule for app-admin/syslog-ng to separate ufw logs
# from /var/log/messages.
# Place those lines before "log" entries in /etc/syslog-ng/syslog-ng.conf.

filter f_ufw { match("\\[UFW " value("MESSAGE")); };
destination ufwfile { file("/var/log/ufw.log"); };
log {
	source(src);
	filter(f_ufw);
	destination(ufwfile);
	destination(console_all);
	flags(final);
};



1.1                  net-firewall/ufw/files/syslog-ng/ufw.logrotate

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ufw/files/syslog-ng/ufw.logrotate?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ufw/files/syslog-ng/ufw.logrotate?rev=1.1&content-type=text/plain

Index: ufw.logrotate
===================================================================
# logrotate snippet for ufw
# requires app-admin/syslog-ng
# copy the file into /etc/logrotate.d
/var/log/ufw.log {
    missingok
    rotate 5
    notifempty
    sharedscripts
    postrotate
        /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
    endscript
}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-03 12:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-03 12:17 [gentoo-commits] gentoo-x86 commit in net-firewall/ufw/files/syslog-ng: syslog-ng.example ufw.logrotate Peter Volkov (pva)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox