How to get login user name and host name in pgaudit

From: rakeshkumar464 <rakeshkumar464(at)outlook(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: How to get login user name and host name in pgaudit
Date: 2017-10-22 12:32:56
Message-ID: 1508675576206-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I installed latest pgaudit (1.2) with pg10. I am testing it and I see that
it does not log the login user name and host name.

For example, if user mary is running select * from sensitive_table, I want
Mary and the machine from where she ran in the log.

It seems to log the ids which needs to be joined with pg_ views to convert
it into login user name and host name.

any pointers on how to get it done.

thanks.

--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martin Moore 2017-10-22 14:13:21 Postgres 9.6 fails to start on VMWare
Previous Message Michael Paquier 2017-10-22 09:45:34 Re: Weird performance difference