ExamGecko
Question list
Search
Search

Question 35 - SPLK-1004 discussion

Report
Export

Assuming a standard time zone across the environment, what syntax will always return ewnts from between 2:00am and 5:00am?

A.
datehour>-2 AND date_hour<5
Answers
A.
datehour>-2 AND date_hour<5
B.
earliest=-2h@h AND latest=-5h@h
Answers
B.
earliest=-2h@h AND latest=-5h@h
C.
time_hour>-2 AND time_hour>-5
Answers
C.
time_hour>-2 AND time_hour>-5
D.
earliest=2h@ AND latest=5h3h
Answers
D.
earliest=2h@ AND latest=5h3h
Suggested answer: B

Explanation:

To always return events from between 2:00 AM and 5:00 AM, assuming a standard time zone across the environment, the correct Splunk search syntax is earliest=-2h@h AND latest=-5h@h (Option B). This syntax uses relative time modifiers to specify a range starting 2 hours ago from the current hour (-2h@h) and ending 5 hours ago from the current hour (-5h@h), effectively capturing the desired time window.

asked 23/09/2024
ali ghoubali
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first