<?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: Can't receive Container's logs from Docker with Splunk Logging Driver in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-receive-Container-s-logs-from-Docker-with-Splunk-Logging/m-p/330342#M61244</link>
    <description>&lt;P&gt;Have you tried using &lt;STRONG&gt;https&lt;/STRONG&gt; as it is the default protocol?&lt;/P&gt;

&lt;P&gt;Please try again using &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk-url": "https://152.34.65.33:8088"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and let me know if that solved the issue.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2017 14:07:40 GMT</pubDate>
    <dc:creator>damien_chillet</dc:creator>
    <dc:date>2017-12-08T14:07:40Z</dc:date>
    <item>
      <title>Can't receive Container's logs from Docker with Splunk Logging Driver</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-receive-Container-s-logs-from-Docker-with-Splunk-Logging/m-p/330339#M61241</link>
      <description>&lt;P&gt;Good afternoon from France ! &lt;/P&gt;

&lt;P&gt;I'm sorry to boring you, but I need your help. &lt;BR /&gt;
Since this morning, I started the installation of Splunk on Linux RedHat. &lt;BR /&gt;
I successed for read the logs from the physical machine (where Splunk is installed), for read the logs from a remote machine with Splunk forwarder (where my Docker is). And now, I try to read and receive the container's logs from Docker in the interface web Splunk, but doesn't work. &lt;/P&gt;

