Splunk Search

Get total events for the last 1 month, 1 week and 1 day

ndkhoiits
Explorer

I need a statistic which show total events in 1 month, 1 week and 1 day and create a dashboard, for example column chart which has 3 columns, first for total request in 1 month, second for 1 week and third for 1 day.

How to do that in splunk

Tags (1)
0 Karma

somesoni2
Revered Legend

Try this

index=yourindex earliest=-30d@d | stats count as LastMonth | appendcols [search index=yourindex  earliest=-7d@d | stats count as LastWeek] | appendcols [search index=yourindex earliest=-1d@d | stats count as LastDay]
0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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