Skip site navigation (1) Skip section navigation (2)

Re: Definitive logrotate solution?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Wells Oliver <wellsoliver(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Definitive logrotate solution?
Date: 2012-04-11 23:51:24
Message-ID: 15455.1334188284@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
Wells Oliver <wellsoliver(at)gmail(dot)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

In response to

pgsql-admin by date

Next:From: Wells OliverDate: 2012-04-12 23:38:13
Subject: Changing max_connections after WAL slave configured not allowed?
Previous:From: Wells OliverDate: 2012-04-11 23:40:28
Subject: Re: Definitive logrotate solution?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group