<?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: Windows 2008R2 Universal Forwarder &amp;quot;Could not send data&amp;quot;. How to configure outputs.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Windows-2008R2-Universal-Forwarder-quot-Could-not-send-data-quot/m-p/124610#M25679</link>
    <description>&lt;P&gt;First, can the forwarders resolve  splunksvr.intranet.local?  You might try using an ip address instead of a hostname just to rule that out.&lt;/P&gt;

&lt;P&gt;I have a  virtual development environment and my outputs.conf looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
indexAndForward = false
autoLB = true
defaultGroup = my_indexers

[tcpout:my_indexers]
server =10.0.0.1:9997, 10.0.0.2:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That's basically may way of saying, I can't swear what you have is wrong, but here's another suggestion.  &lt;/P&gt;

&lt;P&gt;Honestly, Splunk on Windows isn't that different from Splunk on Unix, so make sure your &lt;CODE&gt;outputs.conf&lt;/CODE&gt; matches theirs (assuming you want it to do the same thing and they aren't using syslog) and you should be good to go.   Just as a point on reference, we push the same enable_outputs app from our deployment server to both Windows and Unix systems&lt;/P&gt;

&lt;P&gt;In terms of knowing which config files Splunk is looking at, the config files get merged: &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/system/default&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/apps&lt;/CODE&gt; (in alphabetical order)&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/system/local&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;If you want to see what a merged configuration looks like you can use btool (assuming &lt;CODE&gt;C:\Program Files\SplunkUniversalForwarder&lt;/CODE&gt; is the installation directory:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"C:\Program Files\SplunkUniversalForwarder\bin\splunk.exe" btool outputs list
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you have outputs.conf in &lt;CODE&gt;$SPLUNK_HOME/etc/apps&lt;/CODE&gt; make sure that it follows the app folder structure (so &lt;CODE&gt;outputs.conf&lt;/CODE&gt; should be in &lt;CODE&gt;$SPLUNK_HOME/etc/apps/app-name/local&lt;/CODE&gt; or &lt;CODE&gt;$SPLUNK_HOME/etc/apps/app-name/default&lt;/CODE&gt;) and you need to have a metadata directory with a default.meta file.  While its a bit more work to do it as an app, it lets you easily update things from a deployment server in the future.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Sep 2014 13:57:11 GMT</pubDate>
    <dc:creator>triest</dc:creator>
    <dc:date>2014-09-15T13:57:11Z</dc:date>
    <item>
      <title>Windows 2008R2 Universal Forwarder "Could not send data". How to configure outputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-2008R2-Universal-Forwarder-quot-Could-not-send-data-quot/m-p/124609#M25678</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm new to Splunk and I'm trying to set up a Universal Forwarder to forward some data to our Splunk server.&lt;BR /&gt;
The guys who set up our present Splunk svr can't really help me as they've so far only used Splunk on *ix environment and this is the first UF on a Windows server.&lt;/P&gt;

&lt;P&gt;I'm trying to get the UF to forward events that are periodically saved in data-files in a specific directory to our Splunk server.&lt;/P&gt;

&lt;P&gt;Source data directory is : C:/datafile/&lt;/P&gt;

&lt;P&gt;Destination server is : splunksvr.intranet.local&lt;/P&gt;

&lt;P&gt;I installed the forwarder using the splunkforwarder-5.0.8-201809-x64-release.msi.&lt;BR /&gt;
I can see a lot of things in the logs, but I don't know how to make much sense of some of it.&lt;/P&gt;

&lt;P&gt;I found this in splunkd.log&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;09-15-2014 11:48:11.371 +0200 ERROR TcpOutputProc - **LightWeightForwarder/UniversalForwarder not configured. Please configure outputs.conf.** 
09-15-2014 11:48:16.441 +0200 INFO  TailingProcessor - Could not send data to output queue (parsingQueue), retrying...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;One problem is, there are several "outputs.conf", so how do I know which one it's looking for? &lt;/P&gt;

&lt;P&gt;I configured "${installdir}/etc/system/local/outputs.conf"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = default-autolb-group

[tcpout:default-autolb-group]
server = splunksvr.intranet.local:9997

[tcpout-server://splunksvr.intranet.local:9997]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There are others in "${installdir}/etc/system/default" and I don't know where else right now.&lt;/P&gt;

&lt;P&gt;I also found an app.conf in "${installdir}//etc/apps/MSICreated/local/"&lt;/P&gt;

&lt;P&gt;I've read the doc&amp;amp;help, tried the kb and also here but I couldn't find a solution.&lt;/P&gt;

&lt;P&gt;I'd appreciate any help.&lt;/P&gt;

&lt;P&gt;Serge&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2014 13:12:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-2008R2-Universal-Forwarder-quot-Could-not-send-data-quot/m-p/124609#M25678</guid>
      <dc:creator>macser</dc:creator>
      <dc:date>2014-09-15T13:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Windows 2008R2 Universal Forwarder "Could not send data". How to configure outputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-2008R2-Universal-Forwarder-quot-Could-not-send-data-quot/m-p/124610#M25679</link>
      <description>&lt;P&gt;First, can the forwarders resolve  splunksvr.intranet.local?  You might try using an ip address instead of a hostname just to rule that out.&lt;/P&gt;

&lt;P&gt;I have a  virtual development environment and my outputs.conf looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
indexAndForward = false
autoLB = true
defaultGroup = my_indexers

[tcpout:my_indexers]
server =10.0.0.1:9997, 10.0.0.2:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That's basically may way of saying, I can't swear what you have is wrong, but here's another suggestion.  &lt;/P&gt;

&lt;P&gt;Honestly, Splunk on Windows isn't that different from Splunk on Unix, so make sure your &lt;CODE&gt;outputs.conf&lt;/CODE&gt; matches theirs (assuming you want it to do the same thing and they aren't using syslog) and you should be good to go.   Just as a point on reference, we push the same enable_outputs app from our deployment server to both Windows and Unix systems&lt;/P&gt;

&lt;P&gt;In terms of knowing which config files Splunk is looking at, the config files get merged: &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/system/default&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/apps&lt;/CODE&gt; (in alphabetical order)&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/system/local&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;If you want to see what a merged configuration looks like you can use btool (assuming &lt;CODE&gt;C:\Program Files\SplunkUniversalForwarder&lt;/CODE&gt; is the installation directory:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"C:\Program Files\SplunkUniversalForwarder\bin\splunk.exe" btool outputs list
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you have outputs.conf in &lt;CODE&gt;$SPLUNK_HOME/etc/apps&lt;/CODE&gt; make sure that it follows the app folder structure (so &lt;CODE&gt;outputs.conf&lt;/CODE&gt; should be in &lt;CODE&gt;$SPLUNK_HOME/etc/apps/app-name/local&lt;/CODE&gt; or &lt;CODE&gt;$SPLUNK_HOME/etc/apps/app-name/default&lt;/CODE&gt;) and you need to have a metadata directory with a default.meta file.  While its a bit more work to do it as an app, it lets you easily update things from a deployment server in the future.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2014 13:57:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-2008R2-Universal-Forwarder-quot-Could-not-send-data-quot/m-p/124610#M25679</guid>
      <dc:creator>triest</dc:creator>
      <dc:date>2014-09-15T13:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Windows 2008R2 Universal Forwarder "Could not send data". How to configure outputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-2008R2-Universal-Forwarder-quot-Could-not-send-data-quot/m-p/124611#M25680</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;
1. Splunk has precedence option:&lt;BR /&gt;
&lt;STRONG&gt;system/Local --&amp;gt; App/local --&amp;gt; App/default --&amp;gt; system/default&lt;/STRONG&gt;.&lt;BR /&gt;
so place ur configurations in etc/system/Local and splunk will consider it on priority.&lt;BR /&gt;
&lt;EM&gt;**Never edit any DEFAULT.CONF files&lt;/EM&gt;*.&lt;BR /&gt;
if you don't have local.conf ,then create it..&lt;/P&gt;

&lt;P&gt;2 . Use &lt;STRONG&gt;btool&lt;/STRONG&gt; commant to know from which locationS outputs.conf are considered&lt;BR /&gt;
$SPLUNK_HOME/bin &amp;gt; ./splunk cmd btool props list --debug&lt;BR /&gt;
                                      ./splunk cmd btool outputs list --debug&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Troubleshooting/Usebtooltotroubleshootconfigurations"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Troubleshooting/Usebtooltotroubleshootconfigurations&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;3 . outputs.conf:&lt;BR /&gt;
[tcpout:xxxx]&lt;BR /&gt;
autoLB = true&lt;BR /&gt;
indexAndForward = 1&lt;BR /&gt;
server = 192.168.xx.1:9997,192.168.xx.2:9997,192.168.xx.3:9997&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;ALL THE BEST..&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2014 07:01:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-2008R2-Universal-Forwarder-quot-Could-not-send-data-quot/m-p/124611#M25680</guid>
      <dc:creator>neelamssantosh</dc:creator>
      <dc:date>2014-09-16T07:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Windows 2008R2 Universal Forwarder "Could not send data". How to configure outputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-2008R2-Universal-Forwarder-quot-Could-not-send-data-quot/m-p/124612#M25681</link>
      <description>&lt;P&gt;First, thank you for your answer &amp;amp; suggestions.&lt;/P&gt;

&lt;P&gt;I put &lt;CODE&gt;splunksvr.intranet.local&lt;/CODE&gt; to use human-readable server names.  I checked and the server can be resolved at DNS level.&lt;BR /&gt;
However, while reading the answers if found out that I'd misspelled the &lt;CODE&gt;outputs.conf&lt;/CODE&gt; file (as output.conf).  I fixed this and have now a new error message.&lt;/P&gt;

&lt;P&gt;I can't use other outputs.conf source as this is the first UF we're using for this Splunk server, other systems use syslog.  Another team is using a Splunk server and they have forwarders but they couldn't help me find what's wrong, their setup is too different.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2014 08:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-2008R2-Universal-Forwarder-quot-Could-not-send-data-quot/m-p/124612#M25681</guid>
      <dc:creator>macser</dc:creator>
      <dc:date>2014-09-16T08:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Windows 2008R2 Universal Forwarder "Could not send data". How to configure outputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-2008R2-Universal-Forwarder-quot-Could-not-send-data-quot/m-p/124613#M25682</link>
      <description>&lt;P&gt;First, thank you for your answer &amp;amp; suggestions.&lt;/P&gt;

&lt;P&gt;While reading the answers if found out that I'd misspelled the outputs.conf file.  I fixed this and have now a new error message.&lt;/P&gt;

&lt;P&gt;From "splunkd.log"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;09-16-2014 09:40:17.829 +0200 INFO  TcpOutputProc - Connection to 192.168.18.66:9997 closed. Read error. An existing connection was forcibly closed by the remote host.
09-16-2014 09:40:47.719 +0200 ERROR TcpOutputFd - Read error. An existing connection was forcibly closed by the remote host.
09-16-2014 09:40:48.249 +0200 INFO  TcpOutputProc - Connected to idx=192.168.18.66:9997
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Sep 2014 08:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-2008R2-Universal-Forwarder-quot-Could-not-send-data-quot/m-p/124613#M25682</guid>
      <dc:creator>macser</dc:creator>
      <dc:date>2014-09-16T08:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Windows 2008R2 Universal Forwarder "Could not send data". How to configure outputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-2008R2-Universal-Forwarder-quot-Could-not-send-data-quot/m-p/124614#M25683</link>
      <description>&lt;P&gt;Good to hear you got it working and thanks for sharing what was wrong; hopefully that can help some one else avoid this frustration in the future.&lt;/P&gt;

&lt;P&gt;Best of luck!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Sep 2014 12:31:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-2008R2-Universal-Forwarder-quot-Could-not-send-data-quot/m-p/124614#M25683</guid>
      <dc:creator>triest</dc:creator>
      <dc:date>2014-09-16T12:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Windows 2008R2 Universal Forwarder "Could not send data". How to configure outputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-2008R2-Universal-Forwarder-quot-Could-not-send-data-quot/m-p/124615#M25684</link>
      <description>&lt;P&gt;If you are still seeing this ERROR about the connection being forcibly closed by the remote host, read my comment here: &lt;A href="http://answers.splunk.com/answers/138307/indexer-send-tcp-rst-to-forwarders-trying-sending-data.html"&gt;http://answers.splunk.com/answers/138307/indexer-send-tcp-rst-to-forwarders-trying-sending-data.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2014 17:50:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-2008R2-Universal-Forwarder-quot-Could-not-send-data-quot/m-p/124615#M25684</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2014-10-10T17:50:19Z</dc:date>
    </item>
  </channel>
</rss>

