<?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: restarting splunk from script input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/restarting-splunk-from-script-input/m-p/528241#M89062</link>
    <description>&lt;P&gt;cuz I'd like to shut it down, back it up, upgrade it and restart it.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2020 00:49:13 GMT</pubDate>
    <dc:creator>Cstone1</dc:creator>
    <dc:date>2020-11-06T00:49:13Z</dc:date>
    <item>
      <title>restarting splunk from script input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/restarting-splunk-from-script-input/m-p/526956#M88880</link>
      <description>&lt;P&gt;trying to restart splunk via a script... everything in the script works fine but when the restart happens the script dies at that point too. how to have splunk start the script on startup and when it does the restart, keep the script running and let it complete on its own (windows and linux)?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 19:31:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/restarting-splunk-from-script-input/m-p/526956#M88880</guid>
      <dc:creator>Cstone1</dc:creator>
      <dc:date>2020-10-28T19:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: restarting splunk from script input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/restarting-splunk-from-script-input/m-p/527472#M88959</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225608"&gt;@Cstone1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Are you wanting to have a splunk "instance", kick-off a script &lt;FONT color="#3366FF"&gt;(via an app)&lt;/FONT&gt; that does a restart&lt;FONT color="#3366FF"&gt; (of the splunk service I'm guessing)&lt;/FONT&gt; that of which keeps the script running after the restart portion?&lt;/P&gt;&lt;P&gt;Might I ask as to what you are trying to accomplish before and after you are wanting the splunk service to restart?&lt;/P&gt;&lt;P&gt;I look forward to hearing from you&lt;/P&gt;&lt;P&gt;V/R,&lt;BR /&gt;nwuest&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 07:08:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/restarting-splunk-from-script-input/m-p/527472#M88959</guid>
      <dc:creator>nwuest</dc:creator>
      <dc:date>2020-11-02T07:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: restarting splunk from script input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/restarting-splunk-from-script-input/m-p/528241#M89062</link>
      <description>&lt;P&gt;cuz I'd like to shut it down, back it up, upgrade it and restart it.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 00:49:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/restarting-splunk-from-script-input/m-p/528241#M89062</guid>
      <dc:creator>Cstone1</dc:creator>
      <dc:date>2020-11-06T00:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: restarting splunk from script input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/restarting-splunk-from-script-input/m-p/528390#M89084</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225608"&gt;@Cstone1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;So if I'm reading this right, you are "restarting" splunk after you upgrade it?&lt;/P&gt;&lt;P&gt;If so, that is where the script is breaking. After you upgrade a Splunk Instance, you need to accept the End User License Agreement again before it will even start.&lt;BR /&gt;Splunk cannot "restart" an instance that hasn't made it past the End User License Agreement step.&lt;/P&gt;&lt;P&gt;You can accept the license but instead of "splunk restart" you should use the following command depending on your splunk instance:&lt;/P&gt;&lt;P&gt;&lt;U&gt;Splunk Enterprise:&lt;/U&gt;&lt;BR /&gt;"/opt/splunk/bin/splunk start --accept-license"&lt;BR /&gt;- OR-&lt;BR /&gt;&lt;U&gt;Splunk Universal Forwarder:&lt;/U&gt;&lt;BR /&gt;"/opt/splunkforwarder/bin/splunk start --accept-license"&lt;/P&gt;&lt;P&gt;Let us know if this fixes your script!&lt;/P&gt;&lt;P&gt;V/R,&lt;BR /&gt;nwuest&lt;/P&gt;</description>
      <pubDate>Sat, 07 Nov 2020 04:29:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/restarting-splunk-from-script-input/m-p/528390#M89084</guid>
      <dc:creator>nwuest</dc:creator>
      <dc:date>2020-11-07T04:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: restarting splunk from script input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/restarting-splunk-from-script-input/m-p/528415#M89090</link>
      <description>&lt;P&gt;hi thx for the reply but, no not quite.&lt;/P&gt;&lt;P&gt;In windows the MSI will install while splunk is running and restart it after its done. But in linux its a TGZ extract (not locking it to a specific distro using rpms or debs etc).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Extracting it while running causes a lot of errors and sometimes succeeds but not reliable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So a very highlevel sequence is this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. do all checks&lt;/P&gt;&lt;P&gt;2. stop splunk&lt;/P&gt;&lt;P&gt;3. create backup&lt;/P&gt;&lt;P&gt;script dies when splunk stops so a partial backup is made.&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. untar new&lt;/P&gt;&lt;P&gt;5. restart with accept lic and answer yes&lt;/P&gt;&lt;P&gt;ill add, that when i run it manually it works fine.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Nov 2020 06:50:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/restarting-splunk-from-script-input/m-p/528415#M89090</guid>
      <dc:creator>Cstone1</dc:creator>
      <dc:date>2020-11-08T06:50:14Z</dc:date>
    </item>
  </channel>
</rss>

