SPLK-2001 practice question 7 of 15
Which of the following are valid request arguments for the REST search endpoints? (Select all that apply.)
Full set: 66 questionsThe Splunk REST API search/jobs endpoint accepts standard Splunk time modifiers for the earliesttime and latesttime arguments.
- latesttime=rt is the correct syntax to initiate a real-time search.
- latesttime=now is a valid keyword representing the current time when the search is executed.
- earliesttime=-5h@h is a valid relative time modifier that specifies a time five hours ago, snapped to the beginning of that hour. The syntax in option D is invalid.
D. earliesttime=rt10m@m is incorrect because the underscore () is not a valid operator in Splunk's time modifier syntax. The correct format for a relative real-time specifier uses a hyphen (-) or plus (+).
1. Splunk Enterprise REST API Reference Manual
search/jobs endpoint documentation.
Section: POST search/jobs > Arguments
Content: The documentation for the latesttime argument explicitly states
"To run a real-time search that runs indefinitely
specify rt for the latesttime." This validates option A. The documentation for both earliesttime and latesttime specifies they accept a "time string
" which includes keywords like now and relative time modifiers. This validates options B and C.
2. Splunk Enterprise Search Manual
"Specify time ranges in your search".
Section: "Relative time modifiers"
Content: This section details the syntax for relative time
including the use of snap-to-time units (@). It provides examples like -60m@h
which confirms the structure of -5h@h is valid. This validates option C.
3. Splunk Enterprise Search Manual
"Specify time ranges in your search".
Section: "Use the now() keyword"
Content: This section states
"You can use the now() keyword to refer to the current time when the search is run." This validates option B.
4. Splunk Enterprise Search Manual
"About real-time searches and reports".
Section: "Time ranges for real-time searches"
Content: This section explains that to specify a time window for a real-time search
you use a relative time format such as rt-5m. It does not list any syntax using an underscore (rt)
confirming that the format in option D is invalid.
Keep practicing
Take the free SPLK-2001 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other SPLK-2001 practice questions
- Question 1Searching “index=_internal metrics | head 3” from Splunk Web returned the following event…
- Question 2In order to successfully accelerate a report, which criteria must the search meet? (Selec…
- Question 3After updating a dashboard in myApp, a Splunk admin moves myApp to a different Splunk ins…
- Question 4How can indexer acknowledgement be enabled for HTTP Event Collector (HEC)? (Select all th…
- Question 5Which of the following is an example of a Splunk KV store use case? (Select all that appl…
- Question 6Data can be added to a KV store collection in which of the following format(s)?
