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!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...