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!

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...

What’s New in Splunk Cloud Platform 9.1.2308?

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