Re: get the timestamp as a log filename
From: Robin Laing (Robin.Laing_at_drdc-rddc.gc.ca)
Date: 01/22/04
- Previous message: Yohann Desquerre: "Compilation general question -- FC1 in production"
- In reply to: Genti A. Hila: "Re: get the timestamp as a log filename"
- Next in thread: Tom Mitchell: "Re: get the timestamp as a log filename"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: fedora-list@redhat.com Date: Thu, 22 Jan 2004 13:17:09 -0700
Genti A. Hila wrote:
> I think I didn't explain it quite well:
> I have some log files that are saved from logrotate hourly.
> But what i get is something like message.1 messages.2 etc
> Instead of this i would like to have something like
> mesagges_04\01\21_14\00
> messages_04\01\21_13\00
> So to follow the format messages_yy\mm\dd\_hour\minute
> Something like that, the idea is to have the time as the name of the file
>
>
> Genti
>
>
You may have to write a script to run as part of the logrotate
configuration. There is an ability to have a script execute after the
rotation.
There are different ways of calling the script.
I am not sure if the "extension" will work for what you want.
Maybe this would be better as a cron feature than logrotate as it
sounds that you want to keep a running record of log files, not just
rotate them.
-- Robin Laing -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
- Previous message: Yohann Desquerre: "Compilation general question -- FC1 in production"
- In reply to: Genti A. Hila: "Re: get the timestamp as a log filename"
- Next in thread: Tom Mitchell: "Re: get the timestamp as a log filename"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|