<?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 Logging Driver is Always loading file from the system in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Logging-Driver-is-Always-loading-file-from-the-system/m-p/402235#M6925</link>
    <description>&lt;P&gt;Hello, &lt;BR /&gt;
I'm trying to install &lt;CODE&gt;splunk&lt;/CODE&gt; logging driver on my swarm master. Here is the stack file I'm using &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;version: '3'
services:
  web:
    image: "${DOCKER_IMAGE_PATH}/:${RELEASE_TAG}"
    ports:
      - "8080:8080"
      - "8081:80"
    deploy:
      replicas: 3
    build:
      context: ../../
      dockerfile: ../Dockerfile-js
    environment:
      - PORT=80

#    restart: unless-stopped
    logging:
       driver: splunk
       options:
          splunk-url: "${SPLUNK_URL}"
          splunk-token: "${SPLUNK_TOKEN}"
          splunk-capath: "/mnt/splunk-ca-cert.pem"
          splunk-caname: "${SPLUNK_URL}"
          splunk-insecureskipverify: "false"
          tag: "{{.Name}}/{{.ID}}"
          labels: "NEurope"
          env: "${TARGET_NAME}"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I'm running &lt;CODE&gt;docker stack create -c filname.txt stack_name&lt;/CODE&gt; its searching for &lt;CODE&gt;splunk-capath: "/mnt:/mnt/splunk-ca-cert.pem&lt;/CODE&gt; file in local system. I already copied this file in the container(when image built) same location but stack file is searching in the system instead of container. How can i make my stack file to look for the file inside the container???&lt;/P&gt;

&lt;P&gt;Any help will be appreciated !!! &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 00:19:28 GMT</pubDate>
    <dc:creator>eygtmbot</dc:creator>
    <dc:date>2018-05-17T00:19:28Z</dc:date>
    <item>
      <title>Logging Driver is Always loading file from the system</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Logging-Driver-is-Always-loading-file-from-the-system/m-p/402235#M6925</link>
      <description>&lt;P&gt;Hello, &lt;BR /&gt;
I'm trying to install &lt;CODE&gt;splunk&lt;/CODE&gt; logging driver on my swarm master. Here is the stack file I'm using &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;version: '3'
services:
  web:
    image: "${DOCKER_IMAGE_PATH}/:${RELEASE_TAG}"
    ports:
      - "8080:8080"
      - "8081:80"
    deploy:
      replicas: 3
    build:
      context: ../../
      dockerfile: ../Dockerfile-js
    environment:
      - PORT=80

#    restart: unless-stopped
    logging:
       driver: splunk
       options:
          splunk-url: "${SPLUNK_URL}"
          splunk-token: "${SPLUNK_TOKEN}"
          splunk-capath: "/mnt/splunk-ca-cert.pem"
          splunk-caname: "${SPLUNK_URL}"
          splunk-insecureskipverify: "false"
          tag: "{{.Name}}/{{.ID}}"
          labels: "NEurope"
          env: "${TARGET_NAME}"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I'm running &lt;CODE&gt;docker stack create -c filname.txt stack_name&lt;/CODE&gt; its searching for &lt;CODE&gt;splunk-capath: "/mnt:/mnt/splunk-ca-cert.pem&lt;/CODE&gt; file in local system. I already copied this file in the container(when image built) same location but stack file is searching in the system instead of container. How can i make my stack file to look for the file inside the container???&lt;/P&gt;

&lt;P&gt;Any help will be appreciated !!! &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 00:19:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Logging-Driver-is-Always-loading-file-from-the-system/m-p/402235#M6925</guid>
      <dc:creator>eygtmbot</dc:creator>
      <dc:date>2018-05-17T00:19:28Z</dc:date>
    </item>
  </channel>
</rss>

