Splunk Enterprise Security

Query for data sources not reporting an event in a specific time period.

staparia
Explorer

Hi,

I would request a query where if a log source has stopped sending an event to splunk for a specific time period, it should alert me.

Example index=proxy sourcetype=test_5 not giving any result for last 15 mins.

0 Karma

paramagurukarth
Builder
index=*| stats count as event_count by sourcetype |append[|metadata type=sourcetypes index=* OR index=_*| eval event_count=coalesce(event_count, 0) | table sourcetype,event_count] | where event_count = 0
0 Karma

renjith_nair
Legend

@staparia ,

index=proxy sourcetype=test_5 earliest=-15m|stats count|where count > 0

Set an alert for 'No of events is less than 0'

Happy Splunking!
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...