Mantis - Resin
Viewing Issue Advanced Details
1947 minor always 08-16-07 08:53 09-06-07 14:51
brianb08  
ferg  
normal  
closed 3.1.2  
fixed  
none    
none 3.1.3  
0001947: access log with rollover of 1D produces multiple files for each day (with hours/mins timestamp)
With the access log configured to rollover daily, resin often creates additional files, within one minute of the rollover time. The problem occurs whether or not auto-flush is set to true. Here is the config from resin.conf:

      <access-log path="${server.root}/logs/access.log"
            format='%{BIOrigClientAddr}i %l %u %t %{Host}i "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %D'
            auto-flush="true"
            rollover-period="1D"/>

And a sampling of files from the logs directory:

-rw-r--r-- 1 resin 30061 45477 Aug 16 11:45 access.log
-rw-r--r-- 1 resin 30061 0 Aug 16 00:00 access.log.20070815.2359
-rw-r--r-- 1 resin 30061 74507 Aug 16 00:00 access.log.20070815
-rw-r--r-- 1 resin 30061 0 Aug 15 00:00 access.log.20070814.2359
-rw-r--r-- 1 resin 30061 0 Aug 15 00:00 access.log.20070814.2359.1
-rw-r--r-- 1 resin 30061 361351 Aug 15 00:00 access.log.20070814
-rw-r--r-- 1 resin 30061 0 Aug 14 00:00 access.log.20070813.2359
-rw-r--r-- 1 resin 30061 0 Aug 14 00:00 access.log.20070813




There are no notes attached to this issue.