Bug 81819 - Create logfilename with date
Create logfilename with date
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: logrotate (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Elliot Lee
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2003-01-14 02:39 EST by Ingo Schramme
Modified: 2007-11-30 17:06 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-01-14 14:41:07 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ingo Schramme 2003-01-14 02:39:59 EST
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 07:39:17 EST
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 14:41:07 EST
Taking patches, but not planning to do much more than that at this point.
Comment 3 Need Real Name 2005-01-12 03:09:20 EST
Bug 108775 has a patch for something similar.

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