Hi Okay so its in json format.
Masking password from the message body depends on what format is it in json, xml, text, pojo (toString) etc. There is no out of the box mask function you can use. Camel does mask passwords in endpoint uris, but that is easier because its uri parameters with key=value. So what you can do is to have a java bean with a log method where you mask the password and then call your bean from the <log>. The log message uses the simple language so you can check that doc how to call beans You can maybe use some regular exp to find / replace that password in your json On Thu, Feb 23, 2017 at 9:44 AM, adondoni <andrea.dond...@gmail.com> wrote: > Hello Claus, > thanks for your reply. > > My message body is a jsor RPC request like this > > { > "method": "login", > "id": "341182007", > "params": { > "username": "xxxxx", > "password": "yyyy" > }, > "jsonrpc": "2.0" > } > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Mask-password-using-log-component-tp5794301p5794308.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2