How to mask sensitive data in Kong Gateway

As per our project requirement we are logging request and response data in Kong Gateway along with headers and query parameter.
But in some scenarios the data contains sensitive data like passwords,currency code etc…
So how we can Mask these kind of data in Kong ?

Kong Hub Kubernetes Questions General

@Narasimhulu_K - If you haven’t checked here is the link,

Thank you @JohnWilliams .
I checked this link and it mostly talks about removing some value from the logs, but I want to mask specific values from query params or headers etc… based on key name.
If you have any example can you please share