|
Hi, just wanted to share my efforts so far regarding an alert for predicting license violations. I've formulated a search that will look at the license_usage.log and do some math depending on the time of day, in order to predict if there is a risk that there will be a license violation before the end of the day. However, I've only had a fairly simple installation (1 search head, 2 indexers and only the The search will set the Violation_Risk to "Yes" if you have more time than license space left at the time the search is run, e.g. if you have used up 53% of your license volume by 12 AM (noon, lunch, whatever you call it), the violation risk is set to "Yes", since you have less than half of the license volume left, but still have half a day (12 hours) to go before the license counter is reset.
The output will look something like this.
You can/should set a scheduled search to run this query... say every hour, with the Custom Condition Search set to
This will also give you an alert if the usage exceeds some value of your choice, in this case 90, regardless of how much time is left before midnight. Feel free to suggest improvements - especially if you have a more complicated setup license wise (stacks, pools, whatnot). Notes:
Hope anyone finds this useful. Kristian |

I'm guessing it gets its values from the licensing REST endpoints (http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTlicense ).