]> git.openstreetmap.org Git - chef.git/commitdiff
nominatim: enable file-based query log and log rotation
authorSarah Hoffmann <lonvia@denofr.de>
Mon, 15 Dec 2014 20:59:53 +0000 (21:59 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 15 Dec 2014 20:59:53 +0000 (21:59 +0100)
cookbooks/nominatim/templates/default/logrotate.nominatim.erb
cookbooks/nominatim/templates/default/nominatim.erb

index a8952fe8fb616633374bc7844f3bd5456117d34f..5e2caae286f9b08118dfc08611dbf28d552d86af 100644 (file)
@@ -9,6 +9,16 @@
   notifempty
   create 640 nominatim adm
 }
+
+/var/log/nominatim/query.log {
+  weekly
+  missingok
+  rotate 52
+  compress
+  delaycompress
+  notifempty
+  create 640 www-data adm
+}
 <% if node[:lsb][:release].to_f < 14.04 -%>
 
 /var/log/php5-fpm.log {
index d05c8f558465f2a24617c287a56181c6f71b129d..591f826e549b1c9af0b05f1c5a0aa87e5bea8cfa 100644 (file)
@@ -9,3 +9,5 @@ else
 
 @define('CONST_Postgresql_Version', '<%= @postgres_version %>');
 @define('CONST_Postgis_Version', '<%= node[:nominatim][:database][:postgis] %>');
+
+@define('CONST_Log_File', '/var/log/nominatim/query.log');