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!

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 ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...