&lt;P&gt;So, step by step : &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;1) First, I create my Token in Splunk, activate it, and I restart Splunk :&lt;/STRONG&gt; &lt;BR /&gt;
(Sorry, french screen-shot)&lt;BR /&gt;
![&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3975i4C7B1B0BB41CCF72/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;2) After that, on my Docker machine, I edited the deamon.json and restart Docker :&lt;/STRONG&gt;&lt;BR /&gt;
{&lt;BR /&gt;
  "log-driver": "splunk",&lt;BR /&gt;
  "log-opts": {&lt;BR /&gt;
    "splunk-token": "blabla",&lt;BR /&gt;
    "splunk-url": "&lt;A href="http://152.34.65.33:8000"&gt;http://152.34.65.33:8000&lt;/A&gt;",&lt;BR /&gt;
    "splunk-verify-connection": "true",&lt;BR /&gt;
    "splunk-format": "json"&lt;BR /&gt;
  }&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;When I execute "docker info", I can assure that the log driver is interpreted. &lt;BR /&gt;
I run a Nginx container and I generate logs with CURL.&lt;/P&gt;

&lt;P&gt;BUT, unlike the tutorials I followed, nothing happend in my Web Interface. I don't know how to debug, see some trace. &lt;BR /&gt;
So if you see any particular error in this code or in my logic, please ! &lt;/P&gt;

&lt;P&gt;Thank's a lot, &lt;/P&gt;

&lt;P&gt;Regards. &lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 12:33:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-receive-Container-s-logs-from-Docker-with-Splunk-Logging/m-p/330339#M61241</guid>
      <dc:creator>splunkTest13</dc:creator>
      <dc:date>2017-12-07T12:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can't receive Container's logs from Docker with Splunk Logging Driver</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-receive-Container-s-logs-from-Docker-with-Splunk-Logging/m-p/330340#M61242</link>
      <description>&lt;P&gt;The HTTP Event Collector receives data over HTTPS on TCP port 8088 by default. &lt;BR /&gt;
Your Splunk-url indicates port 8000. That may well be the problem!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 14:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-receive-Container-s-logs-from-Docker-with-Splunk-Logging/m-p/330340#M61242</guid>
      <dc:creator>damien_chillet</dc:creator>
      <dc:date>2017-12-07T14:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can't receive Container's logs from Docker with Splunk Logging Driver</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-receive-Container-s-logs-from-Docker-with-Splunk-Logging/m-p/330341#M61243</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
Thank's, I can see this error yesterday. But even if I change the port from my daemon.json in : &lt;/P&gt;

&lt;P&gt;{&lt;BR /&gt;
  "log-driver": "splunk",&lt;BR /&gt;
  "log-opts": {&lt;BR /&gt;
    "splunk-token": "blabla",&lt;BR /&gt;
    "splunk-url": "&lt;A href="http://152.34.65.33:**8088**"&gt;http://152.34.65.33:**8088**&lt;/A&gt;"&lt;BR /&gt;
  }&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;I don't receine any data. &lt;BR /&gt;
When I am in the web interface splunk, in server, general settings, there is :&lt;/P&gt;

&lt;P&gt;Management port : 8089&lt;BR /&gt;
Web port : 8000&lt;BR /&gt;
Server applications port : 8065&lt;/P&gt;

&lt;P&gt;So, I try to change in my daemon.json the port in : &lt;/P&gt;

&lt;P&gt;{&lt;BR /&gt;
  "log-driver": "splunk",&lt;BR /&gt;
  "log-opts": {&lt;BR /&gt;
    "splunk-token": "blabla",&lt;BR /&gt;
    "splunk-url": "&lt;A href="http://152.34.65.33:**8089**"&gt;http://152.34.65.33:**8089**&lt;/A&gt;"&lt;BR /&gt;
  }&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;Still nothing in Splunk ! &lt;BR /&gt;
But thanks for answer&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 06:47:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-receive-Container-s-logs-from-Docker-with-Splunk-Logging/m-p/330341#M61243</guid>
      <dc:creator>splunkTest13</dc:creator>
      <dc:date>2017-12-08T06:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can't receive Container's logs from Docker with Splunk Logging Driver</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-receive-Container-s-logs-from-Docker-with-Splunk-Logging/m-p/330342#M61244</link>
      <description>&lt;P&gt;Have you tried using &lt;STRONG&gt;https&lt;/STRONG&gt; as it is the default protocol?&lt;/P&gt;

&lt;P&gt;Please try again using &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk-url": "https://152.34.65.33:8088"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and let me know if that solved the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 14:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-receive-Container-s-logs-from-Docker-with-Splunk-Logging/m-p/330342#M61244</guid>
      <dc:creator>damien_chillet</dc:creator>
      <dc:date>2017-12-08T14:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can't receive Container's logs from Docker with Splunk Logging Driver</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-receive-Container-s-logs-from-Docker-with-Splunk-Logging/m-p/330343#M61245</link>
      <description>&lt;P&gt;@splunkTest13 splunk logging author here&lt;/P&gt;

&lt;P&gt;I would suggest you at first try to enable Splunk Logging Driver on the container level, so just when you deploy your first container use the &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;docker run --log-driver=splunk --log-opt splunk-token=VALUE --log-opt splunk-url=VALUE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Make sure that you can get it to work and after that try to change the default logging driver, see &lt;A href="https://docs.docker.com/engine/admin/logging/splunk/#usage"&gt;https://docs.docker.com/engine/admin/logging/splunk/#usage&lt;/A&gt; for details.&lt;/P&gt;

&lt;P&gt;Before trying the logging driver I would suggest to actually try to send something to HTTP Event Collector using just simple curl command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k &lt;A href="https://hec.example.com:8088/services/collector/event/1.0" target="test_blank"&gt;https://hec.example.com:8088/services/collector/event/1.0&lt;/A&gt; -H "Authorization: Splunk TOKEN" -d '{"event": "hello world"}'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;{"text": "Success", "code": 0}&lt;/P&gt;

&lt;P&gt;Make sure to put the right scheme (http, https), domain, port (you can see what is set in global HTTP Event Collector configuration). If that works now you just need to take the right &lt;CODE&gt;&lt;A href="https://hec.example.com:8088" target="test_blank"&gt;https://hec.example.com:8088&lt;/A&gt;&lt;/CODE&gt; and use it for your container logs.&lt;/P&gt;

&lt;P&gt;If you still want to go with the route of using Splunk Logging Driver as a default logging driver and you want to modify daemon configuration. You can look inside the syslog/journald logs to see the logs from the daemon logs, use &lt;CODE&gt;journalctl&lt;/CODE&gt; (see &lt;A href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/s1-using_the_journal"&gt;https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/s1-using_the_journal&lt;/A&gt;) or try to tail &lt;CODE&gt;/var/log/messages&lt;/CODE&gt; if you use rsyslog (depending on how it is setup).&lt;/P&gt;

&lt;P&gt;As an alternative I would suggest you to look on alternative solutions, which our company provides for monitoring Docker and getting logs and metrics in Splunk. You can find our certified application on &lt;A href="https://splunkbase.splunk.com/app/3723/"&gt;https://splunkbase.splunk.com/app/3723/&lt;/A&gt;, instructions on how to get started &lt;A href="https://www.outcoldsolutions.com/docs/monitoring-docker/"&gt;https://www.outcoldsolutions.com/docs/monitoring-docker/&lt;/A&gt; and our comparison with Splunk Logging Driver &lt;A href="https://www.outcoldsolutions.com/docs/collectorfordocker/#comparing-with-splunk-logging-driver"&gt;https://www.outcoldsolutions.com/docs/collectorfordocker/#comparing-with-splunk-logging-driver&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 17:29:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-receive-Container-s-logs-from-Docker-with-Splunk-Logging/m-p/330343#M61245</guid>
      <dc:creator>outcoldman</dc:creator>
      <dc:date>2017-12-08T17:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can't receive Container's logs from Docker with Splunk Logging Driver</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-receive-Container-s-logs-from-Docker-with-Splunk-Logging/m-p/330344#M61246</link>
      <description>&lt;P&gt;Hello outcoldman &lt;BR /&gt;
i have tried your above suggested options but no o still same issue i am facing . i have a local splunk set up on my machine and i am able to curl and send the data. i can also see the logs in splunk.&lt;/P&gt;

&lt;P&gt;but when i do below command i get errors and it will not run it says connection refused.&lt;/P&gt;

&lt;P&gt;docker run --log-driver=splunk \&lt;BR /&gt;
           --log-opt splunk-url=&lt;A href="http://localhost:8088/"&gt;http://localhost:8088/&lt;/A&gt; \&lt;BR /&gt;
           --log-opt splunk-token=token \&lt;BR /&gt;
           --log-opt splunk-insecureskipverify=true \&lt;BR /&gt;
           hello-world&lt;BR /&gt;
i have another splunk cloud whihc is org one and i have a token for HEC as well when i run the above command it runs but i do not see any logs not sure why .&lt;/P&gt;

&lt;P&gt;if i am able to make it work on local thaat will be great and then later i can figure out why its not able to work on cloud &lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 07:13:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-receive-Container-s-logs-from-Docker-with-Splunk-Logging/m-p/330344#M61246</guid>
      <dc:creator>ajzodak</dc:creator>
      <dc:date>2019-12-09T07:13:53Z</dc:date>
    </item>
  </channel>
</rss>

