Emre ÖZTÜRK wrote:

> I have sent below question months ago but I could not get any reply from you 
> experts. I will very
> appreciated if you can help.
> 
> PS: I have tried debug_pretty_print = off but I did not work.

> Is there a parameter to log any SQL query as a single line in audit logs? I 
> have some problems in my
> SIEM application. If a DBA sends the query as a single line I can gather the 
> whole query, but if he
> enters like
> 
> UPDATE x  .......
>           y=Z ......
>           where ......
> 
> I only get the line starts with UPDATE then I can not see what is really 
> changed in my SIEM logs. I
> have heard that there is a parameter do what I mean. Do you agree?

There is no way to modify queries like that in the PostgreSQL log.

You can set log_destination = 'csvlog' to get a PostgreSQL log in CSV
format that can be parsed more easily.

I don't know what the "SIEM logs" are that you talk about.
If they log only part of the query, I'd say that they are broken
and should be fixed.

Yours,
Laurenz Albe

-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to