Getting Data In

email alert when index size reaches certain size

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

Path Finder

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

Thanks again

0 Karma

SplunkTrust
SplunkTrust

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

Path Finder

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

Thanks again

0 Karma