Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000438 [Resin] minor always 10-31-05 00:00 01-16-06 11:29
Reporter ferg View Status public  
Assigned To ferg
Priority urgent Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.0.18 Product Version 3.0.14
  Product Build 3.0.14
Summary 0000438: log rollover and gzip
Description RSN-487
(rep by Nathan Bardsley)


In resin.conf I configure the stdout logs like this:

      <access-log path="logs/access.log"
            format='%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"'
            rollover-period="1D" rollover-size="-1"
            archive-format="_resin_sw5_access_%Y-%m-%d.log.gz"/>
        <stdout-log path="log/stdout.log" timestamp="[%H:%M:%S.%s] " rollover-period="1D"
            rollover-size="-1" archive-format="_resin_sw5_stdout_%Y-%m-%d.log.gz"/>
        <stderr-log path="log/stderr.log" timestamp="[%H:%M:%S.%s] " rollover-period="1D"
            rollover-size="-1" archive-format="_resin_sw5_stderr_%Y-%m-%d.log.gz"/>


I end up with logs like this:

_resin_sw5_access_2005-10-27.log.gz
_resin_sw5_access_2005-10-28.log.gz
_resin_sw5_stderr_2005-10-27.log.gz
_resin_sw5_stderr_2005-10-28.log.gz
_resin_sw5_stdout_2005-10-27.log.gz
_resin_sw5_stdout_2005-10-27.log.gz.16
_resin_sw5_stdout_2005-10-27.log.gz.17
_resin_sw5_stdout_2005-10-27.log.gz.19
_resin_sw5_stdout_2005-10-27.log.gz.20
_resin_sw5_stdout_2005-10-27.log.gz.21
_resin_sw5_stdout_2005-10-27.log.gz.23
_resin_sw5_stdout_2005-10-28.log.gz
_resin_sw5_stdout_2005-10-28.log.gz.03
_resin_sw5_stdout_2005-10-28.log.gz.05
_resin_sw5_stdout_2005-10-28.log.gz.06
_resin_sw5_stdout_2005-10-28.log.gz.08
_resin_sw5_stdout_2005-10-28.log.gz.09
_resin_sw5_stdout_2005-10-28.log.gz.12
_resin_sw5_stdout_2005-10-28.log.gz.14
_resin_sw5_stdout_2005-10-28.log.gz.16
_resin_sw5_stdout_2005-10-28.log.gz.18
_resin_sw5_stdout_2005-10-28.log.gz.20
_resin_sw5_stdout_2005-10-28.log.gz.21
_resin_sw5_stdout_2005-10-28.log.gz.23

The files that end in digits (which seem to correspond to hour) are not encrypted.

How can I get log rotation that works for stdout the same way that it workfs for stderr and access?

Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0000472)
user446
10-31-05 00:00

Most of these files are empty, so it's not a problem of an excessive number of log entries.

Possible enhancement? Some extra capabilities for handling 0 byte files at rotation time in different ways. Maybe not gzipping them (thus saving the 30 bytes for an empty .gzip file) or deleteing the file completely.
 
(0000711)
ferg
01-16-06 11:29

php/021u
 

- Issue History
Date Modified Username Field Change
10-31-05 00:00 ferg New Issue
01-16-06 11:29 ferg Note Added: 0000711
01-16-06 11:29 ferg Assigned To  => ferg
01-16-06 11:29 ferg Status acknowledged => closed
01-16-06 11:29 ferg Resolution open => fixed
01-16-06 11:29 ferg Fixed in Version  => 3.0.18


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker