<?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: Splunk overwrites outputs.conf and inputs.conf on reboot in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42502#M7929</link>
    <description>&lt;P&gt;Splunk will update your local/inputs.conf and local/outputs.conf to obfuscate passwords for certificate files.  &lt;/P&gt;

&lt;P&gt;Splunk should not remove any options though.  Would you be able to share a before and after of those two configuration files?  &lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2011 05:09:40 GMT</pubDate>
    <dc:creator>bwooden</dc:creator>
    <dc:date>2011-02-11T05:09:40Z</dc:date>
    <item>
      <title>Splunk overwrites outputs.conf and inputs.conf on reboot</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42500#M7927</link>
      <description>&lt;P&gt;Greetings!&lt;/P&gt;

&lt;P&gt;I'm trying to set up a splunk forwarder to use ssl between it and the indexer.  I am only interested in encryption, so am trying to use the default ssl certificates.  I followed the article, &lt;A href="http://www.splunk.com/base/Documentation/4.1.2/Admin/EncryptandauthenticatedatawithSSL" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1.2/Admin/EncryptandauthenticatedatawithSSL&lt;/A&gt;  and when I restart splunk, it changes the files, removing a couple of options and changing the passwords to what looks like a random string.&lt;/P&gt;

&lt;P&gt;Trying to outsmart it, I set outputs.conf on the forwarder and inputs.conf on the indexer with the immutable flag. (chattr +i outputs.conf) and I can see the error in logs where it tries to change the file.  I was able to get it working like this, but don't want to have any 'immutable bombs' in my environment.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Has anyone else encountered this?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;Pete&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2011 03:56:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42500#M7927</guid>
      <dc:creator>wheatstraw</dc:creator>
      <dc:date>2011-02-11T03:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk overwrites outputs.conf and inputs.conf on reboot</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42501#M7928</link>
      <description>&lt;P&gt;What is the full path to the files you're modifying? Certainly at upgrade, any changes made to files in the "default" directories would be overridden, so maybe that's what's triggering it? Anything in "local" directories shouldn't be overwritten, though.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2011 05:02:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42501#M7928</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2011-02-11T05:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk overwrites outputs.conf and inputs.conf on reboot</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42502#M7929</link>
      <description>&lt;P&gt;Splunk will update your local/inputs.conf and local/outputs.conf to obfuscate passwords for certificate files.  &lt;/P&gt;

&lt;P&gt;Splunk should not remove any options though.  Would you be able to share a before and after of those two configuration files?  &lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2011 05:09:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42502#M7929</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2011-02-11T05:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk overwrites outputs.conf and inputs.conf on reboot</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42503#M7930</link>
      <description>&lt;P&gt;Before restart:&lt;/P&gt;

&lt;P&gt;on the forwarder:&lt;/P&gt;

&lt;P&gt;$ sudo cat /opt/splunk/etc/system/local/outputs.conf&lt;BR /&gt;
[tcpout]&lt;BR /&gt;
defaultGroup = ssl_group.domain.com_9997&lt;/P&gt;

&lt;P&gt;[tcpout:ssl_group.domain.com_9997]&lt;BR /&gt;
server = tico:9997&lt;/P&gt;

