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
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!

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Thanks for the Memories! Splunk University, .conf25, and our Community

Thank you to everyone in the Splunk Community who joined us for .conf25, which kicked off with our iconic ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...