<?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: Installing Splunk with existing splunk.secret in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Installing-Splunk-with-existing-splunk-secret/m-p/672862#M13497</link>
    <description>&lt;DIV class=""&gt;&lt;STRONG&gt;This was a writeup that I did for this&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Backup Splunk&lt;/STRONG&gt;&lt;/DIV&gt;&lt;OL class=""&gt;&lt;LI&gt;Stop and Backup the entire Splunk folder if able.&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;/opt/splunk/bin/splunk stop&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;tar -zcvf splunk_pre_secret.tar.gz /opt/splunk/etc&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Find encrypted passwords&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;find /opt/splunk/etc -name '*.conf' -exec grep -inH '\$[0-9]\$' {} \;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;OL class=""&gt;&lt;LI&gt;Record the context (file location, stanza, parameter)&lt;/LI&gt;&lt;LI&gt;Can decrypt the hashed passwords with the following&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;/opt/splunk/bin/splunk show-decrypted --value 'PASSWORDHASH'&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Updating the splunk.secret&lt;/STRONG&gt;&lt;/DIV&gt;&lt;OL class=""&gt;&lt;LI&gt;Copy the splunk.secret file from 192.168.70.2 to /opt/splunk/etc/auth/splunk.secret on the target system.&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;cp /home/dapslunk/splunk.secret /opt/splunk/etc/auth/splunk.secret&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Ensure the permissions are correct 400&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;ll /opt/splunk/etc/auth/splunk.secret&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Update all of the password sections&lt;/STRONG&gt;&lt;/DIV&gt;&lt;OL class=""&gt;&lt;LI&gt;Use the following to find any missed passwords that have not been corrected.&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;find /opt/splunk/etc -name '*.conf' -exec grep -inH '\$[0-9]\$' {} \;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Restart Splunk&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;/opt/splunk/bin/splunk restart&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Verify&lt;/STRONG&gt;&lt;/DIV&gt;&lt;OL class=""&gt;&lt;LI&gt;Access to Splunk GUI&lt;/LI&gt;&lt;LI&gt;If any splunk commands that require authentication work&lt;/LI&gt;&lt;LI&gt;Connection to license master /cluster/ deployment server&lt;/LI&gt;&lt;LI&gt;If any inputs have data coming in&lt;/LI&gt;&lt;LI&gt;If LDAP authentication works&lt;/LI&gt;&lt;LI&gt;If all passwords are encrypted. Use the command from before.&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Fri, 29 Dec 2023 00:21:45 GMT</pubDate>
    <dc:creator>matthewssa</dc:creator>
    <dc:date>2023-12-29T00:21:45Z</dc:date>
    <item>
      <title>Installing Splunk with existing splunk.secret</title>
      <link>https://community.splunk.com/t5/Installation/Installing-Splunk-with-existing-splunk-secret/m-p/640005#M12786</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;My situation is I'm doing a new installation of Splunk on a windows instance with an existing splunk.secret.&lt;/P&gt;&lt;P&gt;Question: Is there a command line flag to pass the splunk.secret during the initial installation?&lt;/P&gt;&lt;P&gt;My process in the past was to install Splunk without launching in order to prevent passwords from being generated. Then copy the splunk.secret over and start Splunk. It has been a while though and I think something changed, because Splunk writes a password to server.conf even if it isn't started for the first time. Now I have to remove the password with another command before starting it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 19:49:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Installing-Splunk-with-existing-splunk-secret/m-p/640005#M12786</guid>
      <dc:creator>matthewssa</dc:creator>
      <dc:date>2023-04-14T19:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Splunk with existing splunk.secret</title>
      <link>https://community.splunk.com/t5/Installation/Installing-Splunk-with-existing-splunk-secret/m-p/640136#M12796</link>
      <description>&lt;P&gt;Install Splunk the way that you plan to.&amp;nbsp; Start Splunk. See what the pat is where it creates the splunk.secret file.&amp;nbsp; Stop Splunk.&amp;nbsp; Remove EVERYTHING.&amp;nbsp; Reinstall Splunk. BEFORE YOU START SPLUNK, drop the splunk.secret file.&amp;nbsp; Start Splunk.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Apr 2023 20:49:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Installing-Splunk-with-existing-splunk-secret/m-p/640136#M12796</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-16T20:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Installing Splunk with existing splunk.secret</title>
      <link>https://community.splunk.com/t5/Installation/Installing-Splunk-with-existing-splunk-secret/m-p/672862#M13497</link>
      <description>&lt;DIV class=""&gt;&lt;STRONG&gt;This was a writeup that I did for this&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Backup Splunk&lt;/STRONG&gt;&lt;/DIV&gt;&lt;OL class=""&gt;&lt;LI&gt;Stop and Backup the entire Splunk folder if able.&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;/opt/splunk/bin/splunk stop&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;tar -zcvf splunk_pre_secret.tar.gz /opt/splunk/etc&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Find encrypted passwords&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;find /opt/splunk/etc -name '*.conf' -exec grep -inH '\$[0-9]\$' {} \;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;OL class=""&gt;&lt;LI&gt;Record the context (file location, stanza, parameter)&lt;/LI&gt;&lt;LI&gt;Can decrypt the hashed passwords with the following&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;/opt/splunk/bin/splunk show-decrypted --value 'PASSWORDHASH'&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Updating the splunk.secret&lt;/STRONG&gt;&lt;/DIV&gt;&lt;OL class=""&gt;&lt;LI&gt;Copy the splunk.secret file from 192.168.70.2 to /opt/splunk/etc/auth/splunk.secret on the target system.&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;cp /home/dapslunk/splunk.secret /opt/splunk/etc/auth/splunk.secret&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Ensure the permissions are correct 400&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;ll /opt/splunk/etc/auth/splunk.secret&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Update all of the password sections&lt;/STRONG&gt;&lt;/DIV&gt;&lt;OL class=""&gt;&lt;LI&gt;Use the following to find any missed passwords that have not been corrected.&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;find /opt/splunk/etc -name '*.conf' -exec grep -inH '\$[0-9]\$' {} \;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Restart Splunk&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;/opt/splunk/bin/splunk restart&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Verify&lt;/STRONG&gt;&lt;/DIV&gt;&lt;OL class=""&gt;&lt;LI&gt;Access to Splunk GUI&lt;/LI&gt;&lt;LI&gt;If any splunk commands that require authentication work&lt;/LI&gt;&lt;LI&gt;Connection to license master /cluster/ deployment server&lt;/LI&gt;&lt;LI&gt;If any inputs have data coming in&lt;/LI&gt;&lt;LI&gt;If LDAP authentication works&lt;/LI&gt;&lt;LI&gt;If all passwords are encrypted. Use the command from before.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 29 Dec 2023 00:21:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Installing-Splunk-with-existing-splunk-secret/m-p/672862#M13497</guid>
      <dc:creator>matthewssa</dc:creator>
      <dc:date>2023-12-29T00:21:45Z</dc:date>
    </item>
  </channel>
</rss>

