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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...