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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...