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

usup_rajbahak
Path Finder

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

Thanks again

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...