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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...