Getting Data In

How do we determine whether a forwarder phoned home recently?

ddrillic
Ultra Champion

Is there a rest call to figure out whether a forwarder phoned home in the past hour? We would like to run this call against a list of servers.

Tags (3)
0 Karma
1 Solution

mattymo
Splunk Employee
Splunk Employee

Try this search on against your DS, or use the CLI version (http://docs.splunk.com/Documentation/Splunk/6.6.0/RESTREF/RESTdeploy#deployment.2Fserver.2Fclients):

| rest /services/deployment/server/clients

It will give you some great info about your forwarders which you could then subsearch against to look for your forwarders calling home to the DS.

Mainly you will want lastPhoneHomeTime with with a lil eval to determine if they haven't phone home in n minutes. This example uses 900 secons aka 15 mins:

| rest /services/deployment/server/clients
| fields hostname lastPhoneHomeTime
| eval status = if(lastPhoneHomeTime < (now() - 900), "missing", "active")

Obviously if you have a large number of forwarders you will want to filter down by name (https://:/services/deployment/server/clients/{name})

This is all to look for UF to DS communication. If you are actually looking for UF connecting to IDX, then please use the Monitoring Console forwarder management options.

- MattyMo

ddrillic
Ultra Champion

Perfect - thank you.

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...