]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - config/etc/logrotate.conf
Change default NTP servers.
[people/pmueller/ipfire-2.x.git] / config / etc / logrotate.conf
1 # rotate log files weekly
2 weekly
3
4 # keep 52 weeks worth of backlogs
5 rotate 52
6
7 # create new (empty) log files after rotating old ones
8 create
9
10 # uncomment this if you want your log files compressed
11 compress
12
13 # wtmp
14 /var/log/wtmp {
15 weekly
16 create 0664 root utmp
17 rotate 1
18 }
19
20 /var/log/httpd/access_log /var/log/httpd/error_log /var/log/httpd/ssl_request_log /var/log/httpd/ssl_engine_log {
21 missingok
22 sharedscripts
23 postrotate
24 /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
25 endscript
26 }
27
28 /var/log/snort/alert {
29 weekly
30 copytruncate
31 compress
32 ifempty
33 missingok
34 postrotate
35 /bin/find /var/log/snort -path '/var/log/snort/[0-9]*' -prune -exec /bin/rm -rf {} \;
36 /bin/find /var/log/snort -name 'snort.log.*' -mtime +28 -exec /bin/rm -rf {} \;
37 /etc/init.d/snort restart
38 endscript
39 }
40
41 /var/log/squid/access.log /var/log/squid/user_agent.log /var/log/squid/referer.log {
42 weekly
43 copytruncate
44 ifempty
45 missingok
46 }
47
48 /var/log/squid/cache.log {
49 weekly
50 rotate 3
51 copytruncate
52 compress
53 missingok
54 }
55
56 /var/log/squid/store.log {
57 weekly
58 rotate 3
59 copytruncate
60 compress
61 missingok
62 postrotate
63 /bin/chmod -R ugo+rX /var/log/squid
64 /usr/sbin/squid -k rotate
65 endscript
66 }
67
68 /var/log/messages /var/log/bootlog /var/log/dhcpcd.log {
69 create 664 root syslogd
70 sharedscripts
71 ifempty
72 postrotate
73 /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
74 endscript
75 }
76
77 /var/log/squidGuard/*.log {
78 weekly
79 rotate 4
80 copytruncate
81 compress
82 notifempty
83 missingok
84 }
85
86 /var/log/updatexlrator/*.log {
87 weekly
88 rotate 4
89 copytruncate
90 compress
91 notifempty
92 missingok
93 }