Splunk Search

[Inquiry]: Retrieving search results with schedule timings

dcresido
New Member

Hi everyone,

Good day!

I would like to ask about my search query below.

index="myIndex" source IN(*MyLogs*) host=server*
    | append
      [search "Missing process" 
      | eval myTime = _time
      | eval myHour=strftime(_time, "%H") 
      | eval myMinute=strftime(_time, "%M") 
      ]
        | search  ((myHour>=7 AND myMinute>=31) AND (myHour<=14 AND myMinute<=59))

And this is my use case: How can I retrieve search event from 7:31AM to 4:29PM from my search query?

Everytime I tried using the query above, I was able to retrieve some results if I use something like this

| search  ((myHour>=7 AND myMinute>=31) AND (myHour<=14 AND myMinute<=59))

But if I changed it to something like this

| search  ((myHour>=7 AND myMinute>=31) AND (myHour<=14 AND myMinute<=29))

I can no longer see any results. It seems that I do have some issues in assigning the minute parameters on this search query. But I'm not sure how to fix it.

Will you be able to provide some insights on how can I achieve my use case above?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...