Mercurial > wflogs-daemon
comparison wflogs-daemon.conf @ 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 |
comparison
equal
deleted
inserted
replaced
1:964c1127ae65 | 2:400b1de6e1c6 |
---|---|
1 period 120; | 1 context fast-response { |
2 versions 20; | 2 period 120; |
3 output "/var/www/html/firewall.%d.html"; | 3 versions 20; |
4 tempin "/tmp/wflogs.input"; | 4 output "/var/www/html/firewall.0fast.%d.html"; |
5 wflogs "wflogs -i all -o html /tmp/wflogs.input >%s"; | 5 tempin "/tmp/wflogs.fast.input"; |
6 file "/var/log/messages"; | 6 wflogs "nice wflogs -i all -o html /tmp/wflogs.fast.input >%s &"; |
7 pattern "vyatta kernel"; | 7 file "/var/log/messages"; |
8 pattern "vyatta kernel"; | |
9 }; | |
10 | |
11 context daily { | |
12 period 86400; | |
13 versions 7; | |
14 output "/var/www/html/firewall.1daily.%d.html"; | |
15 tempin "/tmp/wflogs.daily.input"; | |
16 wflogs "nice wflogs -i all -o html /tmp/wflogs.daily.input >%s &"; | |
17 file "/var/log/messages"; | |
18 pattern "vyatta kernel"; | |
19 }; | |
20 | |
21 context weekly { | |
22 period 604800; | |
23 versions 4; | |
24 output "/var/www/html/firewall.2weekly.%d.html"; | |
25 tempin "/tmp/wflogs.weekly.input"; | |
26 wflogs "nice wflogs -i all -o html /tmp/wflogs.weekly.input >%s &"; | |
27 file "/var/log/messages"; | |
28 pattern "vyatta kernel"; | |
29 }; | |
30 |