&lt;P&gt;[tcpout-server://tico:9997]&lt;BR /&gt;
sslCertPath=$SPLUNK_HOME/etc/auth/server.pem&lt;BR /&gt;
sslPassword=password&lt;BR /&gt;
sslRootCAPath=$SPLUNK_HOME/etc/auth/ca.pem&lt;BR /&gt;
sslVerifyServerCert=false&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:24:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42503#M7930</guid>
      <dc:creator>wheatstraw</dc:creator>
      <dc:date>2020-09-28T09:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk overwrites outputs.conf and inputs.conf on reboot</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42504#M7931</link>
      <description>&lt;P&gt;ok, that was ugly.  Going to try to submit my questions as an answer.....&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2011 00:07:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42504#M7931</guid>
      <dc:creator>wheatstraw</dc:creator>
      <dc:date>2011-02-12T00:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk overwrites outputs.conf and inputs.conf on reboot</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42505#M7932</link>
      <description>&lt;P&gt;Before restart:&lt;/P&gt;

&lt;P&gt;on the forwarder:&lt;/P&gt;

&lt;P&gt;$ sudo cat /opt/splunk/etc/system/local/outputs.conf&lt;BR /&gt;
[tcpout]&lt;BR /&gt;
defaultGroup = ssl_group.domain.com_9997&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;[tcpout:ssl_group.domain.com_9997]&lt;BR /&gt;
server = tico:9997&lt;/P&gt;

&lt;P&gt;[tcpout-server://tico:9997]&lt;BR /&gt;
sslCertPath=$SPLUNK_HOME/etc/auth/server.pem&lt;BR /&gt;
sslPassword=password&lt;BR /&gt;
sslRootCAPath=$SPLUNK_HOME/etc/auth/ca.pem&lt;BR /&gt;
sslVerifyServerCert=false&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;and the indexer:&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;$ sudo cat /opt/splunk/etc/system/local/inputs.conf&lt;BR /&gt;
[SSL]&lt;BR /&gt;
serverCert=$SPLUNK_HOME/etc/auth/server.pem&lt;BR /&gt;
password=password&lt;BR /&gt;
rootCA=$SPLUNK_HOME/etc/auth/cacert.pem&lt;BR /&gt;
requireClientCert=false&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;[splunktcp-ssl:9997]&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;and after the restart of both forwarder and indexer
on the forwarder:&lt;/P&gt;

&lt;P&gt;$ sudo cat /opt/splunk/etc/system/local/outputs.conf&lt;BR /&gt;
[tcpout]&lt;BR /&gt;
defaultGroup = ssl_group.domain.com_9997&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;[tcpout:ssl_group.domain.com_9997]&lt;BR /&gt;
server = tico:9997&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;[tcpout-server://tico:9996]&lt;BR /&gt;
sslPassword = $1$gfv0UiKu6wR2
&lt;BR /&gt;
[tcpout-server://tico:9997]&lt;BR /&gt;
sslCertPath = $SPLUNK_HOME/etc/auth/server.pem&lt;BR /&gt;
sslPassword = $1$gfv0UiKu6wR2&lt;BR /&gt;
sslRootCAPath = $SPLUNK_HOME/etc/auth/ca.pem&lt;BR /&gt;
sslVerifyServerCert = false&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;and on the forwarder:&lt;/P&gt;

&lt;P&gt;$ sudo cat /opt/splunk/etc/system/local/inputs.conf&lt;BR /&gt;
&lt;BR /&gt;
[splunktcp-ssl:9997]&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;[SSL]&lt;BR /&gt;
password = $1$nZo1AKEa4vCH&lt;BR /&gt;
requireClientCert = false&lt;BR /&gt;
rootCA = $SPLUNK_HOME/etc/auth/cacert.pem&lt;BR /&gt;
serverCert = $SPLUNK_HOME/etc/auth/server.pem&lt;BR /&gt;
&lt;BR /&gt;
And when testing a quick "logger" command, I see nothing from the forwarder showing up on the indexer's search.
&lt;BR /&gt;
If I get nasty and do:
&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;$ sudo chattr +i /opt/splunk/etc/system/local/outputs.conf
&lt;BR /&gt;and&lt;BR /&gt;
$ sudo chattr +i /opt/splunk/etc/system/local/inputs.conf
&lt;BR /&gt;
respectively on the forwarder and indexer, I can see splunk trying to overwrite my configs in the log:&lt;BR /&gt;
&lt;BR /&gt;
02-11-2011 09:47:44.357 ERROR IniFile - Cannot rename /opt/splunk/etc/system/local/outputs.conf.tmp.30860 to /opt/splunk/etc/system/local/outputs.conf: Rename failed in 1
attempt(s) made between Fri Feb 11 09:47:44 2011 and Fri Feb 11 09:47:44 2011 [status code: 1]
02-11-2011 09:47:44.357 ERROR PropertiesMapConfig - Failed to save settings: /nobody/system/outputs/tcpout-server://tico:9996 (user: , app: , root: /opt/splunk/etc): Could
 not flush changes to disk: /nobody/system/outputs/tcpout-server://tico:9996/sslPassword: ConfPathMapper: /opt/splunk/etc/system/local
02-11-2011 09:47:44.357 INFO  TcpOutputProc - ALL Connections will use SSL with sslCipher=
02-11-2011 09:47:44.357 INFO  TcpOutputProc - initializing single connection with retry strategy for tico:9996
02-11-2011 09:47:44.381 INFO  TcpOutputProc - attempting to connect to tico:9996...
02-11-2011 09:47:44.381 INFO  TcpOutputProc - Will retry at max backoff sleep forever
02-11-2011 09:47:44.381 INFO  TcpOutputProc - Using SSL for server tico:9997, sslCertPath=/opt/splunk/etc/auth/server.pem
02-11-2011 09:47:44.382 ERROR IniFile - Cannot rename /opt/splunk/etc/system/local/outputs.conf.tmp.30860 to /opt/splunk/etc/system/local/outputs.conf: Rename failed in 1
attempt(s) made between Fri Feb 11 09:47:44 2011 and Fri Feb 11 09:47:44 2011 [status code: 1]
02-11-2011 09:47:44.382 WARN  PropertiesMapConfig - Error removing preexisting values: /nobody/system/outputs/tcpout-server://tico:9997 [ConfPathMapper: /opt/splunk/etc/sy
stem/local]
02-11-2011 09:47:44.382 WARN  TcpOutputProc - Failed to make a connection, will retry.
02-11-2011 09:47:44.384 ERROR IniFile - Cannot rename /opt/splunk/etc/system/local/outputs.conf.tmp.30860 to /opt/splunk/etc/system/local/outputs.conf: Rename failed in 1
attempt(s) made between Fri Feb 11 09:47:44 2011 and Fri Feb 11 09:47:44 2011 [status code: 1]
02-11-2011 09:47:44.384 ERROR PropertiesMapConfig - Failed to save settings: /nobody/system/outputs/tcpout-server://tico:9997 (user: , app: , root: /opt/splunk/etc): Could
 not flush changes to disk: /nobody/system/outputs/tcpout-server://tico:9997/sslVerifyServerCert: ConfPathMapper: /opt/splunk/etc/system/local
02-11-2011 09:47:44.384 INFO  TcpOutputProc - ALL Connections will use SSL with sslCipher=
02-11-2011 09:47:44.384 INFO  TcpOutputProc - initializing single connection with retry strategy for tico:9997
02-11-2011 09:47:44.384 INFO  TcpOutputProc - attempting to connect to tico:9997...
02-11-2011 09:47:44.384 INFO  loader - Instantiated plugin: controlqueueoutputprocessor
02-11-2011 09:47:44.384 INFO  PipelineComponent - Pipeline merging disabled in *mode.conf file
02-11-2011 09:47:44.384 INFO  PipelineComponent - Pipeline typing disabled in *mode.conf file
02-11-2011 09:47:44.384 INFO  loader - Running....
02-11-2011 09:47:44.384 INFO  PipelineComponent - Launching the pipelines.
02-11-2011 09:47:44.384 ERROR IndexProcessor - received event for unconfigured/disabled index='_audit' with source='source::audittrail' host='host::localhost' sourcetype='
sourcetype::audittrail'
02-11-2011 09:47:44.385 WARN  pipeline - Exiting pipeline tail gracefully: got eExit from processor tail
02-11-2011 09:47:44.385 INFO  loader - Server supporting SSL v2/v3
02-11-2011 09:47:44.385 INFO  loader - Using cipher suite ALL:!aNULL:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
And now, with the immutable flag set, I have ssl traffic from forwarder to indexer and log entries show up as expected.
&lt;BR /&gt;&lt;BR /&gt;
Summary:  &lt;BR /&gt;&lt;BR /&gt;
If I immute (is that a verb?  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ) the outputs and inputs files, splunk can't muck with them and all works.  I just don't want to do this in our production indexer for fear of leaving a little time bomb.
&lt;BR /&gt;
I could swear it wasn't just the passwords when working with it a week ago, but I've slept a bit since then.  :)
&lt;BR /&gt;
Thank you so much for offering assistance!&lt;/P&gt;

&lt;P&gt;Pete&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2011 00:07:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42505#M7932</guid>
      <dc:creator>wheatstraw</dc:creator>
      <dc:date>2011-02-12T00:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk overwrites outputs.conf and inputs.conf on reboot</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42506#M7933</link>
      <description>&lt;P&gt;You can edit the original question and update it too.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2011 08:00:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42506#M7933</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-02-26T08:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk overwrites outputs.conf and inputs.conf on reboot</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42507#M7934</link>
      <description>&lt;P&gt;Found this "Note that the server certificate pass phrase will be hashed and stored in $SPLUNK_HOME/etc/system/local/inputs.conf, overwriting the clear-text value of "password" if it was defined there. If "password" was defined in clear-text in an inputs.conf located in an app, it &lt;EM&gt;will not&lt;/EM&gt; be hashed there and will still be present in clear text in that location. This doesn't matter too much in this case since the pass phrase for the default server certificate is well known. " here - &lt;A href="http://www.splunk.com/wiki/Community:Splunk2Splunk_SSL_DefaultCerts" target="_blank"&gt;http://www.splunk.com/wiki/Community:Splunk2Splunk_SSL_DefaultCerts&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:02:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42507#M7934</guid>
      <dc:creator>Charlie</dc:creator>
      <dc:date>2020-09-28T10:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk overwrites outputs.conf and inputs.conf on reboot</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42508#M7935</link>
      <description>&lt;P&gt;Im having same issue on a Windows 2008 setup&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 16:37:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-overwrites-outputs-conf-and-inputs-conf-on-reboot/m-p/42508#M7935</guid>
      <dc:creator>cmahan</dc:creator>
      <dc:date>2015-09-15T16:37:30Z</dc:date>
    </item>
  </channel>
</rss>

