Splunk Search

Search to find Log Sources not reporting

lohit
Path Finder

Hello everyone,

I have around 20 forwarders (Universal) in my env and configued to forward data to Splunk Indexer. I would like to create a report which can show which all log sources have not reported for a specific time(say for last 3 days).

Please help me in this.

Tags (1)
0 Karma

kristian_kolb
Ultra Champion

Run the Deployment Monitor App. It will a) tell you, and b) let you configure alerting quite easily.

Otherwise you can do something like this;

| metadata type=sourcetypes | append  [|metadata type=sources] | append [|metadata type=hosts] 
| eval name=coalesce(source, sourcetype, host) 
| fields + recentTime name type 
| where recentTime < now()-10*86400 
| convert ctime(recentTime) | 

Just substitute the 10*86400 to whatever timespan you like - in this case it's 10 days ago.

/K

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...