Mercurial > wflogs-daemon
diff xml/wflogs-daemon.in @ 2:400b1de6e1c6
allow multiple config contexts
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 17 May 2013 10:32:12 -0700 |
parents | 0aa1171aebd2 |
children | 37eace15ef87 |
line wrap: on
line diff
--- a/xml/wflogs-daemon.in Wed May 15 13:31:12 2013 -0700 +++ b/xml/wflogs-daemon.in Fri May 17 10:32:12 2013 -0700 @@ -19,7 +19,7 @@ <refentry id="@PACKAGE@.1"> <refentryinfo> - <date>2013-05-15</date> + <date>2013-05-17</date> </refentryinfo> <refmeta> @@ -128,7 +128,7 @@ <refentry id="@PACKAGE@.conf.5"> <refentryinfo> - <date>2013-05-15</date> + <date>2013-05-17</date> </refentryinfo> <refmeta> @@ -157,7 +157,8 @@ </para> <literallayout class="monospaced"><![CDATA[ -CONFIG = {STATEMENT}+ +CONFIG = {CONTEXT ";"}+ +CONTEXT = "context" NAME "{" {STATEMENT}+ "}" STATEMENT := (PERIOD | VERSIONS | OUTPUT | TEMPIN | WFLOGS | FILE | PATTERN) ";" PERIOD := "period" INTEGER-VALUE-SECONDS VERSIONS := "versions" INTEGER-VALUE @@ -171,13 +172,35 @@ <refsect1 id='sample.5'> <title>Sample</title> <literallayout class="monospaced"><![CDATA[ -period 120; -versions 3; -output "/var/www/html/firewall.%d.html"; -tempin "/tmp/wflogs.input"; -wflogs "wflogs -i all -o html /tmp/wflogs.input >%s"; -file "/var/log/messages"; -pattern "vyatta kernel";]]></literallayout> +context fast-response { + period 120; + versions 20; + output "/var/www/html/firewall.0fast.%d.html"; + tempin "/tmp/wflogs.fast.input"; + wflogs "nice wflogs -i all -o html /tmp/wflogs.fast.input >%s &"; + file "/var/log/messages"; + pattern "vyatta kernel"; +}; + +context daily { + period 86400; + versions 7; + output "/var/www/html/firewall.1daily.%d.html"; + tempin "/tmp/wflogs.daily.input"; + wflogs "nice wflogs -i all -o html /tmp/wflogs.daily.input >%s &"; + file "/var/log/messages"; + pattern "vyatta kernel"; +}; + +context weekly { + period 604800; + versions 4; + output "/var/www/html/firewall.2weekly.%d.html"; + tempin "/tmp/wflogs.weekly.input"; + wflogs "nice wflogs -i all -o html /tmp/wflogs.weekly.input >%s &"; + file "/var/log/messages"; + pattern "vyatta kernel"; +};]]></literallayout> </refsect1> <refsect1 id='version.5'>