nerdexam
Splunk

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.

Filtering and Formatting Results

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)
  • A
    3% (1)
  • B
    3% (1)
  • C
    88% (35)
  • D
    8% (3)

Why each option

The fields command in Splunk limits which fields are extracted from events, improving performance by avoiding unnecessary field extraction.

Ais looking for all events that include the search terms: fields AND action AND productld AND

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.

Busers the table command to improve performance

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.

Climits the fields are extractedCorrect

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.

Dreturns a table with 3 columns

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

#fields command#field selection#Splunk search syntax#result manipulation

Community Discussion

No community discussion yet for this question.

Full SPLK-1002 Practice