Alerting

Is there a way to create an alert to notify us if the license is going to expire for a heavy forwarder?

kiran_mh
Explorer

Hi

Is there a way an alert can be created to notify us about the license expiration of a heavy forwarder?
For example, we want to get notified when the license for heavy forwarder is about to expire in say 30 days...?

0 Karma

somesoni2
Revered Legend

Do you've a separate license master OR each Heavy forwarder and Indexer in your setup has licenses installed in them?

0 Karma

kiran_mh
Explorer

We don't have a license master , each heavy forwarder have licenses installed in them itself....

0 Karma

ryanoconnor
Builder

The following search should be what you need:

|rest /services/licenser/licenses | search status=VALID label!="Splunk Forwarder" AND label!="Splunk Free" | eval time_to_expire(days)=(expiration_time - now())/86400 | table time_to_expire(days) | search "time_to_expire(days)"<30

Depending on how your licenses are set up, this may need to be modified slightly, but on a test instance with just one Splunk License installed, this works the way you'd expect.

0 Karma

kiran_mh
Explorer

thanks for your reply ryanoconnor.....but I m not getting results when I run the query

Currently we have 8 heavy forwarders and 1 deployment server in our instance, splunk cloud 6.4

0 Karma

ryanoconnor
Builder

Is the deployment server also a license master?

0 Karma

ryanoconnor
Builder

The search I provided you should be able to run directly from your license master (if you have one on prem) or if each Heavy Forwarder has it's own license installed, you could run it on each one. I would highly recommend setting up a license master if you don't have one already.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...