pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul van Rixel <p.van.rixel@trendpage.nl>
To: pgsql-general@lists.postgresql.org
Subject: split postgresql logfile
Date: Mon, 29 Nov 2021 12:12:11 +0100
Message-ID: <022401d7e511$f9135f00$eb3a1d00$@van.rixel@trendpage.nl> (raw)

Hi all,

 

I wondered if it is worthwile to split the general postgresql.log file into
a logfile for rdbms related log entries and a connection based logfile?
Just like the Oracle rdbms.log and the listener.log for connections.

Now the postgresql.logs are polluted with log connections/disconnection,
Agent monitoring entries and in between some entries which need some
attention but you missed them. I know the option exists to disable
log_(dis)connections but because of auditing this option must be enabled.
We don't use a tool like Grafana yet and with pgBadger we are experimenting
but skipping "unnessary" lines makes the manually reading of the logs much
more clear.

Any hints, tips or best practice scenario is welcome!

 

Thanks and have a nice day,

 

Best regards,

Paul

 

view thread (2+ messages)  latest in thread

Message-ID: <022401d7e511$f9135f00$eb3a1d00$@van.rixel@trendpage.nl>
Permalink:  ../022401d7e511$f9135f00$eb3a1d00$@van.rixel@trendpage.nl/
Also on:    postgresql.org/message-id/022401d7e511$f9135f00$eb3a1d00$@van.rixel@trendpage.nl

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: p.van.rixel@trendpage.nl
  Subject: Re: split postgresql logfile
  In-Reply-To: <022401d7e511$f9135f00$eb3a1d00$@van.rixel@trendpage.nl>
  References: <022401d7e511$f9135f00$eb3a1d00$@van.rixel@trendpage.nl>

* 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