pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Exclude certain application pgaudit logging?
4+ messages / 3 participants
[nested] [flat]

* Exclude certain application pgaudit logging?
@ 2024-02-06 18:11  Ron Johnson <ronljohnsonjr@gmail.com>
  0 siblings, 2 replies; 4+ messages in thread

From: Ron Johnson @ 2024-02-06 18:11 UTC (permalink / raw)
  To: pgsql-general

Currently, we use Object audit logging to capture all READ access to
columns FOO_1, FOO_2 and FOO_3 in table BAR.SCRABBLE.  (They are the three
columns have PII data.)

The problem is that the application legitimately reads these columns
thousands of times per day.  Thus, the log fills up with meaningless data
that swamps any legitimate invalid accesses.

Thus, I'd like to exclude reads from "Postgresql JDBC Driver".  (Currently,
I filter that out using "grep -v" in a shell script that runs hourly from
cron, but I find that unsatisfactory.)

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Exclude certain application pgaudit logging?
@ 2024-02-06 18:18  Adrian Klaver <adrian.klaver@aklaver.com>
  parent: Ron Johnson <ronljohnsonjr@gmail.com>
  1 sibling, 1 reply; 4+ messages in thread

From: Adrian Klaver @ 2024-02-06 18:18 UTC (permalink / raw)
  To: Ron Johnson <ronljohnsonjr@gmail.com>; pgsql-general


On 2/6/24 10:11 AM, Ron Johnson wrote:
> Currently, we use Object audit logging to capture all READ access to 
> columns FOO_1, FOO_2 and FOO_3 in table BAR.SCRABBLE.  (They are the 
> three columns have PII data.)


Using what audit software?


>
> The problem is that the application legitimately reads these columns 
> thousands of times per day.  Thus, the log fills up with meaningless 
> data that swamps any legitimate invalid accesses.


How do you know they are legitimate  requests?


>
> Thus, I'd like to exclude reads from "Postgresql JDBC Driver".  
> (Currently, I filter that out using "grep -v" in a shell script 
> that runs hourly from cron, but I find that unsatisfactory.)

-- 
Adrian Klaver
adrian.klaver@aklaver.com






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Exclude certain application pgaudit logging?
@ 2024-02-06 18:21  Christophe Pettus <xof@thebuild.com>
  parent: Ron Johnson <ronljohnsonjr@gmail.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Christophe Pettus @ 2024-02-06 18:21 UTC (permalink / raw)
  To: Ron Johnson <ronljohnsonjr@gmail.com>; +Cc: pgsql-general



> On Feb 6, 2024, at 10:11, Ron Johnson <ronljohnsonjr@gmail.com> wrote:
> Thus, I'd like to exclude reads from "Postgresql JDBC Driver".  (Currently, I filter that out using "grep -v" in a shell script that runs hourly from cron, but I find that unsatisfactory.)


pgAudit doesn't currently include filters by application name.  Philosophically, I don't think you want to filter on application name, because it's a completely client-supplied string that could easily be spoofed.




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Exclude certain application pgaudit logging?
@ 2024-02-06 18:23  Adrian Klaver <adrian.klaver@aklaver.com>
  parent: Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Adrian Klaver @ 2024-02-06 18:23 UTC (permalink / raw)
  To: Ron Johnson <ronljohnsonjr@gmail.com>; pgsql-general


On 2/6/24 10:18 AM, Adrian Klaver wrote:
>
> On 2/6/24 10:11 AM, Ron Johnson wrote:
>> Currently, we use Object audit logging to capture all READ access to 
>> columns FOO_1, FOO_2 and FOO_3 in table BAR.SCRABBLE.  (They are the 
>> three columns have PII data.)
>
>
> Using what audit software?


Memo to self, read subject line.


>
>
>>
>> The problem is that the application legitimately reads these columns 
>> thousands of times per day.  Thus, the log fills up with meaningless 
>> data that swamps any legitimate invalid accesses.
>
>
> How do you know they are legitimate  requests?
>
>
>>
>> Thus, I'd like to exclude reads from "Postgresql JDBC Driver". 
>> (Currently, I filter that out using "grep -v" in a shell script 
>> that runs hourly from cron, but I find that unsatisfactory.)
>
-- 
Adrian Klaver
adrian.klaver@aklaver.com






^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2024-02-06 18:23 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-02-06 18:11 Exclude certain application pgaudit logging? Ron Johnson <ronljohnsonjr@gmail.com>
2024-02-06 18:18 ` Adrian Klaver <adrian.klaver@aklaver.com>
2024-02-06 18:23   ` Adrian Klaver <adrian.klaver@aklaver.com>
2024-02-06 18:21 ` Christophe Pettus <xof@thebuild.com>

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