Re: 9.5 new setting "cluster name" and logging

From: Evan Rempel <erempel(at)uvic(dot)ca>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: 9.5 new setting "cluster name" and logging
Date: 2016-02-18 21:51:14
Message-ID: 56C63CD2.9090405@uvic.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2016-02-18 21:53:01 Re: 9.5 new setting "cluster name" and logging
Previous Message Bruce Momjian 2016-02-18 21:42:02 Re: 9.5 new setting "cluster name" and logging

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-02-18 21:53:01 Re: 9.5 new setting "cluster name" and logging
Previous Message Bruce Momjian 2016-02-18 21:42:02 Re: 9.5 new setting "cluster name" and logging