Quantcast
Channel: Questions in topic: "props.conf"
Viewing all articles
Browse latest Browse all 1485

How to anonymize data using REGEX in transforms.conf for an undefined number of characters?

$
0
0
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

Viewing all articles
Browse latest Browse all 1485

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>