<?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: How to configure outputs.conf to forward data in a fail-over method in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-outputs-conf-to-forward-data-in-a-fail-over/m-p/470512#M80898</link>
    <description>&lt;P&gt;Splunk does not work that way but what you can do is do something like this:&lt;/P&gt;

&lt;P&gt;DC1 outputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;server = DC1HF1:9997, DC2HF1:9999
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;DC2 outputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;server = DC2HF1:9997, DC1HF1:9999
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then always run inputs.conf with port &lt;CODE&gt;9997&lt;/CODE&gt; on but &lt;CODE&gt;9999&lt;/CODE&gt; off.&lt;BR /&gt;
Then have cron job on both HFs that is checking on the health of his partner in the other DC and when it is down, enable the local &lt;CODE&gt;9999&lt;/CODE&gt; port in &lt;CODE&gt;inputs.conf&lt;/CODE&gt; and restart local splunk.  Do the opposite when the other side comes back up.&lt;/P&gt;</description>
    <pubDate>Sat, 23 Nov 2019 19:17:43 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-11-23T19:17:43Z</dc:date>
    <item>
      <title>How to configure outputs.conf to forward data in a fail-over method</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-outputs-conf-to-forward-data-in-a-fail-over/m-p/470509#M80895</link>
      <description>&lt;P&gt;We have HF 1 and HF2 that are located in DC1 and DC2 respectively. How can we configure outputs.conf in below method.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;All servers in DC 1 should forward data to HF 1 primarily and only send data to HF 2 in case of a fail over (ie HF1 goes down.)&lt;/LI&gt;
&lt;LI&gt;All servers in DC 2 should forward data to HF 2 primarily and only send data to HF 1 in case of a fail over (ie HF2 goes down.)&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Please note that we are not looking for a autolb feature and just looking for a failover kind of configuration in outputs.conf&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 06:02:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-outputs-conf-to-forward-data-in-a-fail-over/m-p/470509#M80895</guid>
      <dc:creator>ekcsoc</dc:creator>
      <dc:date>2019-10-28T06:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure outputs.conf to forward data in a fail-over method</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-outputs-conf-to-forward-data-in-a-fail-over/m-p/470510#M80896</link>
      <description>&lt;P&gt;This is not how Splunk works, sorry. &lt;/P&gt;

&lt;P&gt;Why are you using Heavy Forwarders? Any need to do so?&lt;/P&gt;

&lt;P&gt;I don't really like to give you a workaround here, but.. If you have separate DNS in those data centres, you could manage a failover with DNS. So, in case server 1 goes down, assign the other IP address to its hostname. &lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 10:15:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-outputs-conf-to-forward-data-in-a-fail-over/m-p/470510#M80896</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2019-10-28T10:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure outputs.conf to forward data in a fail-over method</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-outputs-conf-to-forward-data-in-a-fail-over/m-p/470511#M80897</link>
      <description>&lt;P&gt;I don't think Splunk explicitly can do this. &lt;/P&gt;

&lt;P&gt;However, if you can introduce a load balancer in between and forward to the load-balanced URL, this is possible. Unfortunately, from your question, it looks like this is not one of the available options.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 10:56:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-outputs-conf-to-forward-data-in-a-fail-over/m-p/470511#M80897</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2019-10-29T10:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure outputs.conf to forward data in a fail-over method</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-outputs-conf-to-forward-data-in-a-fail-over/m-p/470512#M80898</link>
      <description>&lt;P&gt;Splunk does not work that way but what you can do is do something like this:&lt;/P&gt;

&lt;P&gt;DC1 outputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;server = DC1HF1:9997, DC2HF1:9999
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;DC2 outputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;server = DC2HF1:9997, DC1HF1:9999
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then always run inputs.conf with port &lt;CODE&gt;9997&lt;/CODE&gt; on but &lt;CODE&gt;9999&lt;/CODE&gt; off.&lt;BR /&gt;
Then have cron job on both HFs that is checking on the health of his partner in the other DC and when it is down, enable the local &lt;CODE&gt;9999&lt;/CODE&gt; port in &lt;CODE&gt;inputs.conf&lt;/CODE&gt; and restart local splunk.  Do the opposite when the other side comes back up.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2019 19:17:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-outputs-conf-to-forward-data-in-a-fail-over/m-p/470512#M80898</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-23T19:17:43Z</dc:date>
    </item>
  </channel>
</rss>

