<?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 Receiving error after restarting docker-splunk, proceeds to add forward-server in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Receiving-error-after-restarting-docker-splunk-proceeds-to-add/m-p/502208#M85580</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am setting up a Splunk universal forwarder by pulling the universalforwarder docker image from docker-hub and as part of docker run command I also add forward-server like below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;docker run -e SPLUNK_START_ARGS="--accept-license --answer-yes --no-prompt" -e SPLUNK_ADD="monitor  , forward-server $INDEXER:$PORT " splunk/universalforwarder:latest
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This works fine first time, however, if  I restart the docker container, it tries to add the forward-server again and throws the below exception&lt;BR /&gt;
&lt;CODE&gt;"TCPOut - forwarded-server already present"&lt;/CODE&gt; in the splunkd.log&lt;/P&gt;

&lt;P&gt;I tried -e "SPLUNK_FORWARD_SERVER" but it didn't add the forward-server at all. &lt;BR /&gt;
This seems to me like an idempotency issue where the splunk-ansible should not have tried to add again when the forward-server already exist.&lt;/P&gt;

&lt;P&gt;Any help or thoughts appreciated.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Chinmaya&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:33:01 GMT</pubDate>
    <dc:creator>chibhat</dc:creator>
    <dc:date>2020-09-30T02:33:01Z</dc:date>
    <item>
      <title>Receiving error after restarting docker-splunk, proceeds to add forward-server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Receiving-error-after-restarting-docker-splunk-proceeds-to-add/m-p/502208#M85580</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am setting up a Splunk universal forwarder by pulling the universalforwarder docker image from docker-hub and as part of docker run command I also add forward-server like below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;docker run -e SPLUNK_START_ARGS="--accept-license --answer-yes --no-prompt" -e SPLUNK_ADD="monitor  , forward-server $INDEXER:$PORT " splunk/universalforwarder:latest
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This works fine first time, however, if  I restart the docker container, it tries to add the forward-server again and throws the below exception&lt;BR /&gt;
&lt;CODE&gt;"TCPOut - forwarded-server already present"&lt;/CODE&gt; in the splunkd.log&lt;/P&gt;

&lt;P&gt;I tried -e "SPLUNK_FORWARD_SERVER" but it didn't add the forward-server at all. &lt;BR /&gt;
This seems to me like an idempotency issue where the splunk-ansible should not have tried to add again when the forward-server already exist.&lt;/P&gt;

&lt;P&gt;Any help or thoughts appreciated.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Chinmaya&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:33:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Receiving-error-after-restarting-docker-splunk-proceeds-to-add/m-p/502208#M85580</guid>
      <dc:creator>chibhat</dc:creator>
      <dc:date>2020-09-30T02:33:01Z</dc:date>
    </item>
  </channel>
</rss>

