<?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: docker splunk-url format error in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/docker-splunk-url-format-error/m-p/296608#M56237</link>
    <description>&lt;P&gt;I assume you've seen this link, but adding it in case it helps in our discussion:&lt;BR /&gt;
&lt;A href="https://docs.docker.com/engine/admin/logging/splunk/"&gt;https://docs.docker.com/engine/admin/logging/splunk/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;From what I can tell in the docs, you should be using just the scheme, host, and port but no URI. So that means in your example, I would assume this should work: &lt;CODE&gt;docker run --log-driver=splunk --log-opt splunk-url=https://mysplunkexample.com:8088&lt;/CODE&gt;&lt;BR /&gt;
The logging driver in docker will resolve what endpoint to post to.&lt;/P&gt;

&lt;P&gt;Let us know how you make out?&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2017 14:40:09 GMT</pubDate>
    <dc:creator>sloshburch</dc:creator>
    <dc:date>2017-04-03T14:40:09Z</dc:date>
    <item>
      <title>docker splunk-url format error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/docker-splunk-url-format-error/m-p/296607#M56236</link>
      <description>&lt;P&gt;With docker run cmd, I used: --log-opt splunk-url=&lt;A href="https://mysplunkexample.com:8088/services/collector" target="_blank"&gt;https://mysplunkexample.com:8088/services/collector&lt;/A&gt; &lt;BR /&gt;
docker cmd: docker run --log-driver=splunk --log-opt splunk-url=&lt;A href="https://mysplunkexample.com:8088/services/collector" target="_blank"&gt;https://mysplunkexample.com:8088/services/collector&lt;/A&gt; ... other options ... image:tag&lt;/P&gt;

&lt;P&gt;which gives following error:&lt;BR /&gt;
&lt;FONT color="red"&gt; docker: Error response from daemon: Failed to initialize logging driver: splunk: expected format scheme://dns_name_or_ip:port for splunk-url. &lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;Splunk Enterprise path is: &lt;A href="https://mysplunkexample.com:8088/services/collector" target="_blank"&gt;https://mysplunkexample.com:8088/services/collector&lt;/A&gt;&lt;BR /&gt;
and not: &lt;A href="https://mysplunkexample.com:8088" target="_blank"&gt;https://mysplunkexample.com:8088&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I would appreciate any solution to this issue.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:25:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/docker-splunk-url-format-error/m-p/296607#M56236</guid>
      <dc:creator>rabinutam</dc:creator>
      <dc:date>2020-09-29T13:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: docker splunk-url format error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/docker-splunk-url-format-error/m-p/296608#M56237</link>
      <description>&lt;P&gt;I assume you've seen this link, but adding it in case it helps in our discussion:&lt;BR /&gt;
&lt;A href="https://docs.docker.com/engine/admin/logging/splunk/"&gt;https://docs.docker.com/engine/admin/logging/splunk/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;From what I can tell in the docs, you should be using just the scheme, host, and port but no URI. So that means in your example, I would assume this should work: &lt;CODE&gt;docker run --log-driver=splunk --log-opt splunk-url=https://mysplunkexample.com:8088&lt;/CODE&gt;&lt;BR /&gt;
The logging driver in docker will resolve what endpoint to post to.&lt;/P&gt;

&lt;P&gt;Let us know how you make out?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 14:40:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/docker-splunk-url-format-error/m-p/296608#M56237</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2017-04-03T14:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: docker splunk-url format error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/docker-splunk-url-format-error/m-p/296609#M56238</link>
      <description>&lt;P&gt;Burch,&lt;/P&gt;

&lt;P&gt;Per our conversation here is the curl command that we've both used to test things out. Both myself and Prabin have used it to send it to our dev environment:&lt;/P&gt;

&lt;P&gt;curl -k https://&lt;SERVER&gt;:8088/services/collector -H 'Authorization: Splunk  ,&lt;SPLUNKTOKEN&gt;' -d '{"sourcetype": "mysourcetype", "event":"Hello, World!"}'&lt;/SPLUNKTOKEN&gt;&lt;/SERVER&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Burch&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2017 15:39:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/docker-splunk-url-format-error/m-p/296609#M56238</guid>
      <dc:creator>a548506</dc:creator>
      <dc:date>2017-04-03T15:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: docker splunk-url format error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/docker-splunk-url-format-error/m-p/296610#M56239</link>
      <description>&lt;P&gt;Did you spot the difference? You tested with a curl command, for which you had to specify the URI. But the docker logging driver implies that you only need to list the schema://hostname:port and it will resolve the URI. See my answer above for an example and let me know how that works out in the docker instance.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 12:12:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/docker-splunk-url-format-error/m-p/296610#M56239</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2017-04-04T12:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: docker splunk-url format error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/docker-splunk-url-format-error/m-p/296611#M56240</link>
      <description>&lt;P&gt;Burch, thank you for your response.&lt;/P&gt;

&lt;P&gt;I tried just with scheme, host, and port as well,&lt;BR /&gt;
but that gave different error&lt;/P&gt;

&lt;P&gt;docker cmd: docker run --log-driver=splunk --log-opt splunk-token=abcd --log-opt splunk-url=&lt;A href="https://mysplunkexample.com:8088"&gt;https://mysplunkexample.com:8088&lt;/A&gt; ... other options ... image:tag&lt;BR /&gt;
gives following error&lt;BR /&gt;
&lt;FONT color="red"&gt;docker: Error response from daemon: Failed to initialize logging driver: x509: certificate is valid for SplunkServerDefaultCert, not vlmmk301&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;The splunk-token I used is correct and tested with curl to successfully send event message.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 17:27:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/docker-splunk-url-format-error/m-p/296611#M56240</guid>
      <dc:creator>rabinutam</dc:creator>
      <dc:date>2017-04-05T17:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: docker splunk-url format error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/docker-splunk-url-format-error/m-p/296612#M56241</link>
      <description>&lt;P&gt;The message implies SSL certificate stuff. Check the options on &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; for things like the splunk-caname and so forth.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 12:31:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/docker-splunk-url-format-error/m-p/296612#M56241</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2017-04-10T12:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: docker splunk-url format error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/docker-splunk-url-format-error/m-p/519669#M87859</link>
      <description>&lt;P&gt;I confirm that this is not working today. At least for trial versions in splunk cloud. The certificate at port 8088 is not valid and docker can't run&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 12:18:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/docker-splunk-url-format-error/m-p/519669#M87859</guid>
      <dc:creator>cruizba</dc:creator>
      <dc:date>2020-09-15T12:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: docker splunk-url format error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/docker-splunk-url-format-error/m-p/519857#M87895</link>
      <description>&lt;P&gt;I was able to run the trial version using the argument in the docker run&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;--log-opt splunk-insecureskipverify=true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;It would be nice to operate with verificated certificates in trial versions.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 08:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/docker-splunk-url-format-error/m-p/519857#M87895</guid>
      <dc:creator>cruizba</dc:creator>
      <dc:date>2020-09-16T08:42:33Z</dc:date>
    </item>
  </channel>
</rss>

