Splunk Search

Why is my schedule search produce less result than the same query running adhoc?

phamxuantung
Communicator

Hello,
I have a simple query that run on the last 10 days of month, around 300k events something like:

index=myindex RESPCODE=0
|bin span=1mon _time
|eval length=len(POS_ENTRY_CODE)
|search POS_ENTRY_CODE=8* AND length=2
|stats count

The schedule return 6, which a little bit low than what I expected, so I hit Run to run the same query in ad-hoc, and it return 12, which is right. The time it took to run the schedule was 17 min and the time it took to run the query in adhoc was 19 min. My Splunk version is 7.2.6.

So what wrong with my schedule alert and what should I do to mitigate this problem?

 

Labels (3)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

What job inspector shows for both queries?

0 Karma
Get Updates on the Splunk Community!

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2025 SplunkTrust is officially open! If you ...

Splunk Answers Content Calendar, June Edition II

Get ready to dive into Splunk Dashboard panels this week! We'll be tackling common questions around ...

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...