<?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 ERROR ExecProcessor - message from &amp;quot;/opt/splunk/etc/apps/ta-dockerstats/bin/docker_stats.sh&amp;quot; Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-ExecProcessor-message-from-quot-opt-splunk-etc-apps-ta/m-p/323153#M60190</link>
    <description>&lt;P&gt;Hi All, &lt;/P&gt;

&lt;P&gt;We are using Docker &lt;CODE&gt;Swarm&lt;/CODE&gt; on &lt;CODE&gt;Ubuntu 16.04&lt;/CODE&gt;&lt;BR /&gt;
I'm starting my forwarder stack with below YML file. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;version: '3'

services:
  splunk-forwarder:
    image: splunk/universalforwarder:7.0.0-monitor
    ports:
      - "514:1514/udp"
    deploy:
      replicas: 2
    environment:
      SPLUNK_START_ARGS: --accept-license --answer-yes
      SPLUNK_FORWARD_SERVER: "server:9997"
      SPLUNK_USER: root
    volumes:
      - opt-splunk-etc:/opt/splunk/etc
      - opt-splunk-var:/opt/splunk/var

volumes:
  opt-splunk-etc:
  opt-splunk-var:
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After running stack deploy &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sudo docker stack deploy -c stack-file.yml kiran
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All the containers are propagated with the following error, can you please take a look? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;04-07-2018 00:52:17.485 +0000 ERROR ExecProcessor - message from "/opt/splunk/etc/apps/ta-dockerstats/bin/docker_service.sh" /opt/splunk/etc/apps/ta-dockerstats/bin/docker_service.sh: line 10: docker: command not found
04-07-2018 00:52:17.505 +0000 ERROR ExecProcessor - message from "/opt/splunk/etc/apps/ta-dockerstats/bin/docker_events.sh" Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
04-07-2018 00:52:17.506 +0000 ERROR ExecProcessor - message from "/opt/splunk/etc/apps/ta-dockerstats/bin/docker_top.sh" Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I'm missing? I'm running this on an Ubuntu 16.4 machine. &lt;/P&gt;

&lt;P&gt;Is that a permission issue? &lt;/P&gt;

&lt;P&gt;I already added ENV &lt;CODE&gt;SPLUNK_USER: root&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I tried &lt;CODE&gt;sudo usermod -aG docker $USER&lt;/CODE&gt; but that didn't help.  &lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;BR /&gt;
Kiran&lt;/P&gt;</description>
    <pubDate>Sat, 07 Apr 2018 00:51:36 GMT</pubDate>
    <dc:creator>eygtmbot</dc:creator>
    <dc:date>2018-04-07T00:51:36Z</dc:date>
    <item>
      <title>ERROR ExecProcessor - message from "/opt/splunk/etc/apps/ta-dockerstats/bin/docker_stats.sh" Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-ExecProcessor-message-from-quot-opt-splunk-etc-apps-ta/m-p/323153#M60190</link>
      <description>&lt;P&gt;Hi All, &lt;/P&gt;

&lt;P&gt;We are using Docker &lt;CODE&gt;Swarm&lt;/CODE&gt; on &lt;CODE&gt;Ubuntu 16.04&lt;/CODE&gt;&lt;BR /&gt;
I'm starting my forwarder stack with below YML file. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;version: '3'

services:
  splunk-forwarder:
    image: splunk/universalforwarder:7.0.0-monitor
    ports:
      - "514:1514/udp"
    deploy:
      replicas: 2
    environment:
      SPLUNK_START_ARGS: --accept-license --answer-yes
      SPLUNK_FORWARD_SERVER: "server:9997"
      SPLUNK_USER: root
    volumes:
      - opt-splunk-etc:/opt/splunk/etc
      - opt-splunk-var:/opt/splunk/var

volumes:
  opt-splunk-etc:
  opt-splunk-var:
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After running stack deploy &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sudo docker stack deploy -c stack-file.yml kiran
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All the containers are propagated with the following error, can you please take a look? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;04-07-2018 00:52:17.485 +0000 ERROR ExecProcessor - message from "/opt/splunk/etc/apps/ta-dockerstats/bin/docker_service.sh" /opt/splunk/etc/apps/ta-dockerstats/bin/docker_service.sh: line 10: docker: command not found
04-07-2018 00:52:17.505 +0000 ERROR ExecProcessor - message from "/opt/splunk/etc/apps/ta-dockerstats/bin/docker_events.sh" Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
04-07-2018 00:52:17.506 +0000 ERROR ExecProcessor - message from "/opt/splunk/etc/apps/ta-dockerstats/bin/docker_top.sh" Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I'm missing? I'm running this on an Ubuntu 16.4 machine. &lt;/P&gt;

