Getting Data In

What options are there to find if a forwarder has stopped sending data to our Splunk server?

sunnyparmar
Communicator

Hi,

Is there any way or any work around or any app through which I can know if Splunk stop receiving data from the forwarders side that have been installed on the machines? Kindly suggest for this please.

Thanks

1 Solution

bevant
Explorer

Something like this:

| metadata type=hosts | eval secs_since_last_saw=now()-lastTime

Will give you a field that is the number of seconds since an event was seen from the host, so a "| where secs_since_last_saw > N" where N is the number of seconds you're willing to wait for them, might be a starting point.

Obviously you don't even need the eval, I just put it there to help explain the point...

View solution in original post

ChrisG
Splunk Employee
Splunk Employee

Use the Distributed Management Console. It has a dashboard about deployed forwarders that will tell you whether they are active or missing. See About the Distributed Management Console in the Distributed Management Console Manual.

hexx
Splunk Employee
Splunk Employee

Note that the DMC also comes with a built in alert to proactively detect missing forwarders - see http://docs.splunk.com/Documentation/Splunk/6.3.0/DMC/Platformalerts

bevant
Explorer

Something like this:

| metadata type=hosts | eval secs_since_last_saw=now()-lastTime

Will give you a field that is the number of seconds since an event was seen from the host, so a "| where secs_since_last_saw > N" where N is the number of seconds you're willing to wait for them, might be a starting point.

Obviously you don't even need the eval, I just put it there to help explain the point...

sunnyparmar
Communicator

thanks for replying but as i am executing the query it is giving me the data something like below with eval command. With this if i am running with where it is not giving the result so could you please elaborate more here.

firstTime host lastTime recentTime secs_since_last_saw totalCount type
1442244251 10.0.28.1 1442321750 1442321750 3194718 58509793 hosts

thanks

0 Karma

esix_splunk
Splunk Employee
Splunk Employee

You now need to convert those times from epoch to human readable

.. | convert ctime(firstTime) ctime(lastTime) ctime(recentTime) 
0 Karma

sunnyparmar
Communicator

thanks a ton buddy..

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...