Splunk Search

Real Time Search Visualisation works briefly then gives wrong results

luke222010
Engager

I am running the following search:

index=fi | stats last(BP) as start,first(BP) as last by Name | eval diff=last-start | sort diff | tail 10

This will essentially use the BP field (a floating point number), and calculate the oldest BP value minus the latest BP value, then sort the results, and present the 10 highest positive numbers in a stats table.
This is a real time search, looking back at the last 12 hours.
Each minute at 20 second intervals, there is new data ingested with new BP values.

The problem I have, is in the results returned the first set provide the correct values in 'diff'. But after the second data set comes in and the real time search refreshes, all results are wrong, and 'diff' resets to '0' for nearly all results.
Interestingly I have had this running now for almost 2 days, and it only became a problem this morning, with this strange behaviour.

Can anyone explain what is going on, please?
Happy to provide more info if needed.

0 Karma
Get Updates on the Splunk Community!

Index This | Divide 100 by half. What do you get?

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

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...

Splunk and Fraud

Watch Now!Watch an insightful webinar where we delve into the innovative approaches to solving fraud using the ...