Getting Data In

Anonymize data

jdomin30
New Member

Hi,

How would I anonymize the following example:

BankName=South!@Indian!@Bank

I want everything to the right of the equal sign to be removed/masked/covered

0 Karma

Damien_Dallimor
Ultra Champion

http://docs.splunk.com/Documentation/Splunk/7.0.0/Data/Anonymizedata

Pseudo example based on the docs to get you started. Would need a better data sample of full log events to give you a more accurate regex.

props.conf

[my-spec]
TRANSFORMS-anonymize = my-anonymizer

transforms.conf

[my-anonymizer]
REGEX = (?m)^(.*)BankName=\w+!@\w+!@\w+(.*)$
FORMAT = $1BankName=########$2
DEST_KEY = _raw
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...