From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Sandy Becker <sjb6925@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Connections on cluster not being logged
Date: Mon, 23 Jul 2018 12:58:17 -0700
Message-ID: <06eeef2e-48ba-c4d0-efd7-f71a656d6764@aklaver.com> (raw)
In-Reply-To: <CAOJsMicHRK3GiURp02V8AwS2pdrtMzH4Yan+jQs_Y7xW_BuOOw@mail.gmail.com>
References: <CAOJsMicYEH4nixrAq1-MdVWxyKY0Ny4uY2V40677S_grTtmh2w@mail.gmail.com>
<761f3607-88d4-5d1d-0c98-967109ecf5bb@aklaver.com>
<CAOJsMicHRK3GiURp02V8AwS2pdrtMzH4Yan+jQs_Y7xW_BuOOw@mail.gmail.com>
On 07/23/2018 12:50 PM, Sandy Becker wrote:
Please reply to list also.
Ccing list.
> Two servers set up in a hardware cluster for automatic failover. That's
> all I know about it.
Alright, so which server's logs are you looking at?
Long term it would be a good thing to know how the cluster/failover is
setup, as that is something folks on this list are going to ask when
attempting to answer a question. Just trying to get ahead of the
inevitable:)
>
> On Mon, Jul 23, 2018 at 1:04 PM, Adrian Klaver
> <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>> wrote:
>
> On 07/23/2018 08:14 AM, Sandy Becker wrote:
>
> I have postgresql 9.4 on a cluster, hardware based. I need to
> be able to see which users are connecting to which database and
> when to be in compliance with our security policies.
>
> I have set the following in the postgresql.conf and did a pg_ctl
> reload:
>
> log_connections = on
> log_line_prefix = '%t [%p]:[%u]:[%h]-[%d] [%1-1]'
>
> Unfortunately, it doesn't seem to be logging the connections.
> This is what I have used on our non-clustered instances and it's
> working as expected. Have I missed something relating to
> logging on a cluster? The second node is strictly for
> automatice failover, so nothing is actually running there at the
> moment.
>
>
> Can you define what you mean by a cluster?
>
>
>
>
> Thank you in advance for any suggestions.
>
> Sandy
>
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, sjb6925@gmail.com
Subject: Re: Connections on cluster not being logged
In-Reply-To: <06eeef2e-48ba-c4d0-efd7-f71a656d6764@aklaver.com>
References: <CAOJsMicYEH4nixrAq1-MdVWxyKY0Ny4uY2V40677S_grTtmh2w@mail.gmail.com> <761f3607-88d4-5d1d-0c98-967109ecf5bb@aklaver.com> <CAOJsMicHRK3GiURp02V8AwS2pdrtMzH4Yan+jQs_Y7xW_BuOOw@mail.gmail.com> <06eeef2e-48ba-c4d0-efd7-f71a656d6764@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox