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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...