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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...