<?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: Load Balancing UF to 3rd  third party receivers in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Load-Balancing-UF-to-3rd-third-party-receivers/m-p/526586#M88818</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227974"&gt;@jknulst&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Your configuration looks good to me but needs one small tweak.&lt;/P&gt;&lt;P&gt;In your [tcpout] stanza you have the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[tcpout]
defaultGroup = splunk-searchhead-group&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe you need to add the other tcpout:&lt;EM&gt;group&lt;/EM&gt; you have defined in your outputs.conf file so that the Universal Forwarder begins the "load-balancing" between the two 3rd-party indexers/nodes&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[tcpout]
defaultGroup = splunk-searchhead-group,default-autolb-group&lt;/LI-CODE&gt;&lt;P&gt;Once you have set this, give your Splunk Universal Forwarder a reboot for the new configurations to take affect.&amp;nbsp;&lt;BR /&gt;Your Splunk Universal Forwarder should now switch between each 3rd-party indexer/node every 30 seconds.&lt;BR /&gt;&lt;BR /&gt;Note: If your box you have installed on is a linux variant, you might be able to run this command and see the switch happen in real-time:&lt;BR /&gt;# &lt;STRONG&gt;watch -d -n 0 "/opt/splunkforwarder/bin/splunk list forward-server"&lt;/STRONG&gt;&lt;BR /&gt;You will be prompted for your Splunk U.F.'s username and password. Once entered, it should rerun that command and you will hopefully see the switchover in real-time.&lt;/P&gt;&lt;P&gt;If you don't have the "watch" command you can always tail the /opt/splunkforwarder/var/log/splunk/splunkd.log for the following command to see your Universal Forwarder switch nodes/indexers.&lt;BR /&gt;# &lt;STRONG&gt;tail -f /opt/splunkforwarder/var/log/splunk/splunkd.log | grep "TcpOutputProc"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you are currently running on a windows box and have access to powershell you can use the following command to see the output of splunkd.log&lt;BR /&gt;(Open powershell in admin mode)&lt;BR /&gt;# &lt;STRONG&gt;Get-Content -Path "C:\Program Files\SplunkUniversalForwarder\var\log\splunk\splunkd.log" -Wait&lt;/STRONG&gt;&lt;BR /&gt;It will chunk through the file until it gets to the end but&lt;/P&gt;&lt;P&gt;Please let us know if this solves your current challenge!&lt;/P&gt;&lt;P&gt;V/R,&lt;BR /&gt;nwuest&lt;/P&gt;</description>
    <pubDate>Tue, 27 Oct 2020 06:11:58 GMT</pubDate>
    <dc:creator>nwuest</dc:creator>
    <dc:date>2020-10-27T06:11:58Z</dc:date>
    <item>
      <title>Load Balancing UF to 3rd  third party receivers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Load-Balancing-UF-to-3rd-third-party-receivers/m-p/525876#M88750</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have some troubles setting up the following topology. There is 1 UF which needs to forward unCooked raw data to a 3rd party receiver that is distributed and consists of 2 nodes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[indexAndForward]
index = false

[tcpout:splunk-searchhead-group]
disabled = false
server = so1:9997

