pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedRe: Logging [RESOLVED]
2+ messages / 2 participants
[nested] [flat]
* Re: Logging [RESOLVED]
@ 2019-12-05 00:03 Rich Shepard <rshepard@appl-ecosys.com>
0 siblings, 1 reply; 2+ messages in thread
From: Rich Shepard @ 2019-12-05 00:03 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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.
Stephen,
Other logs, controlled by logrotate, rotate daily for a maximum of 4
backups.
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.
Thanks,
Rich
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Logging [RESOLVED]
@ 2019-12-06 22:08 Peter J. Holzer <hjp-pgsql@hjp.at>
parent: Rich Shepard <rshepard@appl-ecosys.com>
0 siblings, 0 replies; 2+ messages in thread
From: Peter J. Holzer @ 2019-12-06 22:08 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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!"
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-12-06 22:08 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-12-05 00:03 Re: Logging [RESOLVED] Rich Shepard <rshepard@appl-ecosys.com>
2019-12-06 22:08 ` Peter J. Holzer <hjp-pgsql@hjp.at>
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