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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...