Re: Logging [RESOLVED] - Mailing list pgsql-general

From Peter J. Holzer
Subject Re: Logging [RESOLVED]
Date
Msg-id 20191206220837.GA22263@hjp.at
Whole thread Raw
In response to Re: Logging [RESOLVED]  (Rich Shepard <rshepard@appl-ecosys.com>)
List pgsql-general
On 2019-12-04 16:03:24 -0800, Rich Shepard wrote:
> On Wed, 4 Dec 2019, Stephen Eilert wrote:
> > Usually, this is done by logrotate or a similar mechanism in your system.
> > You’ll likely find that other logs in your system follow a similar
> > pattern, not just Postgresql.
>
> I just checked /etc/logrotate.d/postgres and it was set at daily with rotate
> 7. I changed rotate to 4 but the dates are 3-4 days apart, not sequential.

Your log files are extremely small. At only a few hundred bytes every 3
or 4 days it is very likely that nothing is logged on most days. If your
log file is empty, logrotate won't rotate it if the option "notifempty"
is set (which is probably the case).

        hp

--
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachment

pgsql-general by date:

Previous
From: Alan Hodgson
Date:
Subject: Re: migration from 9.4 to 9.6
Next
From: Alexander Farber
Date:
Subject: CREATE INDEX ON words_moves(length(letters), score) WHERE action = 'play'