]> git.openstreetmap.org Git - chef.git/blob - cookbooks/web/templates/default/logrotate.apache.erb
Disable LLMNR and Multicast DNS in resolved
[chef.git] / cookbooks / web / templates / default / logrotate.apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 /var/log/apache2/*.log {
4   daily
5   missingok
6   rotate 28
7   compress
8   delaycompress
9   compresscmd /usr/bin/zstd
10   compressext .zst
11   compressoptions -T0
12   uncompresscmd /usr/bin/unzstd
13   notifempty
14   create 640 root adm
15   sharedscripts
16   postrotate
17     /bin/systemctl reload apache2
18     /usr/bin/rsync --preallocate /var/log/apache2/access.log.2.zst backup.openstreetmap.org::logs/www.openstreetmap.org/<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.zst
19   endscript
20 }