pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Wells Oliver <wellsoliver@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Definitive logrotate solution?
Date: Wed, 11 Apr 2012 19:51:24 -0400
Message-ID: <15455.1334188284@sss.pgh.pa.us> (raw)
In-Reply-To: <CAOC+FBVC7xxsTWPEdy0zpDMzhvi+i-mzdw616MG+6uWhxv_YGQ@mail.gmail.com>
References: <CAOC+FBXFaNC7Ez4rSBFYqPKHdGx7=7xnD4G4b+Qua8Qx5Lmx7A@mail.gmail.com>
	<12916.1334185397@sss.pgh.pa.us>
	<CAOC+FBVC7xxsTWPEdy0zpDMzhvi+i-mzdw616MG+6uWhxv_YGQ@mail.gmail.com>

Wells Oliver <wellsoliver@gmail.com> writes:
> How do you ensure you're not keeping logs from 35+ days ago, or whatever?
> Just a find -mtime +10 -exec rm {}\; kind of thing?

Well, that depends on what you want to do.  I like to choose the log file
names so that they'll automatically be reused once a week or month.

			regards, tom lane



view thread (4+ messages)

Message-ID: <15455.1334188284@sss.pgh.pa.us>
Permalink:  ../15455.1334188284@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15455.1334188284@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, wellsoliver@gmail.com
  Subject: Re: Definitive logrotate solution?
  In-Reply-To: <15455.1334188284@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox