Splunk Search

How to search for all Indexes and sort by amount indexed per day / license ?

shandman
Path Finder

I'm trying to write a search where I can list all indexes in our Splunk environment, and ingestion rate per day. i.e. license usage.

0 Karma
1 Solution

cpetterborg
SplunkTrust
SplunkTrust

I have a "chargeback" dashboard that does this. We do it by index (sometimes combining a couple of them per customer), but I think it is what you want. You should be able to do something like this:

index=_internal source=*license_usage.log type="Usage" | stats sum(b) as b by idx | eval GB=(b/1024/1024/1024) | sort -GB | fields - b

View solution in original post

shandman
Path Finder

This is perfect! Thank you! I just need to get results back from the search now... ideas?

0 Karma

cpetterborg
SplunkTrust
SplunkTrust

I have a "chargeback" dashboard that does this. We do it by index (sometimes combining a couple of them per customer), but I think it is what you want. You should be able to do something like this:

index=_internal source=*license_usage.log type="Usage" | stats sum(b) as b by idx | eval GB=(b/1024/1024/1024) | sort -GB | fields - b
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 ...