Mercurial > wflogs-daemon
comparison wflogs-daemon.conf @ 10:f78173fad15f
fix input files overwritten before background task can process them
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 17 May 2013 13:24:37 -0700 |
parents | 37eace15ef87 |
children | 1b7813f588ba |
comparison
equal
deleted
inserted
replaced
9:13204eef1a0a | 10:f78173fad15f |
---|---|
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 "/var/lib/wflogs-daemon/wflogs.fast.input"; | 5 tempin "/var/lib/wflogs-daemon/wflogs.fast.input"; |
6 wflogs "nice wflogs -i all -o html /var/lib/wflogs-daemon/wflogs.fast.input >%s &"; | 6 wflogs "cd /var/lib/wflogs-daemon; mv -f wflogs.fast.input wflogs.fast.input.tmp; nice wflogs -i all -o html wflogs.fast.input.tmp >%s &"; |
7 file "/var/log/messages"; | 7 file "/var/log/messages"; |
8 pattern "vyatta kernel"; | 8 pattern "rt01 kernel"; |
9 }; | 9 }; |
10 | 10 |
11 context hourly { | 11 context hourly { |
12 period 3600; | 12 period 3600; |
13 versions 4; | 13 versions 4; |
14 trigger hourly; | 14 trigger hourly; |
15 output "/var/www/html/firewall.1hourly.%d.html"; | 15 output "/var/www/html/firewall.1hourly.%d.html"; |
16 tempin "/var/lib/wflogs-daemon/wflogs.hourly.input"; | 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 &"; | 17 wflogs "cd /var/lib/wflogs-daemon; mv -f wflogs.hourly.input wflogs.hourly.input.tmp; nice wflogs -i all -o html wflogs.hourly.input.tmp >%s &"; |
18 file "/var/log/messages"; | 18 file "/var/log/messages"; |
19 pattern "vyatta kernel"; | 19 pattern "rt01 kernel"; |
20 }; | 20 }; |
21 | 21 |
22 context daily { | 22 context daily { |
23 period 86400; | 23 period 86400; |
24 versions 7; | 24 versions 7; |
25 trigger daily; | 25 trigger daily; |
26 output "/var/www/html/firewall.2daily.%d.html"; | 26 output "/var/www/html/firewall.2daily.%d.html"; |
27 tempin "/var/lib/wflogs-daemon/wflogs.daily.input"; | 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 &"; | 28 wflogs "cd /var/lib/wflogs-daemon; mv -f wflogs.daily.input wflogs.daily.input.tmp; nice wflogs -i all -o html wflogs.daily.input.tmp >%s &"; |
29 file "/var/log/messages"; | 29 file "/var/log/messages"; |
30 pattern "vyatta kernel"; | 30 pattern "rt01 kernel"; |
31 }; | 31 }; |
32 | 32 |
33 context weekly { | 33 context weekly { |
34 period 604800; | 34 period 604800; |
35 versions 4; | 35 versions 4; |
36 trigger weekly; | 36 trigger weekly; |
37 output "/var/www/html/firewall.3weekly.%d.html"; | 37 output "/var/www/html/firewall.3weekly.%d.html"; |
38 tempin "/var/lib/wflogs-daemon/wflogs.weekly.input"; | 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 &"; | 39 wflogs "cd /var/lib/wflogs-daemon; mv -f wflogs.weeily.input wflogs.weekly.input.tmp; nice wflogs -i all -o html wflogs.weekly.input.tmp >%s &"; |
40 file "/var/log/messages"; | 40 file "/var/log/messages"; |
41 pattern "vyatta kernel"; | 41 pattern "rt01 kernel"; |
42 }; | 42 }; |
43 | 43 |