Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #127

Re: Limiting the the size of log files

From Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: Limiting the the size of log files
Date 2011-03-29 16:10 +0100
Message-ID <mpro.litrh100bfddd033o@wingsandbeaks.org.uk.invalid> (permalink)
References <51bb7caea6bob@sick-of-spam.invalid> <mpro.litgto0037k7o033o@wingsandbeaks.org.uk.invalid> <51bb8c2ee0bob@sick-of-spam.invalid> <mpro.litl1z006h2um033o@wingsandbeaks.org.uk.invalid> <51bb9b357dbob@sick-of-spam.invalid>

Show all headers | View raw


Bob Latham <bob@sick-of-spam.invalid> wrote:

> > the current one won't ever get huge.  And you don't need to make
> > multiple backups of those already archived.
> 
> Archiving is done at best once a month. Don't have the time for more than
> that.

I think you're conflating two issues.  Archiving non-current logs is very
quick; you're only renaming them out of their in-use locations to somewhere
else.  Daily, or - if logs fill & swap to an alternate - whenever that
happens is easy to organise.

I presume what you "don't have time for" is some sort of major backup
process.  That can look at the archived logs as part of its processing. 
 

> > Even in normal use if you're ill or on holiday your machine might not
> > get used for a few weeks.  You don't want the first thing that happens
> > when it's next booted is that all the old logs are deleted.
> 
> Which is exactly why I said I would trim the log based on its size not the
> dates contained within.

Yes, but you said you'd trim to 10K.  Most of the apps I log from here
generate many MB every day.  Trimming to 10K is tantamount to deleting all
the old data.


-- 
Jeremy C B Nicoll - my opinions are my own.

Email sent to my from-address will be deleted. Instead, please reply
to newsreplyaaa@wingsandbeaks.org.uk replacing "aaa" by "284".  

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Limiting the the size of log files Bob Latham <bob@sick-of-spam.invalid> - 2011-03-29 12:59 +0100
  Re: Limiting the the size of log files Ian Hamilton <Ian.Hamilton@AAUG.net> - 2011-03-29 13:26 +0100
    Re: Limiting the the size of log files Dr Peter Young <pnyoung@ormail.co.uk> - 2011-03-29 15:02 +0100
    Re: Limiting the the size of log files Bob Latham <bob@sick-of-spam.invalid> - 2011-03-29 15:37 +0100
    Re: Limiting the the size of log files Steve Fryatt <news@stevefryatt.org.uk> - 2011-03-29 22:24 +0100
      Re: Limiting the the size of log files Ian Hamilton <Ian.Hamilton@AAUG.net> - 2011-03-30 06:34 +0100
  Re: Limiting the the size of log files Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2011-03-29 13:51 +0100
    Re: Limiting the the size of log files Bob Latham <bob@sick-of-spam.invalid> - 2011-03-29 15:43 +0100
      Re: Limiting the the size of log files Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2011-03-29 16:10 +0100
      Re: Limiting the the size of log files "Ste (news)" <steve@revi11.plus.com> - 2011-03-31 13:24 +0100
        Re: Limiting the the size of log files Bob Latham <bob@sick-of-spam.invalid> - 2011-03-31 15:13 +0100
          Re: Limiting the the size of log files Dave Higton <davehigton@dsl.pipex.com> - 2011-03-31 20:14 +0100
            Re: Limiting the the size of log files Matthew Phillips <mnews@sinenomine.freeserve.co.uk> - 2011-03-31 21:27 +0100
            Re: Limiting the the size of log files Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2011-03-31 21:45 +0100
              Re: Limiting the the size of log files Dave Higton <davehigton@dsl.pipex.com> - 2011-04-01 21:41 +0100
                Re: Limiting the the size of log files Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2011-04-02 00:33 +0100

csiph-web