Hi,
I would like to anonymize data (data is file system path) using REGEX. I succesfully managed to hide data like IP, Credit Card Number, etc. But not able to replicate the setup for an undefined number of characters.
Could you please help reviewing the below code:
props.conf:
[amit_anonymize_data]
TRANSFORMS-anonymize = filepath-anonymizer
transforms.conf
[filepath-anonymizer]
REGEX = (?m)^(.*)filePath=\S+(.*)$
FORMAT = $1filePath=XXXX$2
DEST_KEY = _raw
Below an example of logs that must be transformed:
2016-02-25 14:40 GMT+1 this is only an example filePath="/tmp/file.log" error script 1
The log is indexed without any modification.
Thanks for your help.
Cyril
↧