BlackFriday 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
27 days ago
Option C all the way! Gotta love those SEDCMD transformations. Keeps things nice and tidy.
upvoted 0 times
Mitsue
2 days ago
But SEDCMD in transforms.conf is easier to manage.
upvoted 0 times
...
Erick
9 days ago
I think using REGEX in props.conf is more efficient.
upvoted 0 times
...
Arlette
15 days ago
I agree, SEDCMD transformations are the way to go.
upvoted 0 times
...
...
Laurena
29 days 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
20 hours ago
I also prefer option B. It's important to keep things simple when redacting passwords.
upvoted 0 times
...
Deja
9 days ago
I think option B is the way to go. It's straightforward and easy to understand.
upvoted 0 times
...
Tamar
23 days ago
Option A does seem a bit complicated. I agree, option B looks simpler.
upvoted 0 times
...
...
Serina
1 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
11 days ago
User3: Sounds good to me, option D it is.
upvoted 0 times
...
Buddy
14 days ago
User2: I agree, let's go with option D.
upvoted 0 times
...
Lyla
27 days ago
I think we should redact the password only.
upvoted 0 times
...
...
Arminda
1 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
6 days ago
Transforms.conf is definitely the way to go for password redaction.
upvoted 0 times
...
Theron
14 days ago
I would go with option C as well.
upvoted 0 times
...
Lilli
1 months ago
I agree, using transforms.conf is the recommended practice.
upvoted 0 times
...
Geraldine
1 months ago
I think option C is the best choice.
upvoted 0 times
...
...
Sina
2 months ago
I agree with Elbert, because using REGEX in props.conf is the standard way to redact passwords.
upvoted 0 times
...
Emerson
2 months ago
Option B looks good to me, SEDCMD is the way to go for redacting passwords in props.conf.
upvoted 0 times
Dante
20 days ago
Definitely, we need to make sure we're protecting user data.
upvoted 0 times
...
Maryann
26 days ago
I agree, it's important to redact sensitive information like passwords.
upvoted 0 times
...
Mohammad
29 days ago
Yeah, SEDCMD is the way to go for redacting passwords.
upvoted 0 times
...
Royce
1 months ago
I think option B is the correct one.
upvoted 0 times
...
...
Elbert
2 months ago
I think the correct example is A) in props.conf.
upvoted 0 times
...

Save Cancel