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!

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...