Alerting

Custom Alert condition search to report on indexed volume

apro
Path Finder

Hi,

Have scheduled a search to report on total daily indexed volume for all our servers.

Will like to create Custom Alert condition search to specify if I only want to receive an email notification if the total indexed volume hit certain percent of the license limit? say eg. 350MB out of 500MB?80% out of 100%..

Tags (1)
1 Solution

Lowell
Super Champion

Here is an example of a search that shows percentage of license use:

index=_internal sourcetype=splunkd LicenseManager-Audit todaysBytesIndexed licenseSize | eval todayMb=(todaysBytesIndexed/1048576) | eval percentUsed=round(100*todayMb/licenseSize,2)

For the purpose of an alert, you could add a custom alerting condition with the following expressions if you only want to be notified when your usage exceeds 80%.

where percentUsed>80

View solution in original post

Lowell
Super Champion

Here is an example of a search that shows percentage of license use:

index=_internal sourcetype=splunkd LicenseManager-Audit todaysBytesIndexed licenseSize | eval todayMb=(todaysBytesIndexed/1048576) | eval percentUsed=round(100*todayMb/licenseSize,2)

For the purpose of an alert, you could add a custom alerting condition with the following expressions if you only want to be notified when your usage exceeds 80%.

where percentUsed>80

beaumaris
Communicator

This works for pre-4.2 installations, but with 4.2 and license pooling the license_audit.log file always reports 0 for all the fields. How would you structure the search on a 4.2.X system that is configured for license pooling?

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