Bug 677279 - [RFE] rotatelogs needs to create files even if they are empty
Summary: [RFE] rotatelogs needs to create files even if they are empty
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: httpd
Version: 5.6
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Jan Kaluža
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 554476 726419 757739 769266
TreeView+ depends on / blocked
 
Reported: 2011-02-14 09:10 UTC by J.H.M. Dassen (Ray)
Modified: 2018-11-26 19:24 UTC (History)
8 users (show)

Fixed In Version: httpd-2.2.3-60.el5
Doc Type: Enhancement
Doc Text:
Clone Of:
: 757739 (view as bug list)
Environment:
Last Closed: 2012-02-21 06:33:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Legacy) 45308 0 None None None Never
Red Hat Product Errata RHBA-2012:0261 0 normal SHIPPED_LIVE httpd bug fix and enhancement update 2012-02-20 15:06:40 UTC

Description J.H.M. Dassen (Ray) 2011-02-14 09:10:19 UTC
2. What is the nature and description of the request?

The customer is looking to use httpd's rotatelogs more heavily in their
environment, but it lacks a certain piece of functionality which prevents it
from being the ideal tool for the job.  The customer rotates their httpd logs
out at a specified interval of time, and has a requirement that there be a log
file in place for every interval, even if the file is empty.  rotatelogs will
only create a file for the specified interval if data has been written to it.  

3. Why does the customer need this? (List the business requirements here)

Log data is analyzed by customer to improve their services, and the lack of a
particular time period adds additional complexity to these activities. 

4. How would the customer like to achieve this? (List the functional
requirements here)

A flag for the rotatelogs binary that would cause it to create a file even if
its 0 bytes

5. For each functional requirement listed in question 4, specify how Red Hat
and the customer can test to confirm the requirement is successfully
implemented.

In their httpd configuration, configure rotatelogs using the new flag.  During
a specified time period ensure no requests are logged, and once the rotation
interval arrives, make sure a file was created by rotatelogs. 

6. Is there already an existing RFE upstream or in Red Hat bugzilla?

Not to my knowledge

7. How quickly does this need resolved? (desired target release)

RHEL 5.7

8. Does this request meet the RHEL Inclusion criteria (please review)

Yes

9. List the affected packages

httpd

Comment 2 Joe Orton 2011-02-14 11:38:09 UTC
Historically we have tried to keep rotatelogs as a relatively simple tool, upstream - if not perhaps strictly "as simple as possible".  It's generally been preferred that more complex features are supported by third-party piped logging tools; cronolog was once popular though has not been maintained in a while.

It should be possible to support the desired mode of operation with an unmodified rotatelogs by doing two things:

a) running rotatelogs with the -f flag

b) forcing a termination of any running rotatelogs process at the beginning of each new rotation period.

We could probably support without adding too much complexity to the tool; I will  propose something upstream and see how it goes down.

Comment 18 errata-xmlrpc 2012-02-21 06:33:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0261.html


Note You need to log in before you can comment on or make changes to this bug.