Splunk Search

baseline,The previous value minus the next value?

laiyongmao
Path Finder

hi,all
I want to make a baseline,statistical the success rate.The current time success rate minus the last time success rate, then, divided by the time 60m,all the success rate of such,alt textwhat should I do?

thanks

Tags (2)
0 Karma

somesoni2
Revered Legend

Try something like this

Your base search giving fields 'Time' and 'rate' | sort Time | streamstats current=f window=1 first(rate) as prevRate | sort -Time | eval baselineRate=round((rate-prevRate)/60,2)
0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...