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 questions
Answer options
A: latest_time=rt Correct answer
B: latest_time=now Correct answer
C: earliest_time=-5h@h Correct answer
D: earliest_time=rt_10m@m
Correct Answer:
A. latest_time=rt; B. latest_time=now; C. earliest_time=-5h@h
Explanation

The 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.

Why Incorrect

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 (+).

References

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.

Scroll to Top