Alerting

How to configure a real-time alert to only alert once?

saifuddin9122
Path Finder

Hello All

i'm trying to configure real time alerts for license usage which alerts my me only once if the below condition meets

only one alert if X is greater than 80 and less than 90.
only one alert if X is greater than 90 and less than 95.
only one alert if X is greater than 95.

how should i do this. please can any one help me in it

0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

I would suggest creating a regular scheduled alert (if you want to be notified sooner, have the small frequency like every 5 min or 2-59/* * * * * i.e. every 5 min starting at 2 min so 2, 7, 12,17...) and setup appropriate throttle period so that you're not alerted again (say throttle for 6 or 8 hours). Search that you can use (setup alert on license master splunk instance)

index=_internal source=*license_usage.log type=Usage earliest=@d latest=now
  | stats sum(b) as Usage | eval Usage=round(b/1024/1024/1024,2)
 | appendcols [ 
    | rest splunk_server=local /services/licenser/stacks 
    | stats max(quota) as quota
    | eval quota=round(quota/1024/1024/1024,2)
 ]
 | where Usage > 0.8*quota

View solution in original post

0 Karma

somesoni2
SplunkTrust
SplunkTrust

I would suggest creating a regular scheduled alert (if you want to be notified sooner, have the small frequency like every 5 min or 2-59/* * * * * i.e. every 5 min starting at 2 min so 2, 7, 12,17...) and setup appropriate throttle period so that you're not alerted again (say throttle for 6 or 8 hours). Search that you can use (setup alert on license master splunk instance)

index=_internal source=*license_usage.log type=Usage earliest=@d latest=now
  | stats sum(b) as Usage | eval Usage=round(b/1024/1024/1024,2)
 | appendcols [ 
    | rest splunk_server=local /services/licenser/stacks 
    | stats max(quota) as quota
    | eval quota=round(quota/1024/1024/1024,2)
 ]
 | where Usage > 0.8*quota
0 Karma
Get Updates on the Splunk Community!

Starting With Observability: OpenTelemetry Best Practices

Tech Talk Starting With Observability: OpenTelemetry Best Practices Tuesday, October 17, 2023   |  11AM PST / ...

.conf23 | Get Your Cybersecurity Defense Analyst Certification in Vegas

We’re excited to announce a new Splunk certification exam being released at .conf23! If you’re going to Las ...

Streamline Data Ingestion With Deployment Server Essentials

REGISTER NOW! Every day the list of sources Admins are responsible for gets bigger and bigger, often making ...