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 1icecG-0004xT-6D for pgsql-general@arkaria.postgresql.org; Thu, 05 Dec 2019 00:03:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1icecD-0003VD-48 for pgsql-general@arkaria.postgresql.org; Thu, 05 Dec 2019 00:03:29 +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 1icecC-0003Uz-Mw for pgsql-general@lists.postgresql.org; Thu, 05 Dec 2019 00:03:28 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1icecA-0005gZ-8E for pgsql-general@lists.postgresql.org; Thu, 05 Dec 2019 00:03:27 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 9E4F0262A79 for ; Wed, 4 Dec 2019 16:03:24 -0800 (PST) Date: Wed, 4 Dec 2019 16:03:24 -0800 (PST) From: Rich Shepard To: pgsql-general@lists.postgresql.org Subject: Re: Logging [RESOLVED] In-Reply-To: <852cbe6a-fb10-4132-b909-0771b3ed9b1b@Spark> Message-ID: References: <852cbe6a-fb10-4132-b909-0771b3ed9b1b@Spark> User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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