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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...