From: Andreas Kretschmer <andreas@a-kretschmer.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: Connections on cluster not being logged
Date: Mon, 23 Jul 2018 17:23:38 +0200
Message-ID: <9517c858-91b6-6818-2e66-e15e2c12683b@a-kretschmer.de> (raw)
In-Reply-To: <CAOJsMicYEH4nixrAq1-MdVWxyKY0Ny4uY2V40677S_grTtmh2w@mail.gmail.com>
References: <CAOJsMicYEH4nixrAq1-MdVWxyKY0Ny4uY2V40677S_grTtmh2w@mail.gmail.com>
Am 23.07.2018 um 17:14 schrieb Sandy Becker:
> 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]'
should work, can you check if those settings are in effect?
select name, setting from pg_settings where name in
('log_connections','log_line_prefix');
Regards, Andreas
--
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.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: andreas@a-kretschmer.de
Subject: Re: Connections on cluster not being logged
In-Reply-To: <9517c858-91b6-6818-2e66-e15e2c12683b@a-kretschmer.de>
References: <CAOJsMicYEH4nixrAq1-MdVWxyKY0Ny4uY2V40677S_grTtmh2w@mail.gmail.com> <9517c858-91b6-6818-2e66-e15e2c12683b@a-kretschmer.de>
* 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