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

Anonymize multiple occurrences on the same log event

$
0
0
Hi, I am able to anonymize data in Splunk using props.conf and transforms.conf but not able to anonymize multiple occurrences on the same log event. I am trying to anonymize IP Address, please find below my setup and the output: props.conf [mysourcetype] TRANSFORMS-anonymizeip = ip_anonymizer transforms.conf [ip_anonymizer] REGEX = (.* )\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(.*) FORMAT = $1XXX.XXX.XXX.XXX$2 DEST_KEY = _raw Log event example (before transform): *2016-03-31 09:03:52 testserv.net ProxySG: E0000 Access Log Connected to 192.168.1.101 and server 192.168.4.12:21.(0) NORMAL_EVENT* Log event example (after transform): *2016-03-31 09:03:52 testserv.net ProxySG: E0000 Access Log Connected to 192.168.1.101 and server XXX.XXX.XXX.XXX:21.(0) NORMAL_EVENT* Only the second IP Address is masked. Does anyone know what must be changed in the config ? Thanks for your help. SirHill

Viewing all articles
Browse latest Browse all 1485

Trending Articles



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