Splunk Search

Mask SSN on forwarder/Indexer?

Giggs
New Member

Tried this on both the Forwarder & indexer without success, what am i missing ?

Log output SignUpState='3.30' SSN='555555555'
desired output SSN='xxxxxxxxx'.
Tried this on both the Forwarder & indexer without success, what am i missing ?

Props.conf
[source:://e:\trs\log\accountweb\aw*.log]
SEDCMD-SSN = s/SSN=\d{9})/SSN=xxxxxxxxx\1/g


Props.conf
[source:://e:\trs\log\accountweb\aw*.log]
TRANSFORMS-anonymize = ssn-anonymizer, ssnlookup-anonymizer

Transforms.conf:
[ssn-anonymizer]
REGEX = (?m)(^|)SSN=($|['])[0-9]{9}($|['])
FORMAT = $1SSN=#########'$2
DEST_KEY = _raw
[ssnlookup-anonymizer]
REGEX = (?m)(^|)SSNLookup=($|['])[0-9]{9}($|['])
FORMAT = $1SSNLookup=#########'$2
DEST_KEY = _raw

0 Karma

jkat54
SplunkTrust
SplunkTrust

This:

[source:://e:\trs\log\accountweb\aw*.log]
SEDCMD-SSN = s/SSN=\d{9})/SSN=xxxxxxxxx\1/g

Should be this:

[source:://e:\trs\log\accountweb\aw*.log]
SEDCMD-SSN = s/SSN=\d{9}/SSN=xxxxxxxxx/g

Giggs
New Member

Tried this , but still not masking

0 Karma

jkat54
SplunkTrust
SplunkTrust

It needs to be on s heavy forwarder or the indexers. Where did you put it?

0 Karma

Giggs
New Member

On thge Indexer

0 Karma

jkat54
SplunkTrust
SplunkTrust

Did you reload your data? Will only apply to new data.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...