Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aWWVm-0007Jc-Fu for pgsql-admin@arkaria.postgresql.org; Thu, 18 Feb 2016 21:53:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aWWVm-0005X3-2Z for pgsql-admin@arkaria.postgresql.org; Thu, 18 Feb 2016 21:53:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aWWU5-00033u-Uc for pgsql-admin@postgresql.org; Thu, 18 Feb 2016 21:51:37 +0000 Received: from buckeye.comp.uvic.ca ([142.104.177.230]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aWWTy-0000b3-Bl for pgsql-admin@postgresql.org; Thu, 18 Feb 2016 21:51:34 +0000 Received: from strike.comp.uvic.ca (strike.comp.uvic.ca [142.104.191.252]) by buckeye.comp.uvic.ca (8.14.4/8.14.3) with ESMTP id u1ILpMwX008672 for ; Thu, 18 Feb 2016 13:51:22 -0800 Subject: Re: 9.5 new setting "cluster name" and logging To: pgsql-admin@postgresql.org References: <1377186808.57546.YahooMailNeo@web193505.mail.sg3.yahoo.com> <1377494614.9111.YahooMailNeo@web193506.mail.sg3.yahoo.com> <56AC5601.5040208@uvic.ca> <20160218214202.GA30326@momjian.us> From: Evan Rempel Message-ID: <56C63CD2.9090405@uvic.ca> Date: Thu, 18 Feb 2016 13:51:14 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20160218214202.GA30326@momjian.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-UVic-Virus-Scanned: OK - Passed virus scan by ClamAV (clamd) on buckeye X-UVic-Virus-Scanned: OK - Passed virus scan by Sophos (sophie) on buckeye X-UVic-Scan: buckeye.comp.uvic.ca filter_version 3.7.9 X-Scanned-By: MIMEDefang 2.67 on 192.168.8.82 X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On 02/18/2016 01:42 PM, Bruce Momjian wrote: > On Fri, Jan 29, 2016 at 10:19:45PM -0800, Evan Rempel wrote: >> Now that there is a setting to give a cluster a "name", it would be >> nice to have an escape sequence in the log_line_prefix setting that >> could reference the cluster_name. >> >> Comments? >> >> Can we get this on the "to do list"? > Uh, wouldn't the cluster name be the same on every line? Is that > useful? > That is correct. It does not make sense when looking into local log files, but you would not use the log prefix in that environment. When this feature would be useful is when you are sending the logs to syslog from many postgresql clusters, and on a central server, You want to collect logs together that use the same cluster name. It just provides more flexibility to add contextual information to the log lines. -- Evan Rempel -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin