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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...