pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpostgres access log file
5+ messages / 5 participants
[nested] [flat]
* postgres access log file
@ 2003-02-28 10:31 Nathalie Boulos <nathalieboulos@hotmail.com>
0 siblings, 4 replies; 5+ messages in thread
From: Nathalie Boulos @ 2003-02-28 10:31 UTC (permalink / raw)
To: pgsql-admin
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
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: postgres access log file
@ 2003-02-28 13:40 Fouad Fezzi <Fouad.Fezzi@iup.univ-avignon.fr>
parent: Nathalie Boulos <nathalieboulos@hotmail.com>
3 siblings, 0 replies; 5+ messages in thread
From: Fouad Fezzi @ 2003-02-28 13:40 UTC (permalink / raw)
To: Nathalie Boulos <nathalieboulos@hotmail.com>; pgsql-admin
Hi
You can use syslog . look at postgresql.conf to setup this.
Fouad
-----Message d'origine-----
De : pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org]De la part de Nathalie Boulos
Envoyé : vendredi 28 février 2003 11:32
À : pgsql-admin@postgresql.org
Objet : [ADMIN] postgres access log file
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
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: postgres access log file
@ 2003-02-28 13:43 Andreas Schmitz <a.schmitz@cityweb.de>
parent: Nathalie Boulos <nathalieboulos@hotmail.com>
3 siblings, 0 replies; 5+ messages in thread
From: Andreas Schmitz @ 2003-02-28 13:43 UTC (permalink / raw)
To: Nathalie Boulos <nathalieboulos@hotmail.com>; pgsql-admin
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: postgres access log file
@ 2003-02-28 13:48 A.Bhuvaneswaran <bhuvansql@myrealbox.com>
parent: Nathalie Boulos <nathalieboulos@hotmail.com>
3 siblings, 0 replies; 5+ messages in thread
From: A.Bhuvaneswaran @ 2003-02-28 13:48 UTC (permalink / raw)
To: Nathalie Boulos <nathalieboulos@hotmail.com>; +Cc: pgsql-admin
> Hello all,
>
> I was wondering if there is a log file where are logged connection to a
> postgresql database per user and per date.
Try -l option with pg_ctl. More details can be found in postgresql.conf.
regards,
bhuvaneswaran
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: postgres access log file
@ 2003-02-28 15:01 Andrew Perrin <clists@perrin.socsci.unc.edu>
parent: Nathalie Boulos <nathalieboulos@hotmail.com>
3 siblings, 0 replies; 5+ messages in thread
From: Andrew Perrin @ 2003-02-28 15:01 UTC (permalink / raw)
To: Nathalie Boulos <nathalieboulos@hotmail.com>; +Cc: pgsql-admin
Use your postgresql.conf file to enable logged connections:
log_connections = on
----------------------------------------------------------------------
Andrew J Perrin - http://www.unc.edu/~aperrin
Assistant Professor of Sociology, U of North Carolina, Chapel Hill
clists@perrin.socsci.unc.edu * andrew_perrin (at) unc.edu
On Fri, 28 Feb 2003, 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
>
>
>
>
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2003-02-28 15:01 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-02-28 10:31 postgres access log file Nathalie Boulos <nathalieboulos@hotmail.com>
2003-02-28 13:40 ` Fouad Fezzi <Fouad.Fezzi@iup.univ-avignon.fr>
2003-02-28 13:43 ` Andreas Schmitz <a.schmitz@cityweb.de>
2003-02-28 13:48 ` A.Bhuvaneswaran <bhuvansql@myrealbox.com>
2003-02-28 15:01 ` Andrew Perrin <clists@perrin.socsci.unc.edu>
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