&lt;P&gt;Is that a permission issue? &lt;/P&gt;

&lt;P&gt;I already added ENV &lt;CODE&gt;SPLUNK_USER: root&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I tried &lt;CODE&gt;sudo usermod -aG docker $USER&lt;/CODE&gt; but that didn't help.  &lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;BR /&gt;
Kiran&lt;/P&gt;</description>
      <pubDate>Sat, 07 Apr 2018 00:51:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-ExecProcessor-message-from-quot-opt-splunk-etc-apps-ta/m-p/323153#M60190</guid>
      <dc:creator>eygtmbot</dc:creator>
      <dc:date>2018-04-07T00:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR ExecProcessor - message from "/opt/splunk/etc/apps/ta-dockerstats/bin/docker_stats.sh" Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-ExecProcessor-message-from-quot-opt-splunk-etc-apps-ta/m-p/323154#M60191</link>
      <description>&lt;P&gt;You do not mount &lt;CODE&gt;/var/run/docker.sock&lt;/CODE&gt; to the container from the host, also few more folders, you can find them in the docs &lt;A href="https://hub.docker.com/r/splunk/universalforwarder/"&gt;https://hub.docker.com/r/splunk/universalforwarder/&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; --volume /var/lib/docker/containers:/host/containers:ro \
 --volume /var/log:/docker/log:ro \
 --volume /var/run/docker.sock:/var/run/docker.sock:ro \
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I see that this page also has a docker-compose example, but seems like this example is for general forwarder, not the forwarder with the scripts to collect docker metrics.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;If you don't mind paid solutions, I would also recommend taking a look at our solution for Monitoring Docker &lt;A href="https://www.outcoldsolutions.com"&gt;https://www.outcoldsolutions.com&lt;/A&gt;. We have a free 30 days trial, instructions on how to install it &lt;A href="https://www.outcoldsolutions.com/docs/monitoring-docker/"&gt;https://www.outcoldsolutions.com/docs/monitoring-docker/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Apr 2018 15:39:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-ExecProcessor-message-from-quot-opt-splunk-etc-apps-ta/m-p/323154#M60191</guid>
      <dc:creator>outcoldman</dc:creator>
      <dc:date>2018-04-08T15:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR ExecProcessor - message from "/opt/splunk/etc/apps/ta-dockerstats/bin/docker_stats.sh" Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-ExecProcessor-message-from-quot-opt-splunk-etc-apps-ta/m-p/323155#M60192</link>
      <description>&lt;P&gt;I didn't try this but I made it work through the &lt;CODE&gt;Splunk&lt;/CODE&gt; driver instead of &lt;CODE&gt;syslog&lt;/CODE&gt;. May I know which one is the splunk recommendation.  Splunk Forwarder or HTTP listener?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Kiran&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 23:47:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-ExecProcessor-message-from-quot-opt-splunk-etc-apps-ta/m-p/323155#M60192</guid>
      <dc:creator>eygtmbot</dc:creator>
      <dc:date>2018-04-17T23:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR ExecProcessor - message from "/opt/splunk/etc/apps/ta-dockerstats/bin/docker_stats.sh" Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/ERROR-ExecProcessor-message-from-quot-opt-splunk-etc-apps-ta/m-p/323156#M60193</link>
      <description>&lt;P&gt;Splunk Docker Driver is great for a start,  but it has some limitations and its issues. As an example, it is not resistant to failures, in case of network failures, it will retry several times, but will give up at some point. &lt;BR /&gt;
But if you will install Heavy Weight Forwarder as a side container on every host and use it as a target for your logs - you will reduce the possibility of network issues between the logging driver and Splunk. And Splunk itself knows how to buffer data before forwarding.&lt;BR /&gt;
Using &lt;CODE&gt;syslog&lt;/CODE&gt; in case if you can use Splunk Logging Driver does not make a lot of sense, because in case of Splunk logging driver you get more Splunk-friendly format, also can add pre-indexed fields from container labels. But there can be situations, where you want to use &lt;CODE&gt;syslog&lt;/CODE&gt; - if you want to reassemble multiline messages into one.&lt;/P&gt;

&lt;P&gt;Saying that - still recommend to look on our solution &lt;A href="https://www.outcoldsolutions.com"&gt;https://www.outcoldsolutions.com&lt;/A&gt;, as we deal with all of these problems, and give you application monitoring on top of that. &lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:59:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/ERROR-ExecProcessor-message-from-quot-opt-splunk-etc-apps-ta/m-p/323156#M60193</guid>
      <dc:creator>outcoldman</dc:creator>
      <dc:date>2018-04-18T14:59:10Z</dc:date>
    </item>
  </channel>
</rss>

