Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1idLmO-0002xT-4r for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2019 22:08:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1idLmK-0004sC-GB for pgsql-general@arkaria.postgresql.org; Fri, 06 Dec 2019 22:08:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1idLmJ-0004s4-RC for pgsql-general@lists.postgresql.org; Fri, 06 Dec 2019 22:08:47 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1idLmF-0002SC-TH for pgsql-general@lists.postgresql.org; Fri, 06 Dec 2019 22:08:46 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 10565181C; Fri, 6 Dec 2019 23:08:37 +0100 (CET) Date: Fri, 6 Dec 2019 23:08:37 +0100 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Logging [RESOLVED] Message-ID: <20191206220837.GA22263@hjp.at> References: <852cbe6a-fb10-4132-b909-0771b3ed9b1b@Spark> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 syste= m. > > You=E2=80=99ll likely find that other logs in your system follow a simi= lar > > pattern, not just Postgresql. >=20 > I just checked /etc/logrotate.d/postgres and it was set at daily with rot= ate > 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 --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --lrZ03NoBR/3+SXJZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl3q0V8ACgkQ8g5IURL+ KF2vsQ/7BrhZQIA3G9cY1uOaAHCGjpDaovSNld4Gd79FvPMvpS71mXIMouMquGv7 TbETSrh5hCvefT2y/LgiTPEPN6PbQTOMP3iLm2xD4rAyzlhkDSQ/jMLcyGDcw4uw 4YQ963pn4AVcjp7p2cEtoGJpVh5pfVdSP6H6wulClrNPnDGLryy1M1PJFY6IjYVC s2GvxAgV7m3zeupg7gcvOmGdSRSK8JT93D10pd4Z+bcZGxZtL+3SOcnbkOQu25f1 Rc7GdxQwFdh9IwhOPJWZ1W8HyaLmJb6SQC4laGytW+XQ7mCimOIvBNMCr/iqtWMp JVYH+zp0ICFRA+HrlRbQeuVWGF1mbHcOzvLI4FKPIKFIX91wfdUwgUGpJkOG5J87 cO0GUhRTOBADK3BCjWcB4HRIskV0rLVKJD1hLFKm8u7BzwGRQ0PwGoWHcHlzvg7k Q7BOam+81nicRbFhzlVJ60H3z8Vv0rQPQ+TrskUjf4lhRTLN0KPGmkYPy6fUQeb8 eGPO8vV6hEPQP7HuY1LT7p4IuWwZg57fI9fbBcWSVwXCxNh1z3R+oRMM3lZk1q8o iPKXXLYKSjhY9PPmFhzmLQcq6rwaoL9+rxwYwJkJzhLlol1kTncHrrk79XsTHowV T7Siet7Ir+xPDACal8XhFokZNjXtwlap9A/E3nA/g/Cq3MIFbo4= =EW4Z -----END PGP SIGNATURE----- --lrZ03NoBR/3+SXJZ--