Getting Data In

How to alert when a forwarder is not sending logs by source type?

kiran331
Builder

Hi

How to alert when a host is not sending logs by source type? For now, I'm using the below search for hosts not reporting, but a when a single source of host is not reporting, how do I alert on that? Any suggestions?

Search I'm using now:

| metadata type=hosts | where recentTime < now() - 10800| eval lastSeen = strftime(recentTime, "%F %T") | fields + host lastSeen
0 Karma

somesoni2
Revered Legend

Give this a try

| tstats max(_time) as recentTime WHERE index=* sourcetype="PutYourSourceTypeHere" by host  | where recentTime < now() - 10800| eval lastSeen = strftime(recentTime, "%F %T") | fields + host lastSeen
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, ...