<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why does checking the status of a forwarder make the forwarder stop running? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-checking-the-status-of-a-forwarder-make-the-forwarder/m-p/208839#M41132</link>
    <description>&lt;P&gt;I would like to see what Linux script you are using which leads to stopping the forwarder and also you can configure the alert via splunk listing all the hosts if you have admin access you can search _internal logs with the hosts and check for the heartbeat delay .&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jan 2020 09:13:15 GMT</pubDate>
    <dc:creator>amrit6109</dc:creator>
    <dc:date>2020-01-07T09:13:15Z</dc:date>
    <item>
      <title>Why does checking the status of a forwarder make the forwarder stop running?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-checking-the-status-of-a-forwarder-make-the-forwarder/m-p/208837#M41130</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have multiple Splunk forwarders in my setup. I am writing a script in which I need to check if Splunk forwarders are up and running. &lt;/P&gt;

&lt;P&gt;I am executing this script from a remote machine but I am getting unexpected behavior. Like sometimes checking the status stops the Splunk Forwarder.&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;bash$ ./splunkforwarder2/bin/splunk status
splunkd is running (PID: 20365).

bash$ ./splunkforwarder2/bin/splunk status
splunkd 11412 was not running.
Stopping splunk helpers...
                                                           [  OK  ]
Done.
Stopped helpers.
Removing stale pid file... done.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there any alternate way in which I can find out what specific forwarder is up and running?&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Ankit&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 15:47:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-checking-the-status-of-a-forwarder-make-the-forwarder/m-p/208837#M41130</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2016-09-21T15:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why does checking the status of a forwarder make the forwarder stop running?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-checking-the-status-of-a-forwarder-make-the-forwarder/m-p/208838#M41131</link>
      <description>&lt;P&gt;You could insert the list of your forwarder in a lookup and then run a search like this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup perimeter.csv | eval count=0 | eval host=upper(host)| append [ search index=_internal | eval host= upper(host) | stats count by host ] | stats sum(count) AS total by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this way hosts with total=0 are missing&lt;BR /&gt;
I usually have an alert to check this.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 16:24:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-checking-the-status-of-a-forwarder-make-the-forwarder/m-p/208838#M41131</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-09-21T16:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why does checking the status of a forwarder make the forwarder stop running?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-checking-the-status-of-a-forwarder-make-the-forwarder/m-p/208839#M41132</link>
      <description>&lt;P&gt;I would like to see what Linux script you are using which leads to stopping the forwarder and also you can configure the alert via splunk listing all the hosts if you have admin access you can search _internal logs with the hosts and check for the heartbeat delay .&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 09:13:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-checking-the-status-of-a-forwarder-make-the-forwarder/m-p/208839#M41132</guid>
      <dc:creator>amrit6109</dc:creator>
      <dc:date>2020-01-07T09:13:15Z</dc:date>
    </item>
  </channel>
</rss>

