Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Splunk Exam SPLK-1003 Topic 15 Question 102 Discussion

Actual exam question for Splunk's SPLK-1003 exam
Question #: 102
Topic #: 15
[All SPLK-1003 Questions]

What is the correct example to redact a plain-text password from raw events?

Show Suggested Answer Hide Answer
Suggested Answer: B

The correct answer is B. in props.conf:

[identity]

SEDCMD-redact_pw = s/password=([^,|/s]+)/ ####REACTED####/g

According to the Splunk documentation1, to redact sensitive data from raw events, you need to use the SEDCMD attribute in the props.conf file. The SEDCMD attribute applies a sed expression to the raw data before indexing. The sed expression can use the s command to replace a pattern with a substitution string. For example, the following sed expression replaces any occurrence of password= followed by any characters until a comma, whitespace, or slash with ####REACTED####:

s/password=([^,|/s]+)/ ####REACTED####/g

The g flag at the end means that the replacement is applied globally, not just to the first match.

Option A is incorrect because it uses the REGEX attribute instead of the SEDCMD attribute. The REGEX attribute is used to extract fields from events, not to modify them.

Option C is incorrect because it uses the transforms.conf file instead of the props.conf file. The transforms.conf file is used to define transformations that can be applied to fields or events, such as lookups, evaluations, or replacements. However, these transformations are applied after indexing, not before.

Option D is incorrect because it uses both the wrong attribute and the wrong file. There is no REGEX-redact_pw attribute in the transforms.conf file.


Contribute your Thoughts:

Harris
2 months ago
Option C all the way! Gotta love those SEDCMD transformations. Keeps things nice and tidy.
upvoted 0 times
Florinda
10 days ago
True, it does keep things nice and tidy.
upvoted 0 times
...
Mitsue
25 days ago
But SEDCMD in transforms.conf is easier to manage.
upvoted 0 times
...
Erick
1 months ago
I think using REGEX in props.conf is more efficient.
upvoted 0 times
...
Arlette
1 months ago
I agree, SEDCMD transformations are the way to go.
upvoted 0 times
...
...
Laurena
2 months ago
Is it just me, or does option A look a bit too complicated? I'd keep it simple with option B.
upvoted 0 times
Nell
24 days ago
I also prefer option B. It's important to keep things simple when redacting passwords.
upvoted 0 times
...
Deja
1 months ago
I think option B is the way to go. It's straightforward and easy to understand.
upvoted 0 times
...
Tamar
2 months ago
Option A does seem a bit complicated. I agree, option B looks simpler.
upvoted 0 times
...
...
Serina
2 months ago
Hmm, I'm a bit confused. Are we supposed to redact the password or the entire string 'password='? Either way, I'll go with option D.
upvoted 0 times
Merilyn
1 months ago
User3: Sounds good to me, option D it is.
upvoted 0 times
...
Buddy
1 months ago
User2: I agree, let's go with option D.
upvoted 0 times
...
Lyla
2 months ago
I think we should redact the password only.
upvoted 0 times
...
...
Arminda
2 months ago
I'm not sure, but I think option C) in transforms.conf could also work since it uses SEDCMD to redact the password.
upvoted 0 times
...
Clemencia
2 months ago
I'm going with option C. Using transforms.conf is the recommended best practice for password redaction.
upvoted 0 times
Phil
29 days ago
Transforms.conf is definitely the way to go for password redaction.
upvoted 0 times
...
Theron
1 months ago
I would go with option C as well.
upvoted 0 times
...
Lilli
2 months ago
I agree, using transforms.conf is the recommended practice.
upvoted 0 times
...
Geraldine
2 months ago
I think option C is the best choice.
upvoted 0 times
...
...
Sina
3 months ago
I agree with Elbert, because using REGEX in props.conf is the standard way to redact passwords.
upvoted 0 times
...
Emerson
3 months ago
Option B looks good to me, SEDCMD is the way to go for redacting passwords in props.conf.
upvoted 0 times
Dante
1 months ago
Definitely, we need to make sure we're protecting user data.
upvoted 0 times
...
Maryann
2 months ago
I agree, it's important to redact sensitive information like passwords.
upvoted 0 times
...
Mohammad
2 months ago
Yeah, SEDCMD is the way to go for redacting passwords.
upvoted 0 times
...
Royce
2 months ago
I think option B is the correct one.
upvoted 0 times
...
...
Elbert
3 months ago
I think the correct example is A) in props.conf.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77