Getting Data In

REgex to mask half of the data in splunk

ethanthomas
Explorer

Can someone help me with th regex to put in props.conf file to mask the data as below . Except the first three letter , remaing to be masked . 

Org_name="ethanfurniturelimited"

Org_name="david"

required output 

Org_name="ethxxxxxxxxxxxxxxxxxx"

Org_name="davxxx"

 

 

Labels (2)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@ethanthomas 

Can you please try this in props.conf?

 

[anonymize]
SEDCMD-Org_name = s/(Org_name?[^-=]+[-=:]\s*".{3}?)\w+/\1XXXXXXX/g
.
.
.

 Thanks
KV
▄︻̷̿┻̿═━一

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...