SPLK-1002 · Question #47
Which of the following statements are true for this search? (Select all that apply.) SEARCH: sourcetype=access* |fields action productld status
The correct answer is C. limits the fields are extracted. The fields command in Splunk limits which fields are extracted from events, improving performance by avoiding unnecessary field extraction.
Question
Which of the following statements are true for this search? (Select all that apply.) SEARCH:
sourcetype=access* |fields action productld status
Options
- Ais looking for all events that include the search terms: fields AND action AND productld AND
- Busers the table command to improve performance
- Climits the fields are extracted
- Dreturns a table with 3 columns
How the community answered
(40 responses)- A3% (1)
- B3% (1)
- C88% (35)
- D8% (3)
Why each option
The fields command in Splunk limits which fields are extracted from events, improving performance by avoiding unnecessary field extraction.
The terms 'action', 'productId', and 'status' after the pipe are arguments to the fields command, not keyword search terms; keyword filtering happens before the pipe in the sourcetype=access* portion.
The search uses the fields command, not the table command; table presents results in a formatted tabular view, while fields controls which fields are extracted and passed through the pipeline.
The fields command (| fields action productId status) explicitly restricts field extraction to only the named fields, telling Splunk's search pipeline not to extract any other fields from raw event data. This is the primary purpose of the fields command and directly reduces the processing overhead of the search.
While the fields command does limit output to those three fields, presenting a 'table with 3 columns' is the role of the table command specifically, not the fields command.
Concept tested: Splunk fields command limiting field extraction
Source: https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Fields
Topics
Community Discussion
No community discussion yet for this question.