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!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...