Re: Database connection log

From: Pierre Timmermans <ptim007(at)yahoo(dot)com>
To: Forums postgresql <pgsql-general(at)postgresql(dot)org>, Tiffany Thang <tiffanythang(at)gmail(dot)com>
Subject: Re: Database connection log
Date: 2018-06-14 18:00:39
Message-ID: 117841277.5046710.1528999239564@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I believe that you can achieve what you want with the following configuration parameters: log_connections and log_line_prefix 
PostgreSQL: Documentation: 10: 19.8. Error Reporting and Logging

|
|
|
| | |

|

|
|
| |
PostgreSQL: Documentation: 10: 19.8. Error Reporting and Logging

|

|

|

Regards, Pierre

On Thursday, June 14, 2018, 4:48:54 PM GMT+2, Tiffany Thang <tiffanythang(at)gmail(dot)com> wrote:

Hi,Does PostgreSQL keep a log of client connections to the database like Oracle's listener.log? I would like to extract information such as how many connections are made to the database daily, the IP addresses they originated from and the schemas they are connected to. Would it be possible to extract the above information in PostgreSQL?
Thanks.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message George Woodring 2018-06-14 19:06:32 Can I disable sslcert/sslkey in pg_service.conf?
Previous Message Christoph Moench-Tegeder 2018-06-14 14:51:58 Re: Database connection log