Splunk Search

I want to calculate a difference between count columns and want to project the growth in the number of messages each mon

dhruvin24
New Member

dhruvin24_0-1627919474904.png

Here's my query and I want to calculate the difference between count (_raw) each month . It would be a running column so next month it would include the August month and then September and so on.. Can anyone please provide me solution to it ?

Labels (1)
0 Karma

dhruvin24
New Member

Thanks for the help.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

 

| stats count as current by date_month
| streamstats values(current) as previous window=1 current=f
| eval diff=current-previous

 

0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...