I'm in need of masking some sensitive data from logging in postgresql.log
For Example, Let's say I want mask "password@123" from postgresql.log while logging with "******"
I tried below configuration,
log_line_prefix = '%t [%p]: REGEXP_REPLACE(%m, ''password@123'', ''******'') '
log_redact = '(password@123)'
But seems it's not working. Please help me to find a solution