Security

How to mask a bank detail from JSON logs

VijaySrrie
Builder

Hi,

We are ingesting some logs into splunk in JSON format, the logs are ingested via TA.

The value field in the below contains bank details which has to be masked.

 

PolicyDetails{}.Rules{}.ConditionsMatched.SensitiveInformation{}.SensitiveInformationDetections.DetectedValues{}.Value

Labels (4)
Tags (1)
0 Karma

Vardhan
Contributor

Hi @VijaySrrie ,

I have given a sample config below. You can try like that.

props.conf

[mentionsourcetype]
TRANSFORMS-acctmasking = mask-acctcode

Transforms.conf

[mask-acctcode]
REGEX = (.*DetectedValues{}.Value=\d+).*
DEST_KEY = _raw
FORMAT = $1-XXXX

Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...