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!

Enterprise Security Content Update (ESCU) | New Releases

In September, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...

New in Observability - Improvements to Custom Metrics SLOs, Log Observer Connect & ...

The latest enhancements to the Splunk observability portfolio deliver improved SLO management accuracy, better ...

Improve Data Pipelines Using Splunk Data Management

  Register Now   This Tech Talk will explore the pipeline management offerings Edge Processor and Ingest ...