Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mreaD-0002Xa-Sz for pgsql-general@arkaria.postgresql.org; Mon, 29 Nov 2021 11:12:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mreaC-00054w-KG for pgsql-general@arkaria.postgresql.org; Mon, 29 Nov 2021 11:12:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mreaC-00054n-9h for pgsql-general@lists.postgresql.org; Mon, 29 Nov 2021 11:12:28 +0000 Received: from summer.hostnet.nl ([91.184.19.37]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mrea9-0006X5-Cx for pgsql-general@lists.postgresql.org; Mon, 29 Nov 2021 11:12:27 +0000 Received: from vps-316020-6457.hosted.at.hostnet.nl ([185.85.18.6] helo=s01.frontflow.nl) by julia.hostnet.nl with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1mrea6-00013B-2J for pgsql-general@lists.postgresql.org; Mon, 29 Nov 2021 12:12:23 +0100 Received: from TPDB (86-81-108-63.fixed.kpn.net [86.81.108.63]) by s01.frontflow.nl (Postfix) with ESMTPSA id 5D072221384 for ; Mon, 29 Nov 2021 12:12:20 +0100 (CET) From: "Paul van Rixel" To: Subject: split postgresql logfile Date: Mon, 29 Nov 2021 12:12:11 +0100 Message-ID: <022401d7e511$f9135f00$eb3a1d00$@van.rixel@trendpage.nl> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0225_01D7E51A.5AD7EE10" X-Mailer: Microsoft Office Outlook 12.0 Content-Language: nl Thread-Index: AdflEfTmNfnr95wjQgSSbj+fJuxAEQ== X-PPP-Message-ID: <20211129111220.32420.67379@vps-316020-6457.hosted.at.hostnet.nl> X-PPP-Vhost: trendpage.nl X-Originating-IP: 185.85.18.6 X-SpamExperts-Domain: mailfilter.webreact.nl X-SpamExperts-Username: 185.85.18.6 Authentication-Results: hostnet.nl; auth=pass smtp.auth=185.85.18.6@mailfilter.webreact.nl X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.20) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT9S/ZYAGN8Bo+SlEuz6HOioPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5xbE1XKRhdz/4Y+lVZRHzcwyqpqT8yviQ8jO25t09cceoS+ gjO/I8RAifZcgHhE9S8Qc++8HZLiV2oGXfAY4EL+4pWx7WxWFZpsjT/483ewgsz4HwYGTNBY7kFu mOeXVIkGZp1v1zfraIXS7g++HO0SF2dcXx2RO3vsB1SnNgVVSIPAgTtUp75uqlx0KezvZHX7IZK8 t/Bo6vriE257N8QGOrf7l2bA9JFd3k82adzckCw50BoEYB44qFPH6be8XguwCtC/7kzbd1gsONRs xm9WavqbvYaNvQlcqdw7fQPXOYS4GIBbAUoC3u1Jhx1Y2BsYYxJB6tsmvDeHHoqtt1ptlOVIhCoi RrUu2MnNpw89z3PIjgy6me/mVvbaZ6+dKqrzxdxlFfinQQaq5wl/I9BovCrJPmnnTHzVkpybMK7Z TcnqueJ+/1bSmjLvt5b/HSqvJHAdcYUZw2X3KgFfwZPNprnOfejoy0ryl/SE9sCR4JkwTwd6I5MF c+Z5FxsZqYBzHDeqqFz43py4SDhdaHkWIyqjk15SeKdqk0ZiI2dzjdqmWr3Plb8A2FlENKaWtb4m 1Vzkj9R718bJhJuYr94cfUuyNivNBaFCPIxJ0vGaiCvn3RP1LFfDXDzyb1H8xX411lqdy1V/0aEk MCdb3YpWUo4/+EUytKrR9Md9I2Rs1z/U7D0v0nTxyOhhWrginZPwRXWUdfWPVkqBzamENtW/3wh7 5XQd9ewymgbOEAD+tVrr3xc8sIsFOUmlLjiwkWWwKzlzFKNIkyHL2n6i6zH/YMIwQPIvypM328Xi gpfBgAbOzBNcSrUOQaefR3F+tMw3ClTXlSfQV8rvfnHgqk4U3O67Smgc8egwtb09CG+6fUnIqv6a nXFjYar+fT2UxK/YDQMYgG38DwesmX1M/w4xoQkpzMs8p6wPSkllAgiuyEEyEVCrqXmj07ylEIcn mwDLg2ry9+YiSM5O3b3S7IdqxypUhWZ7DV/QthUn4wTjFg== X-Report-Abuse-To: spam@avril.hostnet.nl List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. ------=_NextPart_000_0225_01D7E51A.5AD7EE10 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_0225_01D7E51A.5AD7EE10 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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

 

------=_NextPart_000_0225_01D7E51A.5AD7EE10--