comparison wflogs-daemon.conf @ 4:37eace15ef87

allow hourly/daily/weekly triggers for output generation, append to temp wflogs input files so daemon restart won't drop as much data
author Carl Byington <carl@five-ten-sg.com>
date Fri, 17 May 2013 12:03:21 -0700
parents 400b1de6e1c6
children f78173fad15f
comparison
equal deleted inserted replaced
3:2ea606326f5b 4:37eace15ef87
1 context fast-response { 1 context fast-response {
2 period 120; 2 period 120;
3 versions 20; 3 versions 20;
4 output "/var/www/html/firewall.0fast.%d.html"; 4 output "/var/www/html/firewall.0fast.%d.html";
5 tempin "/tmp/wflogs.fast.input"; 5 tempin "/var/lib/wflogs-daemon/wflogs.fast.input";
6 wflogs "nice wflogs -i all -o html /tmp/wflogs.fast.input >%s &"; 6 wflogs "nice wflogs -i all -o html /var/lib/wflogs-daemon/wflogs.fast.input >%s &";
7 file "/var/log/messages";
8 pattern "vyatta kernel";
9 };
10
11 context hourly {
12 period 3600;
13 versions 4;
14 trigger hourly;
15 output "/var/www/html/firewall.1hourly.%d.html";
16 tempin "/var/lib/wflogs-daemon/wflogs.hourly.input";
17 wflogs "nice wflogs -i all -o html /var/lib/wflogs-daemon/wflogs.hourly.input >%s &";
7 file "/var/log/messages"; 18 file "/var/log/messages";
8 pattern "vyatta kernel"; 19 pattern "vyatta kernel";
9 }; 20 };
10 21
11 context daily { 22 context daily {
12 period 86400; 23 period 86400;
13 versions 7; 24 versions 7;
14 output "/var/www/html/firewall.1daily.%d.html"; 25 trigger daily;
15 tempin "/tmp/wflogs.daily.input"; 26 output "/var/www/html/firewall.2daily.%d.html";
16 wflogs "nice wflogs -i all -o html /tmp/wflogs.daily.input >%s &"; 27 tempin "/var/lib/wflogs-daemon/wflogs.daily.input";
28 wflogs "nice wflogs -i all -o html /var/lib/wflogs-daemon/wflogs.daily.input >%s &";
17 file "/var/log/messages"; 29 file "/var/log/messages";
18 pattern "vyatta kernel"; 30 pattern "vyatta kernel";
19 }; 31 };
20 32
21 context weekly { 33 context weekly {
22 period 604800; 34 period 604800;
23 versions 4; 35 versions 4;
24 output "/var/www/html/firewall.2weekly.%d.html"; 36 trigger weekly;
25 tempin "/tmp/wflogs.weekly.input"; 37 output "/var/www/html/firewall.3weekly.%d.html";
26 wflogs "nice wflogs -i all -o html /tmp/wflogs.weekly.input >%s &"; 38 tempin "/var/lib/wflogs-daemon/wflogs.weekly.input";
39 wflogs "nice wflogs -i all -o html /var/lib/wflogs-daemon/wflogs.weekly.input >%s &";
27 file "/var/log/messages"; 40 file "/var/log/messages";
28 pattern "vyatta kernel"; 41 pattern "vyatta kernel";
29 }; 42 };
30 43