[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: disable, rotate=datestamp feature
From: |
Rune Mossige |
Subject: |
Re: disable, rotate=datestamp feature |
Date: |
Tue, 31 Oct 2000 13:51:11 +0100 (CET) |
On Tue, 31 Oct 2000 Mark.Burgess@iu.hio.no wrote:
> On 31 Oct, Rune Mossige wrote:
> >
> > I would like to start using the disable directive to keep an eye on some
> > logfiles, but I would like the rotated logfiles to have a datestamp
> > extention, e.g.
> >
> > logfile > logfile.YYYY-MM-DD-HH-MM
> >
> > Is this possible to do with the current cfengine version, or is this a
> > feature that needs to be added?
> >
> > -------------------------------------------------------------------
> > (-: Hiroshima 45, Chernobyl 86, Windows 95 :-)
> > Our ultimate goal is to make overloaded machines appear to be idle.
> > High performance, High reliability, Low cost -------- Pick any two.
> > -------------------------------------------------------------------
> > Rune Mossige, Systems Support, Western Geophysical, Stavanger, Norway
> > Tel: (+47)51598922 Fax:(+47)51598999 Mobile:(+47)90871024
>
>
> What is wrong with the timestamp on the file? ls -l ?
Nothing wrong with ls -l, I just want logfiles to have the
YYYY-MM-DD-HH-MM extention, instead of .[0-9], so that they are not
overwritten (or rolled over) too quickly if I suddently get lots of
entries.
When I think about it, I might get at the same result by setting the
directive as:
disable:
logfile size=5M rotate=100
and then later on, in tidy, delete any file older than, say, 3 months.
>
> Mark
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
> Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
-------------------------------------------------------------------
(-: Hiroshima 45, Chernobyl 86, Windows 95 :-)
Our ultimate goal is to make overloaded machines appear to be idle.
High performance, High reliability, Low cost -------- Pick any two.
-------------------------------------------------------------------
Rune Mossige, Systems Support, Western Geophysical, Stavanger, Norway
Tel: (+47)51598922 Fax:(+47)51598999 Mobile:(+47)90871024