Splunk Search

Using StreamStats/Other commands

rsathish47
Contributor

Hi All,
I have data like following in need to get the differents count. Count will get reset in certain time period. Please help

Expample Data

Time Count Server

1 0 A

1 2 B

1 8 C

1 1 D

2 2 A

2 4 B

2 0 C

2 2 D

3 2 A

3 2 B

3 14 C

3 8 D

Result Table

A =2

B = 4

C= 14

D= 7

Thanks
Sathish

Tags (2)
0 Karma
1 Solution

Ayn
Legend

Not sure why you'd need streamstats. streamstats does not have a time-based window parameter, only number of events.

You could simply do

... | stats range(Count) as diff by Server

View solution in original post

Ayn
Legend

Not sure why you'd need streamstats. streamstats does not have a time-based window parameter, only number of events.

You could simply do

... | stats range(Count) as diff by Server
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...