Alerting

Dynamically updated alert search

hartfoml
Motivator

I am running a port monitoring app using NMAP that record system availability

If this stops it makes my system availability stats wrong

I would like to create and alert that will tell me if this is not working.

Not too hard but I would like the alert to be dynamic and adjust for the number of systems I am monitoring.

Right now I have 60 systems monitored every minute so ( 60*60 ) or 3600 events per hour

So I can set an alert for less than 3600 event but if I add a system, the alert should go up or ( 61*60 ) trigger = 3660 per hour

How do I write the alert to have dynamic triggers?

Tags (2)
0 Karma
1 Solution

kristian_kolb
Ultra Champion

If your nmap application writes one event per monitored port per minute, and you'd like to find out if the port monitoring app itself has crashed, you could simply have a scheduled search that will detect if the logs stop coming in completely.

<your source/sourcetype> earliest=-1m 

with the alert triggering set on the condition "number of events = 0"

Have I understood your problem correctly? Is this a viable solution?

/kristian

View solution in original post

kristian_kolb
Ultra Champion

If your nmap application writes one event per monitored port per minute, and you'd like to find out if the port monitoring app itself has crashed, you could simply have a scheduled search that will detect if the logs stop coming in completely.

<your source/sourcetype> earliest=-1m 

with the alert triggering set on the condition "number of events = 0"

Have I understood your problem correctly? Is this a viable solution?

/kristian

kristian_kolb
Ultra Champion

You are most welcome

/k

0 Karma

hartfoml
Motivator

I'm sorry I was looking for one kind of answer and you gave me the right one. It was not what I expected so I thought it must be wrong. I was looking for a way to alert on the input not the monitoring. I have setup an alert like you have suggested above and this will do what I wanted. Thanks for the help I really appreciate it.

0 Karma

kristian_kolb
Ultra Champion

Sorry, I thought you wanted to monitor availability in splunk, and also monitor the status of the monitoring application itself - and that it was the latter problem you wanted help with. I still don't know really what you want to perform.

/k

0 Karma

hartfoml
Motivator

Thanks for answering I really appreciate your participation and trying to help. I can't monitor the log inputs because some of the clients are quit for longer than a minute and I wanted to get a one minute interval to monitor availability.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Meet the .conf26 AI Agent Buildathon Winners

At the .conf26 AI Agent Buildathon, Splunk users turned their operational expertise into working AI agents ...

Trusted Autonomy in the SOC: A Maturity Journey

AI is compressing attacker timelines and pushing SOC teams beyond human capacity thresholds. The next SOC ...

Supercharging Windows Security Detection Performance: Introducing Hybrid Field ...

Windows event logs—from Security auditing and Sysmon to PowerShell script blocks—form the operational backbone ...