Splunk Search

Search field value in interval

light_of_sirius
Explorer

Hello,

i am trying to search for field values in intervall (79,90).

Both versions do not work properly as i know what to expect.

 

v1

 

index=XXX  earliest="08/03/2020:15:00:00" latest="08/03/2020:16:30:00" TEMP<90 TEMP>79 
| stats count as Counter  

 

 v2

 

index=XXX  earliest="08/03/2020:15:00:00" latest="08/03/2020:16:30:00" TEMP<90 AND TEMP>79 
| stats count as Counter   

 

Labels (2)
0 Karma
1 Solution

thambisetty
SplunkTrust
SplunkTrust

is TEMP field ?

I have tried below and working fine.

index=_internal earliest="09/14/2020:11:00:00" latest="09/14/2020:13:00:00" date_hour>11 date_hour<13
————————————
If this helps, give a like below.

View solution in original post

thambisetty
SplunkTrust
SplunkTrust

is TEMP field ?

I have tried below and working fine.

index=_internal earliest="09/14/2020:11:00:00" latest="09/14/2020:13:00:00" date_hour>11 date_hour<13
————————————
If this helps, give a like below.

light_of_sirius
Explorer

Yeah it works fine. Turns out what i expected to expect was not what i should have expected 🙂 Sry

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Your date time format seems a little different, usually there is a space between the date and the time not a colon. Do you have some sample data events you could share?

thambisetty
SplunkTrust
SplunkTrust

@ITWhisperer 

earliest and latest time format will have column in between date & time.

————————————
If this helps, give a like below.

ITWhisperer
SplunkTrust
SplunkTrust

Yes I just checked _internal - still would be useful to have some sample data though

0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...