ExamGecko
Question list
Search
Search

Question 162 - SPLK-1002 discussion

Report
Export

Which method in the Field Extractor would extract the port number from the following event? |

10/20/2022 - 125.24.20.1 ++++ port 54 - user: admin <web error>

A.
Delimiter
Answers
A.
Delimiter
B.
rex command
Answers
B.
rex command
C.
The Field Extractor tool cannot extract regular expressions.
Answers
C.
The Field Extractor tool cannot extract regular expressions.
D.
Regular expression
Answers
D.
Regular expression
Suggested answer: B

Explanation:

The rex command allows you to extract fields from events using regular expressions. You can use the rex command to specify a named group that matches the port number in the event. For example:

rex '\+\+\+\+port (?\d+)'

This will create a field called port with the value 54 for the event.

The delimiter method is not suitable for this event because there is no consistent delimiter between the fields. The regular expression method is not a valid option for the Field Extractor tool. The Field Extractor tool can extract regular expressions, but it is not a method by itself.

asked 23/09/2024
Richard Drayer Camacho
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first