Splunk Search

Daily Average Count from the past 7 day period

jthomasc
Loves-to-Learn

Current query,  this shows the how many successful login attempts there have been.

index=abc granttype=mobile
| fields subjectid, message | search message="*Token Success*"
| stats count

I am now looking to create a panel to show the daily average amount of successful login attempts across 7 days. Is anyone able to help me with  query please? 


 

 

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @jthomasc ,

at first, put all the search terms in the main search to have more performant searches.

then you have to use the timechart command, something like this:

index=abc granttype=mobile message="*Token Success*"
| timechart span=1d avt(count) AS avg

Ciao.

Giuseppe

0 Karma

jthomasc
Loves-to-Learn

Thanks for your speedy response and for helping me out @gcusello . Unfortunately, the average does not seem to return for this, any idea why? 

I'm essentially trying to get a Status Indicator Panel for this stat, like shown below.

 

Capture.PNGCapture1.PNG

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...