exam questions

Exam SPLK-1005 All Questions

View all questions & answers for the SPLK-1005 exam

Exam SPLK-1005 topic 1 question 5 discussion

Actual exam question from Splunk's SPLK-1005
Question #: 5
Topic #: 1
[All SPLK-1005 Questions]

A user has been asked to mask some sensitive data without tampering with the structure of the file /var/log/purchases/transactions.log that has the following 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 stanzas below will achieve this?

  • A.
  • B.
  • C.
  • D.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
oxdeadbeef
3 weeks, 2 days ago
Selected Answer: B
props.conf does NOT support the REGEX, DEST_KEY or FORMAT stanza properties.
upvoted 1 times
...
cagdaskarabag
1 month, 2 weeks ago
Selected Answer: B
To mask sensitive data in the log file without altering its structure, the configuration must use props.conf and transforms.conf together. Here's why B is correct: In props.conf: The stanza [source::/var/log/purchases/transactions.log] applies the transformation rule (TRANSFORMS-cleanup) to the specified source file. It references the transforms.conf stanza remove_sensitive_data. In transforms.conf: The REGEX matches the sensitive data pattern: (SuperSecretNumber=)\d{12}. The DEST_KEY = _raw ensures that the masking is applied directly to the raw event data. The FORMAT = $1xxxxxxxxxxxx replaces the sensitive number with a masked version (xxxxxxxxxxxx) while preserving the prefix (SuperSecretNumber=), maintaining the structure of the log.
upvoted 3 times
...
Marco63
2 months, 4 weeks ago
B, but REGEX is wrong because is omitting the first part of the event.
upvoted 1 times
...
angelbritney13
3 months ago
Selected Answer: B
Option B is the correct approach because it properly uses a TRANSFORMS stanza in props.conf to reference the transforms.conf for removing sensitive data. The transforms stanza in transforms.conf uses a regular expression (REGEX) to locate the sensitive data
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago