QuestionQ1

VerifiedManipulating Raw Data

A user must mask sensitive data without altering the structure of /var/log/purchases/transactions.log, which has this format:

2020-01-01 00:01:20 User=bob SuperSecretNumber=123456789012 Operation=purchase  
2020-01-01 16:15:32 User=alice SuperSecretNumber=123456789012 Operation=purchase  

Which of the following stanzas will accomplish this?

Explanation

In Splunk event anonymization, props.conf must reference the transform, while the transforms.conf stanza uses DEST_KEY = _raw to write the replacement into the raw event. Capturing SuperSecretNumber= as $1 and formatting it as $1xxxxxxxxxxxx preserves the field name and surrounding event structure while masking the 12-digit value.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!