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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...