<?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: Retrieving Docker container logs using Splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Docker-container-logs-using-Splunk/m-p/311985#M58529</link>
    <description>&lt;P&gt;Did you try http as well.  Ran though HEC setup on splunk and if you didn't select ssl it may just be clear text.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2017 15:54:38 GMT</pubDate>
    <dc:creator>dcharboneau_spl</dc:creator>
    <dc:date>2017-04-06T15:54:38Z</dc:date>
    <item>
      <title>Retrieving Docker container logs using Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Docker-container-logs-using-Splunk/m-p/311982#M58526</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;I am a newbie to Splunk and since few days, I am attempting to use Splunk to retrieve docker container logs. I tried using docker image of Splunk Enterprise. With that, I could access the Splunk instance on the browser through &lt;A href="http://localhost:8000"&gt;http://localhost:8000&lt;/A&gt;. Thereafter, I am stuck. I used the following command and that gave me the following error message. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;docker run --log-driver=splunk --log-opt splunk-url=&lt;A href="http://localhost:8000"&gt;http://localhost:8000&lt;/A&gt; --log-opt splunk-token=B0AE18EB-4A5F-4A78-911D-033265BA430A nginx&lt;/STRONG&gt;&lt;BR /&gt;
docker: Error response from daemon: Failed to initialize logging driver: splunk: failed to verify connection - 303 See Other -  http-equiv="content-type" content="text/html; charset=UTF-8"&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 09:05:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Docker-container-logs-using-Splunk/m-p/311982#M58526</guid>
      <dc:creator>nanduni</dc:creator>
      <dc:date>2017-04-06T09:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Docker container logs using Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Docker-container-logs-using-Splunk/m-p/311983#M58527</link>
      <description>&lt;P&gt;I believe this could be the TCP port you are using is 8000 which is the web interface.  Try 8088.  Also looks like you need to be using HTTPS not HTTP.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.docker.com/engine/admin/logging/splunk/#splunk-options"&gt;https://docs.docker.com/engine/admin/logging/splunk/#splunk-options&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 13:36:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Docker-container-logs-using-Splunk/m-p/311983#M58527</guid>
      <dc:creator>dcharboneau_spl</dc:creator>
      <dc:date>2017-04-06T13:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Docker container logs using Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Docker-container-logs-using-Splunk/m-p/311984#M58528</link>
      <description>&lt;P&gt;Thank you for  the response.&lt;/P&gt;

&lt;P&gt;I tried that as well, still gives me errors.&lt;/P&gt;

&lt;P&gt;$ docker run --log-driver=splunk --log-opt splunk-url=&lt;A href="https://127.0.0.1:8088"&gt;https://127.0.0.1:8088&lt;/A&gt; --log-opt splunk-token=FD7C8352-E4FE-40AB-B2EA-01A1DEC6F7D9 nginx&lt;BR /&gt;
&lt;STRONG&gt;docker: Error response from daemon: Failed to initialize logging driver: dial tcp 127.0.0.1:8088: getsockopt: connection refused.&lt;BR /&gt;
ERRO[0001] error getting events from daemon: net/http: request canceled&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;Any suggestions to resolve this ?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 15:29:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Docker-container-logs-using-Splunk/m-p/311984#M58528</guid>
      <dc:creator>nanduni</dc:creator>
      <dc:date>2017-04-06T15:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Docker container logs using Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Docker-container-logs-using-Splunk/m-p/311985#M58529</link>
      <description>&lt;P&gt;Did you try http as well.  Ran though HEC setup on splunk and if you didn't select ssl it may just be clear text.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 15:54:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Docker-container-logs-using-Splunk/m-p/311985#M58529</guid>
      <dc:creator>dcharboneau_spl</dc:creator>
      <dc:date>2017-04-06T15:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Docker container logs using Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Docker-container-logs-using-Splunk/m-p/311986#M58530</link>
      <description>&lt;P&gt;Yes, I tried that as well. In &lt;EM&gt;Global settings&lt;/EM&gt;, I enabled/disabled SSL and checked with https/http as well. But that still continues to give me the same error log. &lt;/P&gt;

&lt;P&gt;In &lt;A href="https://docs.docker.com/engine/admin/logging/splunk/#splunk-options" target="_blank"&gt;Docker documentation&lt;/A&gt; that you have pointed out, it is mentioned to specify the splunk-url in the format &lt;A href="https://your_splunk_instance:8088" target="_blank"&gt;https://your_splunk_instance:8088&lt;/A&gt;. Here, what does this '&lt;STRONG&gt;your_splunk_instance'&lt;/STRONG&gt; refers to? I assumed that to be 127.0.0.1, from which I accessed the web interface. Am I correct?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:34:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Docker-container-logs-using-Splunk/m-p/311986#M58530</guid>
      <dc:creator>nanduni</dc:creator>
      <dc:date>2020-09-29T13:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Docker container logs using Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Docker-container-logs-using-Splunk/m-p/311987#M58531</link>
      <description>&lt;P&gt;I managed to resolve this by running Splunk Enterprise Docker Image as follows. &lt;/P&gt;

&lt;P&gt;docker run -d -e "SPLUNK_START_ARGS=--accept-license" -e "SPLUNK_USER=root" -p "8000:8000" -p "8088:8088" splunk/splunk&lt;/P&gt;

&lt;P&gt;@dcharboneau, Thank you very much for pointing out my errors.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:34:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Docker-container-logs-using-Splunk/m-p/311987#M58531</guid>
      <dc:creator>nanduni</dc:creator>
      <dc:date>2020-09-29T13:34:42Z</dc:date>
    </item>
  </channel>
</rss>

