Alerting

Alert if Index is getting more than 10GB of incoming data

rashi83
Path Finder

I am using below query to find size of index , how can I modify it to alert me if index is getting more than 10 GB of incoming data

index=_internal [set_local_host] source=license_usage.log type="Usage" idx="*"| eval MB = round(b/1048576,2) | eval st_idx = st.": ".idx | timechart span=1d sum(MB) by st_idx | addtotals

Tags (1)
0 Karma
1 Solution

renjith_nair
SplunkTrust
SplunkTrust

@rashi83 ,

Set the time range according to your requirement (1 day, 6 hour,etc)

index=_internal [`set_local_host`] source=*license_usage.log type="Usage" idx="*"
|stats sum(b) as vol by idx | eval gb=round(vol/1073741824,2)
|where gb>=10
Happy Splunking!

View solution in original post

0 Karma

renjith_nair
SplunkTrust
SplunkTrust

@rashi83 ,

Set the time range according to your requirement (1 day, 6 hour,etc)

index=_internal [`set_local_host`] source=*license_usage.log type="Usage" idx="*"
|stats sum(b) as vol by idx | eval gb=round(vol/1073741824,2)
|where gb>=10
Happy Splunking!
0 Karma

rashi83
Path Finder

thank you

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