Getting Data In

Is there a way to use sedcmd in props.conf to mask firstName, lastName, and birthDate values in my data?

locose
Path Finder

I'm trying to mask birthDate and firstname. For example my Splunk results yields something like....

<firstName>james</firstName>
<lastName>bond</lastName>
<birthDate>01/10/1960</birthDate>

Is there a way to use sedcmd in the props.conf file mask everything between, for example:

<firstName>xxxxxx</firstName> 
<lastName>xxxxxxx</lastName>
<birthDate>xxxxxx</birthDate>

Thanks

0 Karma
1 Solution

woodcock
Esteemed Legend

Yes, try this:

SEDCMD-firstName= s/(<firstName>).*(<\/firstName>)/\1xxxxxx\2/
SEDCMD-lastName= s/(<lastName>).*(<\/lastName>)/\1xxxxxxx\2/
SEDCMD-birthDate= s/(<birthDate>).*(<\/birthDate>)/\1xxxxxx\2/

View solution in original post

woodcock
Esteemed Legend

Yes, try this:

SEDCMD-firstName= s/(<firstName>).*(<\/firstName>)/\1xxxxxx\2/
SEDCMD-lastName= s/(<lastName>).*(<\/lastName>)/\1xxxxxxx\2/
SEDCMD-birthDate= s/(<birthDate>).*(<\/birthDate>)/\1xxxxxx\2/

locose
Path Finder

Thank you.

0 Karma

sundareshr
Legend

Here's some good documentation on how to anonymize data. You can apply this concept to your data to mask first, last and birthdate

http://docs.splunk.com/Documentation/Splunk/6.2.0/Data/Anonymizedatausingconfigurationfiles

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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