Re: 9.5 new setting "cluster name" and logging - Mailing list pgsql-admin

From Evan Rempel
Subject Re: 9.5 new setting "cluster name" and logging
Date
Msg-id 56C63CD2.9090405@uvic.ca
Whole thread Raw
In response to Re: 9.5 new setting "cluster name" and logging  (Bruce Momjian <bruce@momjian.us>)
List pgsql-admin
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
centralserver, You want to collect logs together that use the same cluster name. It just provides more flexibility to
addcontextual information to the log lines. 


--
Evan Rempel


pgsql-admin by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: 9.5 new setting "cluster name" and logging
Next
From: Tom Lane
Date:
Subject: Re: 9.5 new setting "cluster name" and logging