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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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