[tcpout-server://so1:9997]
[tcpout-server://3rd_party_node_1:3535]
[tcpout-server://3rd_party_node_2:3535]

[tcpout]
defaultGroup = splunk-searchhead-group

[tcpout:default-autolb-group]
disabled = false
server = 3rd_party_node_1:3535,3rd_party_node_2:3535
sendCookedData = false
forceTimebasedAutoLB = true
autoLBVolume = 2
autoLBFrequency = 5
maxQueueSize = auto
indexAndForward = false
blockOnCloning = true
compressed = false
dropClonedEventsOnQueueFull = 5
dropEventsOnQueueFull = -1
heartbeatFrequency = 30
maxFailuresPerInterval = 2
secsInFailureInterval = 1
maxConnectionsPerIndexer = 2
connectionTimeout = 20
readTimeout = 300
writeTimeout = 300
tcpSendBufSz =&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What happens in reality is that both&amp;nbsp;3rd_party_node_1 &amp;amp; 2 receive exactly the same data, it looks like data cloning in stead of load balancing.&lt;/P&gt;&lt;P&gt;Is there anything off in this config or is load balancing not possible with 3rd party receivers?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 17:55:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Load-Balancing-UF-to-3rd-third-party-receivers/m-p/525876#M88750</guid>
      <dc:creator>jknulst</dc:creator>
      <dc:date>2020-10-21T17:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Load Balancing UF to 3rd  third party receivers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Load-Balancing-UF-to-3rd-third-party-receivers/m-p/526586#M88818</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227974"&gt;@jknulst&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Your configuration looks good to me but needs one small tweak.&lt;/P&gt;&lt;P&gt;In your [tcpout] stanza you have the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[tcpout]
defaultGroup = splunk-searchhead-group&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe you need to add the other tcpout:&lt;EM&gt;group&lt;/EM&gt; you have defined in your outputs.conf file so that the Universal Forwarder begins the "load-balancing" between the two 3rd-party indexers/nodes&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[tcpout]
defaultGroup = splunk-searchhead-group,default-autolb-group&lt;/LI-CODE&gt;&lt;P&gt;Once you have set this, give your Splunk Universal Forwarder a reboot for the new configurations to take affect.&amp;nbsp;&lt;BR /&gt;Your Splunk Universal Forwarder should now switch between each 3rd-party indexer/node every 30 seconds.&lt;BR /&gt;&lt;BR /&gt;Note: If your box you have installed on is a linux variant, you might be able to run this command and see the switch happen in real-time:&lt;BR /&gt;# &lt;STRONG&gt;watch -d -n 0 "/opt/splunkforwarder/bin/splunk list forward-server"&lt;/STRONG&gt;&lt;BR /&gt;You will be prompted for your Splunk U.F.'s username and password. Once entered, it should rerun that command and you will hopefully see the switchover in real-time.&lt;/P&gt;&lt;P&gt;If you don't have the "watch" command you can always tail the /opt/splunkforwarder/var/log/splunk/splunkd.log for the following command to see your Universal Forwarder switch nodes/indexers.&lt;BR /&gt;# &lt;STRONG&gt;tail -f /opt/splunkforwarder/var/log/splunk/splunkd.log | grep "TcpOutputProc"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you are currently running on a windows box and have access to powershell you can use the following command to see the output of splunkd.log&lt;BR /&gt;(Open powershell in admin mode)&lt;BR /&gt;# &lt;STRONG&gt;Get-Content -Path "C:\Program Files\SplunkUniversalForwarder\var\log\splunk\splunkd.log" -Wait&lt;/STRONG&gt;&lt;BR /&gt;It will chunk through the file until it gets to the end but&lt;/P&gt;&lt;P&gt;Please let us know if this solves your current challenge!&lt;/P&gt;&lt;P&gt;V/R,&lt;BR /&gt;nwuest&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 06:11:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Load-Balancing-UF-to-3rd-third-party-receivers/m-p/526586#M88818</guid>
      <dc:creator>nwuest</dc:creator>
      <dc:date>2020-10-27T06:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Load Balancing UF to 3rd  third party receivers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Load-Balancing-UF-to-3rd-third-party-receivers/m-p/527374#M88942</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/179665"&gt;@nwuest&lt;/a&gt;&amp;nbsp;Thank you for your reponse and suggestion&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 20:50:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Load-Balancing-UF-to-3rd-third-party-receivers/m-p/527374#M88942</guid>
      <dc:creator>jknulst</dc:creator>
      <dc:date>2020-10-30T20:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Load Balancing UF to 3rd  third party receivers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Load-Balancing-UF-to-3rd-third-party-receivers/m-p/527375#M88943</link>
      <description>&lt;P&gt;I followed your suggestion.&lt;/P&gt;&lt;P&gt;The output is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[root@uf1 splunkforwarder]# bin/splunk list forward-server
Active forwards:
	3rd_party_node_1:3535
	3rd_party_node_2:3535
	so1:9997
Configured but inactive forwards:
	None
[root@uf1 splunkforwarder]# &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the tail:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[root@uf1 splunkforwarder]# tail -f /opt/splunkforwarder/var/log/splunk/splunkd.log | grep "TcpOutputProc"
10-30-2020 20:27:34.719 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.3:3535, pset=0, reuse=0.
10-30-2020 20:27:39.613 +0000 INFO  TcpOutputProc - After randomization, current is first in the list. Swapping with last item
10-30-2020 20:27:39.713 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.2:3535, pset=0, reuse=1.
10-30-2020 20:27:43.720 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.3:3535, pset=0, reuse=0.
10-30-2020 20:27:48.724 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.2:3535, pset=0, reuse=1.
10-30-2020 20:27:52.722 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.3:3535, pset=0, reuse=0.
10-30-2020 20:27:57.723 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.2:3535, pset=0, reuse=1.
10-30-2020 20:27:59.335 +0000 INFO  TcpOutputProc - Found currently active indexer. Connected to idx=172.19.0.4:9997, reuse=1.
10-30-2020 20:28:01.691 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.3:3535, pset=0, reuse=0.
10-30-2020 20:28:06.719 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.2:3535, pset=0, reuse=1.
10-30-2020 20:28:10.690 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.3:3535, pset=0, reuse=0.
10-30-2020 20:28:15.694 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.2:3535, pset=0, reuse=1.
10-30-2020 20:28:19.691 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.3:3535, pset=0, reuse=0.
10-30-2020 20:28:24.695 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.2:3535, pset=0, reuse=1.
10-30-2020 20:28:28.691 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.3:3535, pset=0, reuse=0.
10-30-2020 20:28:29.193 +0000 INFO  TcpOutputProc - Found currently active indexer. Connected to idx=172.19.0.4:9997, reuse=1.
10-30-2020 20:28:33.560 +0000 INFO  TcpOutputProc - After randomization, current is first in the list. Swapping with last item
10-30-2020 20:28:33.661 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.2:3535, pset=0, reuse=1.
10-30-2020 20:28:37.658 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.3:3535, pset=0, reuse=0.
10-30-2020 20:28:42.561 +0000 INFO  TcpOutputProc - After randomization, current is first in the list. Swapping with last item
10-30-2020 20:28:42.661 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.2:3535, pset=0, reuse=1.
10-30-2020 20:28:46.659 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.3:3535, pset=0, reuse=0.
10-30-2020 20:28:51.664 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.2:3535, pset=0, reuse=1.
10-30-2020 20:28:55.661 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.3:3535, pset=0, reuse=0.
10-30-2020 20:28:59.061 +0000 INFO  TcpOutputProc - Found currently active indexer. Connected to idx=172.19.0.4:9997, reuse=1.
10-30-2020 20:29:00.662 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.2:3535, pset=0, reuse=1.
10-30-2020 20:29:04.626 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.3:3535, pset=0, reuse=0.
10-30-2020 20:29:09.530 +0000 INFO  TcpOutputProc - After randomization, current is first in the list. Swapping with last item
10-30-2020 20:29:09.630 +0000 INFO  TcpOutputProc - Connected to idx=172.19.0.2:3535, pset=0, reuse=1.
^C
[root@uf1 splunkforwarder]# &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I can see that both servers are taken into account but it always skips one and only uses the same other.&lt;/P&gt;&lt;P&gt;That is also what I see on both nodes; only 1 out of two in getting the tcp inputs.&lt;/P&gt;&lt;P&gt;So I got rid of the cloning, but this is also not what I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this what you expect?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 20:51:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Load-Balancing-UF-to-3rd-third-party-receivers/m-p/527375#M88943</guid>
      <dc:creator>jknulst</dc:creator>
      <dc:date>2020-10-30T20:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Load Balancing UF to 3rd  third party receivers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Load-Balancing-UF-to-3rd-third-party-receivers/m-p/527430#M88954</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227974"&gt;@jknulst&lt;/a&gt; !&lt;/P&gt;&lt;P&gt;Your output does look like your Universal Forwarder&amp;nbsp; is only sticking with one indexer in the the "default-auto-lb" group.&lt;BR /&gt;So now that we have the outputs.conf file solved, we need to verify a few other things in the Splunk Environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My next course of action would be to check the Splunk version on the 3rd party nodes and what your version is on your universal forwarder.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Can you also share a snippet from the&lt;STRONG&gt; metrics.log&lt;/STRONG&gt; (from your universal forwarder AND see if you can get someone to look at the 3rd party indexer) in the same folder so we can see if there is a connection (Splunk-2-Splunk) error between the Universal Forwarder and the 3rd Party Indexers?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt; The metrics.log should give us some good information as to why the connection is not succeeding with the "not-so-cooperative" 3rd party indexer.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;On the Universal Forwarder (Grepping for the indexer that seems to not want to cooperate with the Universal Forwarder):&lt;BR /&gt;&lt;STRONG&gt;# tail -f /opt/splunkforwarder/var/log/splunk/metrics.log | grep "172.19.0.3"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;On the 3rd Party Indexer (Grepping for the universal forwarder that seems to have connection issues):&lt;BR /&gt;&lt;STRONG&gt;# tail -f /opt/splunk/var/log/splunk/metrics.log | grep "&lt;EM&gt;ipaddress of splunk universal forwarder"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;As always, Please let us know what you see from these commands so we can help troubleshoot further.&lt;/P&gt;&lt;P&gt;V/R,&lt;BR /&gt;nwuest&lt;/P&gt;</description>
      <pubDate>Sat, 31 Oct 2020 19:30:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Load-Balancing-UF-to-3rd-third-party-receivers/m-p/527430#M88954</guid>
      <dc:creator>nwuest</dc:creator>
      <dc:date>2020-10-31T19:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Load Balancing UF to 3rd  third party receivers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Load-Balancing-UF-to-3rd-third-party-receivers/m-p/527540#M88963</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/179665"&gt;@nwuest&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may have misunderstood, but with 3rd party receiver I really mean a 3rd party so not a Splunk receiver. It is in fact a distributed ETL tool that is receiving the data.&lt;/P&gt;&lt;P&gt;Does the UF also support load balancing as configured above to multiple addresses of a non-Splunk platform (with non-Cooked data)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:55:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Load-Balancing-UF-to-3rd-third-party-receivers/m-p/527540#M88963</guid>
      <dc:creator>jknulst</dc:creator>
      <dc:date>2020-11-02T13:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Load Balancing UF to 3rd  third party receivers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Load-Balancing-UF-to-3rd-third-party-receivers/m-p/527842#M89005</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227974"&gt;@jknulst&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the clarification.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Splunk is able to send data to third party systems&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.6/Forwarding/Forwarddatatothird-partysystemsd" target="_self"&gt;Forward data to third-party systems&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I’m more than sure that Splunk will be able to load balance as long as you add them to your outputs.conf file.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Be sure to update us on your progress with the 3rd party receivers.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;V/R,&lt;BR /&gt;nwuest&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 04:36:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Load-Balancing-UF-to-3rd-third-party-receivers/m-p/527842#M89005</guid>
      <dc:creator>nwuest</dc:creator>
      <dc:date>2020-11-04T04:36:20Z</dc:date>
    </item>
  </channel>
</rss>

