Getting Data In

Could someone help me with Data Masking?

egcp
Loves-to-Learn Everything

Hi,

 

I am trying to mask dataat index time, can you please help ?

First line is a result and second is what i would like to be.

Thx

 

"authenticationValue":"AAcBBGJxFAAAAZZANIJZdQAAAAA=" Result 

"authenticationValue":"****************************" 

Labels (1)
0 Karma

egcp
Loves-to-Learn Everything

Hi,

 

props are properly placed.

In search also nothing is changed.

 

Thank you for your  effort .

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @egcp,

you can follow the instructions at https://docs.splunk.com/Documentation/Splunk/latest/Data/Anonymizedata

You have two methods:

  • using SEDCMD
  • using props.conf and transfroms.conf

Using SEDCMD, you have to put in your props.conf:

[your_sourcetype]
SEDCMD-xxx = s/"authenticationValue":"\w+"/"authenticationValue":"****************************"/g

Using props.conf and transforms.conf:

props.conf:
[your_sourcetype]
TRANSFORMS-anonym,izer = session-anonymizer


transforms.conf:
[session-anonymizer]
REGEX = \"authenticationValue\":\"(\w+\)\"
FORMAT = \"authenticationValue\":\"(**********)\"
DEST_KEY = _raw

there also some videos to teach about this topic in YouTube Splunk channel.

Ciao.

Giuseppe

0 Karma

egcp
Loves-to-Learn Everything

Hi,

 

Tried both options , but nothing change in log.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @egcp,

the first check to perform is on the regex: use the "regex" command to check if the regex is correct

<your_search>
| rex mode=sed "SEDCMD-xxx = s/"authenticationValue":"\w+"/"authenticationValue":"****************************"/g"

then, where is this props.conf?

it must be located on the indexers or (if present) on Heavy Forwarders.

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...