Splunk Search

How to calculate diff of two values of same column

sudeep5689
Explorer

I have a table:
Month Transactions
Mar 2000
April 3000

I want to display the difference of April - May and also the % reduction in Splunk. Is there a way to do that

Tags (2)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @sudeep5689,
you can use the delta command:

your_search
| timechart span=1mon count
| delta count AS countdiff
| eval perc=countdiff/count*100

Ciao.
Giuseppe

0 Karma

sudeep5689
Explorer

It didnt worked out

0 Karma
Get Updates on the Splunk Community!

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...