SPLK-2001 practice question 1 of 15

Searching “index=_internal metrics | head 3” from Splunk Web returned the following events: 04-12-2018 18:39:43.514 +0200 INFO Metrics –…

Full set: 66 questions
Searching “index=_internal metrics | head 3” from Splunk Web returned the following events: 04-12-2018 18:39:43.514 +0200 INFO Metrics – group=thruput, name=thruput, instantaneous_kbps=0.9651774014563425, instantaneous_eps=5.645638802094809, average_kbps=1.198995639527069, total_k_processed=2676, kb=29.91796875, ev=175, load_average=3.85888671875 04-12-2018 18:39:43.514 +0200 INFO Metrics – group_thruput, name_syslog_output, instantaneous_kbps=0, instantaneous_eps_0, average_kbps=0, total_k_processed=0, kb=0, ev=0 04-12-2018 18:39:43.513 +0200 INFO Metrics – group_thruput, name_index_thruput, instantaneous_kbps=0.9651773703189551, instantaneous_eps=4.87137960922438, average_kbps=1.1985932324065556, total_k_processed=2675, kb=29.91796875, ev=151 When the same search is required from a REST API call, which fields will be given? (Select all that apply.)
Answer options
A: _raw Correct answer
B: name Correct answer
C: sourcetype Correct answer
D: instantaneous_kbps Correct answer
Correct Answer:
A. _raw; B. name; C. sourcetype; D. instantaneous_kbps
Explanation

By default, the Splunk REST API endpoint used to retrieve search results (/services/search/jobs/{searchid}/results) returns all fields that are extracted for each event. This includes the raw event data (raw), default metadata fields (such as sourcetype), and all fields extracted at search time. For the given metrics events, fields like name and instantaneouskbps are extracted from the key-value pairs within the raw data. Therefore, without any specific parameters to limit the field list in the API call, all listed fields will be included in the response for each event.

Why Incorrect

Not applicable, as all provided options are correct.

References

1. Splunk Enterprise REST API Reference Manual: In the documentation for the GET services/search/jobs/{searchid}/results endpoint, the description for the query parameter f (also known as fieldlist) explicitly states: "A comma-separated list of fields to return. If you do not specify a list of fields, all fields are returned." This confirms that the default behavior is to return every field associated with the search results. (See Splunk Enterprise 9.1.0 Documentation, Home > REST API Reference Manual > search/jobs/{searchid}/results).

2. Splunk Enterprise Search Manual: The manual describes how Splunk extracts fields at search time. For the internal logs, which often use a key-value pair format, Splunk automatically extracts these pairs as fields. The example event clearly shows fields like group, name, and instantaneouskbps which would be extracted and thus available in the API results. (See Splunk Enterprise 9.1.0 Documentation, Home > Search Manual > Get started with search > Use fields to search).

Scroll to Top