Installation

Is this search accurate to measure how much data a search used in the past week?

daniel333
Builder

I have an event that is using X amount of space.

The search is:

index=network default send string

I'd like to search how many gigs of license this event is using over the last week. Anyway to do that with a search?

Labels (2)
0 Karma

hardikJsheth
Motivator

In case you want to search license usage by index, you can use following query. Replace the $index$ with the name of the index for which you want to find size.

index=_internal source=*license_usage.log* type=Usage pool="auto_generated_pool_enterprise" idx=$Index$ | eval UsageGB=b/1024/1024/1024 | timechart eval(round(sum(UsageGB),0)) as UG
0 Karma

daniel333
Builder

tried this, seem right?

index=* default send string
| eval b=len(_raw)
| stats sum(b) as mytotal
| eval mytotal = mytotal/1024/1024/2014

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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