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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...