<?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 the contents of inputs.conf get reset. in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/the-contents-of-inputs-conf-get-reset/m-p/740522#M21745</link>
    <description>&lt;P&gt;I am running a Splunk Indexer on Docker in an EC2 instance. I use the following Compose file to start the service. However, every time I restart the EC2 instance, the contents of inputs.conf get reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;version: "3.6"

networks:
  splunknet:
    driver: bridge
    attachable: true

volumes:
  splunk-var:
    external: true
  splunk-etc:
    external: true

services:
  splunk:
    networks:
      splunknet:
        aliases:
          - splunk
    image: xxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com/splunk/splunk:latest
    container_name: splunk
    restart: always
    environment:
      - SPLUNK_START_ARGS=--accept-license
      - SPLUNK_PASSWORD=password
    ports:
      - "80:8000"
      - "9997:9997"
    volumes:
      - splunk-var:/opt/splunk/var
      - splunk-etc:/opt/splunk/etc&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is my conf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[splunktcp-ssl:9997]
disabled = 0

[SSL]
serverCert = /opt/splunk/etc/auth/mycerts/myCombinedServerCertificate.pem
sslPassword = password
requireClientCert = false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Mar 2025 06:14:06 GMT</pubDate>
    <dc:creator>tt-nexteng</dc:creator>
    <dc:date>2025-03-03T06:14:06Z</dc:date>
    <item>
      <title>the contents of inputs.conf get reset.</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/the-contents-of-inputs-conf-get-reset/m-p/740522#M21745</link>
      <description>&lt;P&gt;I am running a Splunk Indexer on Docker in an EC2 instance. I use the following Compose file to start the service. However, every time I restart the EC2 instance, the contents of inputs.conf get reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;version: "3.6"

networks:
  splunknet:
    driver: bridge
    attachable: true

volumes:
  splunk-var:
    external: true
  splunk-etc:
    external: true

services:
  splunk:
    networks:
      splunknet:
        aliases:
          - splunk
    image: xxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com/splunk/splunk:latest
    container_name: splunk
    restart: always
    environment:
      - SPLUNK_START_ARGS=--accept-license
      - SPLUNK_PASSWORD=password
    ports:
      - "80:8000"
      - "9997:9997"
    volumes:
      - splunk-var:/opt/splunk/var
      - splunk-etc:/opt/splunk/etc&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is my conf.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[splunktcp-ssl:9997]
disabled = 0

[SSL]
serverCert = /opt/splunk/etc/auth/mycerts/myCombinedServerCertificate.pem
sslPassword = password
requireClientCert = false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 06:14:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/the-contents-of-inputs-conf-get-reset/m-p/740522#M21745</guid>
      <dc:creator>tt-nexteng</dc:creator>
      <dc:date>2025-03-03T06:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: the contents of inputs.conf get reset.</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/the-contents-of-inputs-conf-get-reset/m-p/740536#M21746</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/275564"&gt;@tt-nexteng&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How are you loading your inputs.conf into the Docker image? Are you adding directly into the container once it has started up? Splunk Ansible runs each time the container starts, therefore the container is fairly&amp;nbsp;&lt;SPAN&gt;idempotent and will apply the configuration defined in default.yml / docker-compose ENV variables when started.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Check out&amp;nbsp;&lt;A href="https://splunk.github.io/docker-splunk/ADVANCED.html" target="_blank"&gt;https://splunk.github.io/docker-splunk/ADVANCED.html&lt;/A&gt;&amp;nbsp;for some configuration options you might want to look at to persist the inputs.conf - Specifically the section around enabling SSL as this has the config for inputs on port 9997 too!&lt;BR /&gt;&lt;A href="https://splunk.github.io/docker-splunk/ADVANCED.html#:~:text=distributed%2C%20containerized%20environment.-,Enable%20SSL%20Internal%20Communication,-To%20secure%20network" target="_blank"&gt;https://splunk.github.io/docker-splunk/ADVANCED.html#:~:text=distributed%2C%20containerized%20environment.-,Enable%20SSL%20Internal%20Communication,-To%20secure%20network&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample default.yml snippet to configure Splunk TCP with SSL:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk:
  ...
  s2s:
    ca: /mnt/certs/ca.pem
    cert: /mnt/certs/cert.pem
    enable: true
    password: abcd1234
    port: 9997
    ssl: true
  ...&lt;/LI-CODE&gt;&lt;P&gt;Please let me know how you get on and consider adding karma to this or any other answer if it has helped.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 07:12:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/the-contents-of-inputs-conf-get-reset/m-p/740536#M21746</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-03T07:12:54Z</dc:date>
    </item>
  </channel>
</rss>

