<?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: universal forwarder deployment on a windows fails? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-deployment-on-a-windows-fails/m-p/115887#M24217</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I suggest you to rise the logging level for TcpOutputProc. You can do this using web interface or editing "log.cfg" directly (in this case, changes will persist even when you restart Splunk). More details available &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Troubleshooting/Enabledebuglogging#Enable_debug_logging_for_a_specific_processor_within_splunkd.log"&gt;here&lt;/A&gt;. Could you send some logs, when you have changed this configuration?&lt;/P&gt;

&lt;P&gt;In the past I saw some similar connection problems due to SSL misconfigurations in Splunk-to-Splunk connections (i.e. forwarder uses SSL, while indexer does not, or vice-versa). However I must say that it does not look your case.&lt;/P&gt;

&lt;P&gt;Could you please try to run the following commands and send resulting output?&lt;/P&gt;

&lt;P&gt;On the Universal Forwarder:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;splunk cmd btool server list --debug&lt;/LI&gt;
&lt;LI&gt;splunk cmd btool outputs list --debug&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;On the Indexer:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;splunk cmd btool server list --debug&lt;/LI&gt;
&lt;LI&gt;splunk cmd btool inputs list --debug&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Mon, 02 Feb 2015 09:47:19 GMT</pubDate>
    <dc:creator>mas</dc:creator>
    <dc:date>2015-02-02T09:47:19Z</dc:date>
    <item>
      <title>universal forwarder deployment on a windows fails?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-deployment-on-a-windows-fails/m-p/115884#M24214</link>
      <description>&lt;P&gt;Hi users,&lt;/P&gt;

&lt;P&gt;I recently installed universal forwarder on a Windows machine, aiming to forward logs from there to the Splunk Enterprise server instance that we have.&lt;/P&gt;

&lt;P&gt;All went good during the installation, but for some reason I can't see any logs on Splunk. After some reasearching here and there, I found that actually, forwarder establishes a TCP connection with Splunk on the defined receiving port (9998 as I configured) and that is how logs are forwarded (as opposed to syslog which is a one way communication).&lt;/P&gt;

&lt;P&gt;So, I did netstat on the forwarder to identify connections and I found that forwarder indeed has connection to the Splunk server on 9998, but this closes every some seconds forcing it to create a new socket again and again.&lt;/P&gt;

&lt;P&gt;My questions are:&lt;/P&gt;

&lt;P&gt;1) Would that this be a problem as to why I am not seeing any logs on Splunk? Could be possibly some kind of attributes negotiated on TCP that do not fulfill both sides? Is port 9998 the only one needed for that communication or another port is opened in the meanwhile.&lt;/P&gt;

&lt;P&gt;Facts:&lt;/P&gt;

&lt;P&gt;1) While installing forwarder, I chose it to send all the logs on the receiving end.&lt;BR /&gt;
2) Port 9998 as you can assume is open on the firewalls since TCP connection is established.&lt;BR /&gt;
3) On the Splunk server side, receiving port 9998 is enabled.&lt;/P&gt;

&lt;P&gt;I am sure that is something very simple, but if you could please give a hint to go forward with that I would be grateful.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Evang&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2015 10:55:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-deployment-on-a-windows-fails/m-p/115884#M24214</guid>
      <dc:creator>evang_26</dc:creator>
      <dc:date>2015-01-30T10:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: universal forwarder deployment on a windows fails?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-deployment-on-a-windows-fails/m-p/115885#M24215</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;Some questions to start troubleshooting.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;In the log of the Universal Forwarder ($SPLUNK_HOME/var/logs/splunk/splunkd.log), do you see any TcpOut errors occurring periodically, with the same frequency connection attempts are made?&lt;/LI&gt;
&lt;LI&gt;Have you configured Splunk to use SSL connections for data forwarding/receiving (on the Universal Forwarder/Indexer)?&lt;/LI&gt;
&lt;LI&gt;When you say &lt;EM&gt;"On the Splunk server side, receiving port 9998 is enabled"&lt;/EM&gt;, do you mean that TCP port is open? Or do you mean you have configured Splunk receiving on port 9998?&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 30 Jan 2015 15:10:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-deployment-on-a-windows-fails/m-p/115885#M24215</guid>
      <dc:creator>mas</dc:creator>
      <dc:date>2015-01-30T15:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: universal forwarder deployment on a windows fails?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-deployment-on-a-windows-fails/m-p/115886#M24216</link>
      <description>&lt;P&gt;Hi Mas,&lt;/P&gt;

