Bug 81819

Summary: Create logfilename with date
Product: Red Hat Enterprise Linux 2.1 Reporter: Ingo Schramme <is>
Component: logrotateAssignee: Elliot Lee <sopwith>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: blackm, is
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-14 19:41:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ingo Schramme 2003-01-14 07:39:59 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)

Description of problem:
If you want to add the date to the name of the logifle, something like 

extension `date '+%b%d%Y'` 

doesn't work. Anything in this direction would be great...

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. add "extension `date '+%b%d%Y'`" to conf file
2. the result logfile name ist "logfile-`date '+%b%d%Y'`.1.log


Additional info:

Comment 1 Martin Lohmeier 2003-01-14 12:39:17 UTC
An other way to solve this problem, is to add a new option, like "date" and

/var/log/messages {
     rotate 5
     dateformat "yyyy-mm-dd"
         /sbin/killall -HUP syslogd

Comment 2 Elliot Lee 2003-01-14 19:41:07 UTC
Taking patches, but not planning to do much more than that at this point.

Comment 3 Need Real Name 2005-01-12 08:09:20 UTC
Bug 108775 has a patch for something similar.