Getting Data In

email alert when index size reaches certain size

usup_rajbahak
Path Finder

Hello,

I can view the current size of an Index by going to the Indexes tab under Manager, but I'd like to be emailed if an index reaches or crosses certain size. This will hopefully help me keep track of the index size. How can I achieve this?

Thanks a lot
Usup

Tags (2)
0 Karma

usup_rajbahak
Path Finder

thanks for the quick reply. This will work just fine 🙂

Thanks again

0 Karma

somesoni2
Revered Legend

You can get the current index size using "eventcount" search command. Use following search to get the current index size and add where clause for your threshold index size and set this as a schedule search with alert action as email.

 | eventcount summarize=false report_size=true index=YourIndex  | eval size_MB=size_bytes/(1024*1024) | eval size_GB=size_MB/1024 | where size_GB > YourThresholdValue

usup_rajbahak
Path Finder

thanks for the quick reply. This will work just fine 🙂

Thanks again

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