&lt;P&gt;Thanks for getting back to me.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;I am getting these TcpOut errors, and yes they occur on the same frequency as the connection attempts:&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;17:32:48.860 +0000 INFO  loader - Limiting REST HTTP server to 682 threads&lt;BR /&gt;
17:32:49.282 +0000 INFO  TcpOutputProc - Connected to idx=x.x.x.x:9998&lt;BR /&gt;
17:41:48.551 +0000 INFO  TcpOutputProc - Detected idx=x.x.x.x:9998 shutting down&lt;BR /&gt;
17:41:48.551 +0000 INFO  TcpOutputProc - Will close stream to current indexer x.x.x.x:9998&lt;BR /&gt;
17:41:48.551 +0000 INFO  TcpOutputProc - Closing stream for idx=x.x.x.x:9998&lt;BR /&gt;
17:42:08.536 +0000 WARN  TcpOutputProc - Raw connection to ip=x.x.x.x:9998 timed out&lt;BR /&gt;
17:42:08.536 +0000 INFO  TcpOutputProc - Ping connection to idx=x.x.x.x:9998 timed out. continuing connections&lt;BR /&gt;
17:42:08.927 +0000 WARN  TcpOutputProc - Cooked connection to ip=x.x.x.x:9998 timed out&lt;BR /&gt;
17:42:21.912 +0000 INFO  TcpOutputProc - Connected to idx=x.x.x.x:9998&lt;BR /&gt;
17:45:18.573 +0000 INFO  TcpOutputProc - Detected idx=x.x.x.x:9998 shutting down&lt;BR /&gt;
17:45:18.573 +0000 INFO  TcpOutputProc - Closing stream for idx=x.x.x.x:9998&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;No I haven't done that &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;I mean that I configured the Splunk receiving port. TCP port should be open though since I have a connection established (I hope I am right though).&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Is there anything that I could do to overcome this?&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Evang&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2015 18:06:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-deployment-on-a-windows-fails/m-p/115886#M24216</guid>
      <dc:creator>evang_26</dc:creator>
      <dc:date>2015-01-30T18:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: universal forwarder deployment on a windows fails?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-deployment-on-a-windows-fails/m-p/115887#M24217</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I suggest you to rise the logging level for TcpOutputProc. You can do this using web interface or editing "log.cfg" directly (in this case, changes will persist even when you restart Splunk). More details available &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Troubleshooting/Enabledebuglogging#Enable_debug_logging_for_a_specific_processor_within_splunkd.log"&gt;here&lt;/A&gt;. Could you send some logs, when you have changed this configuration?&lt;/P&gt;

&lt;P&gt;In the past I saw some similar connection problems due to SSL misconfigurations in Splunk-to-Splunk connections (i.e. forwarder uses SSL, while indexer does not, or vice-versa). However I must say that it does not look your case.&lt;/P&gt;

&lt;P&gt;Could you please try to run the following commands and send resulting output?&lt;/P&gt;

&lt;P&gt;On the Universal Forwarder:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;splunk cmd btool server list --debug&lt;/LI&gt;
&lt;LI&gt;splunk cmd btool outputs list --debug&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;On the Indexer:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;splunk cmd btool server list --debug&lt;/LI&gt;
&lt;LI&gt;splunk cmd btool inputs list --debug&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 02 Feb 2015 09:47:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-deployment-on-a-windows-fails/m-p/115887#M24217</guid>
      <dc:creator>mas</dc:creator>
      <dc:date>2015-02-02T09:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: universal forwarder deployment on a windows fails?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-deployment-on-a-windows-fails/m-p/115888#M24218</link>
      <description>&lt;P&gt;Hi mas,&lt;/P&gt;

&lt;P&gt;Many thanks for your suggestion. Much appreciated.&lt;/P&gt;

&lt;P&gt;The way I solved this out finally is very simple.&lt;/P&gt;

&lt;P&gt;1) I downloaded the Splunk_TA_Windows from here: &lt;A href="https://apps.splunk.com/app/742/" target="_blank"&gt;https://apps.splunk.com/app/742/&lt;/A&gt; &lt;BR /&gt;
2) I extracted it&lt;BR /&gt;
3) I put the extracted folder into the C:\Program Files\SplunkUniversalForwarder\etc\apps folder&lt;BR /&gt;
4) Then I just enabled the logs that I was interested in by playing with the inputs.conf file under C:\Program Files\SplunkUniversalForwarder\etc\apps\Splunk_TA_Windows\default&lt;BR /&gt;
5) Finally, from the CLI and while being on the SplunkUniversalForwarder\bin file, I ran splunkd.exe restart.&lt;/P&gt;

&lt;P&gt;It worked like a charm!&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Evang&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:57:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-deployment-on-a-windows-fails/m-p/115888#M24218</guid>
      <dc:creator>evang_26</dc:creator>
      <dc:date>2020-09-28T18:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: universal forwarder deployment on a windows fails?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-deployment-on-a-windows-fails/m-p/115889#M24219</link>
      <description>&lt;P&gt;Has it ever been able to send logs to your indexers? If not, verify that your universal fowarder can:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; telnet splunkservername 9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If that is successful, rule out slow/problematic dns resolutions by configuring your hosts file to map that server name to its IP. Report back after ruling these out. If you try both of these and there are still issues, chances are the problem is on the indexer and not your client sending data. You can also try setting connection_host=false in your inputs.conf for the 9997 stanza, making sure the indexer isn't trying to resolve the name of the forwarder. &lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 13:30:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/universal-forwarder-deployment-on-a-windows-fails/m-p/115889#M24219</guid>
      <dc:creator>risgupta_splunk</dc:creator>
      <dc:date>2016-12-13T13:30:52Z</dc:date>
    </item>
  </channel>
</rss>

