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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...