X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2540A475F84 for ; Fri, 28 Feb 2003 11:01:58 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 58650-04 for ; Fri, 28 Feb 2003 11:01:45 -0500 (EST) Received: from linux012.intern.cityweb.de (linux012.intern.cityweb.de [195.71.215.252]) by postgresql.org (Postfix) with ESMTP id 83227475FB9 for ; Fri, 28 Feb 2003 08:57:14 -0500 (EST) Received: from zahedi.intern.cityweb.de (zahedi.intern.cityweb.de [193.189.226.198]) by linux012.intern.cityweb.de (8.11.0/8.11.0) with ESMTP id h1SDvFJ17653; Fri, 28 Feb 2003 14:57:15 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Andreas Schmitz Reply-To: a.schmitz@cityweb.de Organization: Cityweb Network To: "Nathalie Boulos" , pgsql-admin@postgresql.org Subject: Re: postgres access log file Date: Fri, 28 Feb 2003 14:43:01 +0100 User-Agent: KMail/1.4.1 References: In-Reply-To: MIME-Version: 1.0 Message-Id: <200302281443.01342.a.schmitz@cityweb.de> Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/427 X-Sequence-Number: 7625 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 lo= gs > in and out? > > Regards > > Nathalie > hi, I have this in the postgresql.conf log_connections =3D true log_pid =3D true log_statement =3D false log_duration =3D true log_timestamp =3D true it outputs this to the log=20 Feb 26 17:27:46 postgres2 postgres[12416]: [ID 553393 local0.info] [11] LOG= :=20=20 connection received: host=3D193.189.226.86 port=3D33102 Feb 26 17:27:46 postgres2 postgres[12416]: [ID 553393 local0.info] [12] LOG= :=20=20 connection authorized: user=3Dpostgres database=3Dnewsdb Feb 26 17:35:07 postgres2 postgres[12418]: [ID 553393 local0.info] [11] LOG= :=20=20 connection received: host=3D193.189.226.86 port=3D33104 Feb 26 17:35:07 postgres2 postgres[12418]: [ID 553393 local0.info] [12] LOG= :=20=20 connection authorized: user=3Dpostgres database=3Dnewsdb regards -andreas --=20 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