Splunk Search

Forwarder Phone Home last day

mwdbhyat
Builder

Hi there,

How would I set up a table to find out which forwarders have not phoned home in the last day ? I am currently using this REST search for other related activity:

-index=_internal group=tcpin_connections | join hostname [| rest /services/deployment/server/clients splunk_server=* | eval lastPhoneHome=tostring(now()-lastPhoneHomeTime,"duration")

Thanks!

0 Karma

gcusello
SplunkTrust
SplunkTrust

You have to create a lookup (e.g.: Perimeter.csv) with all the servers of you perimeter (manually or with an outputlookup night batch) and use it to verify the connected forwarders, something like this:
| inputlookup Perimeter.csv | eval count=0 | eval host=upper(host) | append [ |metasearch index=_internal | eval host=upper(host)
| stats count by host ] | stats sum(count) AS Somma by host | rangemap field=Somma severe=0-0 low=1-1000000000 default=severe | table host range | sort host

using rangemap you can shot result with a graphic icon (see Dashboard Examples)

Bye.

Giuseppe

0 Karma

gcusello
SplunkTrust
SplunkTrust

if you're satisfied of the answer, please, accept the answer.
Bye.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud  In today’s fast-paced digital ...

Observability protocols to know about

Observability protocols define the specifications or formats for collecting, encoding, transporting, and ...

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...