]> git.pld-linux.org Git - packages/cacti-template-mailgraph.git/commitdiff
- syslog-ng sample master
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 12 Jul 2010 14:40:47 +0000 (14:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    README -> 1.2

README

diff --git a/README b/README
index d92550e60a7a7b9f14f3fc9084823474b4c5fbeb..b3ab1066dfb71ed75bc8ace4667ac85314452dcf 100644 (file)
--- a/README
+++ b/README
@@ -29,3 +29,19 @@ for your needs.
 You could even merge results from mailhost1 and mailhost2 if you write their
 logs to single file with syslog and do not specify --host argument to
 mailgraph.pl daemon.
+
+for example via syslog-ng:
+1. server side (accepting logs):
+  source s_net { udp(); };
+  filter f_mail { facility(mail); };
+  destination mail_net {
+    file(
+       "/var/log/mail/$HOST" owner(root) group(http) perm(0640)
+       create_dirs(yes) dir_perm(0710) dir_owner(root) dir_group(http)
+    );
+  };
+  log { source(s_net); filter(f_mail); destination(mail_net); };
+
+2. client side (sending logs):
+destination maillog { udp("cactihost" port(514)); };
+log { source(s_sys); filter(f_mail); destination(maillog); };
This page took 0.126226 seconds and 4 git commands to generate.