pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Andreas Schmitz <a.schmitz@cityweb.de>
To: Nathalie Boulos <nathalieboulos@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: postgres access log file
Date: Fri, 28 Feb 2003 14:43:01 +0100
Message-ID: <200302281443.01342.a.schmitz@cityweb.de> (raw)
In-Reply-To: <F54yunxtkVO4alvoNGE00000ac7@hotmail.com>
References: <F54yunxtkVO4alvoNGE00000ac7@hotmail.com>
On Friday 28 February 2003 11:31, Nathalie Boulos wrote:
> Hello all,
>
> I was wondering if there is a log file where are logged connection to a
> postgresql database per user and per date.
>
> Or do i have to specify a table and insert rows in it each time a user logs
> in and out?
>
> Regards
>
> Nathalie
>
hi,
I have this in the postgresql.conf
log_connections = true
log_pid = true
log_statement = false
log_duration = true
log_timestamp = true
it outputs this to the log
Feb 26 17:27:46 postgres2 postgres[12416]: [ID 553393 local0.info] [11] LOG:
connection received: host=193.189.226.86 port=33102
Feb 26 17:27:46 postgres2 postgres[12416]: [ID 553393 local0.info] [12] LOG:
connection authorized: user=postgres database=newsdb
Feb 26 17:35:07 postgres2 postgres[12418]: [ID 553393 local0.info] [11] LOG:
connection received: host=193.189.226.86 port=33104
Feb 26 17:35:07 postgres2 postgres[12418]: [ID 553393 local0.info] [12] LOG:
connection authorized: user=postgres database=newsdb
regards
-andreas
--
Andreas Schmitz - Phone +49 201 8501 318
Cityweb-Technik-Service-Gesellschaft mbH
Friedrichstr. 12 - Fax +49 201 8501 104
45128 Essen - email a.schmitz@cityweb.de
view thread (5+ messages) latest in thread
Message-ID: <200302281443.01342.a.schmitz@cityweb.de> Permalink: ../200302281443.01342.a.schmitz@cityweb.de/ Also on: postgresql.org/message-id/200302281443.01342.a.schmitz@cityweb.de ·
reply
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-admin@postgresql.org Cc: a.schmitz@cityweb.de, nathalieboulos@hotmail.com Subject: Re: postgres access log file In-Reply-To: <200302281443.01342.a.schmitz@cityweb.de> References: <F54yunxtkVO4alvoNGE00000ac7@hotmail.com> <200302281443.01342.a.schmitz@cityweb.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