<?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 Failed to receive logs from Docker with Splunk Logging Driver in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-receive-logs-from-Docker-with-Splunk-Logging-Driver/m-p/482152#M82618</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I followed the instruction in &lt;A href="https://github.com/splunk/docker-logging-plugin"&gt;https://github.com/splunk/docker-logging-plugin&lt;/A&gt; to install the log driver, and also setup the HEC in Splunk.&lt;BR /&gt;
Tried following:&lt;BR /&gt;
1. docker run --publish 4000:80 --log-driver=splunk-logging-plugin --log-opt splunk-token=xxxxx --log-opt splunk-url=&lt;A href="https://127.0.0.1:8088"&gt;https://127.0.0.1:8088&lt;/A&gt; xxxx; No logs in Splunk&lt;BR /&gt;
2. Change docker daemon as &lt;BR /&gt;
{&lt;BR /&gt;
  "debug" : true,&lt;BR /&gt;
  "experimental" : false,&lt;BR /&gt;
  "log-driver": "splunk-logging-plugin",&lt;BR /&gt;
  "log-opts": {&lt;BR /&gt;
    "splunk-token": "xxxxxx",&lt;BR /&gt;
    "splunk-url": "&lt;A href="https://127.0.0.1:8088"&gt;https://127.0.0.1:8088&lt;/A&gt;",&lt;BR /&gt;
    "splunk-insecureskipverify": "true"&lt;BR /&gt;
  }&lt;BR /&gt;
}&lt;BR /&gt;
No logs in Splunk&lt;BR /&gt;
3. curl -k  &lt;A href="https://127.0.0.1:8088/services/collector/event"&gt;https://127.0.0.1:8088/services/collector/event&lt;/A&gt; -H "Authorization: Splunk xxxxxx" -d '{"event": "hello world"}'&lt;BR /&gt;
Receive return meg: {"text": "Success", "code": 0}, and got logs in Splunk&lt;/P&gt;

&lt;P&gt;Any advice where is the problem or how should I debug this?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Sun, 15 Sep 2019 03:01:36 GMT</pubDate>
    <dc:creator>xzou_splunk</dc:creator>
    <dc:date>2019-09-15T03:01:36Z</dc:date>
    <item>
      <title>Failed to receive logs from Docker with Splunk Logging Driver</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Failed-to-receive-logs-from-Docker-with-Splunk-Logging-Driver/m-p/482152#M82618</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I followed the instruction in &lt;A href="https://github.com/splunk/docker-logging-plugin"&gt;https://github.com/splunk/docker-logging-plugin&lt;/A&gt; to install the log driver, and also setup the HEC in Splunk.&lt;BR /&gt;
Tried following:&lt;BR /&gt;
1. docker run --publish 4000:80 --log-driver=splunk-logging-plugin --log-opt splunk-token=xxxxx --log-opt splunk-url=&lt;A href="https://127.0.0.1:8088"&gt;https://127.0.0.1:8088&lt;/A&gt; xxxx; No logs in Splunk&lt;BR /&gt;
2. Change docker daemon as &lt;BR /&gt;
{&lt;BR /&gt;
  "debug" : true,&lt;BR /&gt;
  "experimental" : false,&lt;BR /&gt;
  "log-driver": "splunk-logging-plugin",&lt;BR /&gt;
  "log-opts": {&lt;BR /&gt;
    "splunk-token": "xxxxxx",&lt;BR /&gt;
    "splunk-url": "&lt;A href="https://127.0.0.1:8088"&gt;https://127.0.0.1:8088&lt;/A&gt;",&lt;BR /&gt;
    "splunk-insecureskipverify": "true"&lt;BR /&gt;
  }&lt;BR /&gt;
}&lt;BR /&gt;
No logs in Splunk&lt;BR /&gt;
3. curl -k  &lt;A href="https://127.0.0.1:8088/services/collector/event"&gt;https://127.0.0.1:8088/services/collector/event&lt;/A&gt; -H "Authorization: Splunk xxxxxx" -d '{"event": "hello world"}'&lt;BR /&gt;
Receive return meg: {"text": "Success", "code": 0}, and got logs in Splunk&lt;/P&gt;

&lt;P&gt;Any advice where is the problem or how should I debug this?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 03:01:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Failed-to-receive-logs-from-Docker-with-Splunk-Logging-Driver/m-p/482152#M82618</guid>
      <dc:creator>xzou_splunk</dc:creator>
      <dc:date>2019-09-15T03:01:36Z</dc:date>
    </item>
  </channel>
</rss>

