ExamGecko
Question list
Search
Search

Question 54 - SPLK-1003 discussion

Report
Export

Using SEDCMD in props.conf allows raw data to be modified. With the given event below, which option will mask the first three digits of the AcctID field resulting output: [22/Oct/2018:15:50:21]

VendorID=1234 Code=B AcctID=xxx5309

Event:

[22/Oct/2018:15:50:21] VendorID=1234 Code=B AcctID=xxx5309

A.
SEDCMD-1acct = s/VendorID=\d{3}(\d{4})/VendorID=xxx/g
Answers
A.
SEDCMD-1acct = s/VendorID=\d{3}(\d{4})/VendorID=xxx/g
B.
SEDCMD-xxxAcct = s/AcctID=\d{3}(\d{4})/AcctID=xxx/g
Answers
B.
SEDCMD-xxxAcct = s/AcctID=\d{3}(\d{4})/AcctID=xxx/g
C.
SEDCMD-1acct = s/AcctID=\d{3}(\d{4})/AcctID=\1xxx/g
Answers
C.
SEDCMD-1acct = s/AcctID=\d{3}(\d{4})/AcctID=\1xxx/g
D.
SEDCMD-1acct = s/AcctID=\d{3}(\d{4})/AcctID=xxx\1/g
Answers
D.
SEDCMD-1acct = s/AcctID=\d{3}(\d{4})/AcctID=xxx\1/g
Suggested answer: D

Explanation:

https://docs.splunk.com/Documentation/Splunk/8.2.2/Data/Anonymizedata

Scrolling down to the section titled "Define the sed script in props.conf shows the correct syntax of an example which validates that the number/character /1 immediately preceded the /g

asked 23/09/2024
souhaib chabchoub
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first