Splunk Search

How do i query for those results occurred before 9 AM today?

chetanhonnavile
Explorer

I have get some statistics about some thread which has occured as of 9AM today..i dont want it to return any results assoicated with post 9AM thing.

Tags (1)
0 Karma

puneethgowda
Communicator

you can use date and time rand which is available in time picker right?

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi chetanhonnavile,
insert in every search this condition date_hour<9, something like this:

your_search date_hour<9
| ...

Bye.
Giuseppe

0 Karma

acharlieh
Influencer

Part of the Search Tutorial introduces you to the time range picker which lets you adjust your search time window to only include those events in a timerange you're interested in. I should note, this also happens to be rule number 1 of faster searches... limit your search time window down to only that which you're interested in.

https://docs.splunk.com/Documentation/Splunk/6.5.3/SearchTutorial/Aboutthetimerangepicker#Specify_da...

Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...