<?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: Encountering a &amp;quot;command not found&amp;quot; error when executing rebuild command in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Encountering-a-quot-command-not-found-quot-error-when-executing/m-p/395158#M70495</link>
    <description>&lt;P&gt;Might just be a copy / paste error, but you are missing the closing double quotes. Anyway double quotes should not be necessary here, use the full path and the bucket directory instead :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; splunk rebuild /full/path/to/splunk/var/lib/splunk/indexname/thaweddb/bucketnamehere
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jun 2018 20:52:24 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2018-06-18T20:52:24Z</dc:date>
    <item>
      <title>Encountering a "command not found" error when executing rebuild command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Encountering-a-quot-command-not-found-quot-error-when-executing/m-p/395157#M70494</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I executed the below command on an indexer but received a "rebuild: command not found" error message:&lt;/P&gt;

&lt;P&gt;splunk rebuild "app/splunk/var/lib/splunk/indexname/thaweddb/&lt;/P&gt;

&lt;P&gt;The file name was the name of the frozen bucket that was copied over the Thawed directory since I'm trying to restore archived data from one bucket.&lt;/P&gt;

&lt;P&gt;How can I execute this command without error? It appears that Splunk isn't recognizing the rebuild command for some reason.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 20:11:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Encountering-a-quot-command-not-found-quot-error-when-executing/m-p/395157#M70494</guid>
      <dc:creator>adnankhan5133</dc:creator>
      <dc:date>2018-06-18T20:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Encountering a "command not found" error when executing rebuild command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Encountering-a-quot-command-not-found-quot-error-when-executing/m-p/395158#M70495</link>
      <description>&lt;P&gt;Might just be a copy / paste error, but you are missing the closing double quotes. Anyway double quotes should not be necessary here, use the full path and the bucket directory instead :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; splunk rebuild /full/path/to/splunk/var/lib/splunk/indexname/thaweddb/bucketnamehere
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 20:52:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Encountering-a-quot-command-not-found-quot-error-when-executing/m-p/395158#M70495</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-06-18T20:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Encountering a "command not found" error when executing rebuild command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Encountering-a-quot-command-not-found-quot-error-when-executing/m-p/395159#M70496</link>
      <description>&lt;P&gt;Hi MuS,&lt;/P&gt;

&lt;P&gt;I tried again without the quotes since those aren't needed:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;splunk rebuild app/splunk/var/lib/splunk/cisco_ios/thaweddb/rb_1513987154_1513901000_D4AJ321&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;That's the full path to the frozen bucket which has been copied to the thawed directory and I have been following the instructions written here under the section "Thaw a 4.2+ archive": &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/Indexer/Restorearchiveddata" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/Indexer/Restorearchiveddata&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;However, I got the below error&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;bash: splunk: command not found&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:05:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Encountering-a-quot-command-not-found-quot-error-when-executing/m-p/395159#M70496</guid>
      <dc:creator>adnankhan5133</dc:creator>
      <dc:date>2020-09-29T20:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Encountering a "command not found" error when executing rebuild command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Encountering-a-quot-command-not-found-quot-error-when-executing/m-p/395160#M70497</link>
      <description>&lt;P&gt;This is a different error this time &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Try it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/full/path/to/splunk/bin/splunk rebuild app/splunk/var/lib/splunk/cisco_ios/thaweddb/rb_1513987154_1513901000_D4AJ321
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, using the bucket path without leading &lt;CODE&gt;/&lt;/CODE&gt; will assume the &lt;CODE&gt;app&lt;/CODE&gt; directory is in the directory you are executing the command. Use full paths to be sure.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 21:23:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Encountering-a-quot-command-not-found-quot-error-when-executing/m-p/395160#M70497</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-06-18T21:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Encountering a "command not found" error when executing rebuild command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Encountering-a-quot-command-not-found-quot-error-when-executing/m-p/395161#M70498</link>
      <description>&lt;P&gt;Thanks, that command actually worked!&lt;/P&gt;

&lt;P&gt;While this is probably a separate question, I seem to be running into parsing issues with the bucket after successfully executing the splunk rebuild command:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Unable to parse bucket name for bucketType=app/splunk/var/lib/splunk/cisco_ios/thaweddb/rb_1513987154_1513901000_D4AJ321&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Is this a bug of some sort? The bucket should be searchable now, but it's not.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:05:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Encountering-a-quot-command-not-found-quot-error-when-executing/m-p/395161#M70498</guid>
      <dc:creator>adnankhan5133</dc:creator>
      <dc:date>2020-09-29T20:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Encountering a "command not found" error when executing rebuild command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Encountering-a-quot-command-not-found-quot-error-when-executing/m-p/395162#M70499</link>
      <description>&lt;P&gt;Nope, no bug. &lt;/P&gt;

&lt;P&gt;Splunk tells you it cannot parse the name of the bucket. It might be as easy as renaming &lt;CODE&gt;app/splunk/var/lib/splunk/cisco_ios/thaweddb/rb_1513987154_1513901000_D4AJ321&lt;/CODE&gt; to &lt;CODE&gt;app/splunk/var/lib/splunk/cisco_ios/thaweddb/db_1513987154_1513901000_D4AJ321&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But reading this just now, this name looks weird... bucket names are usually &lt;CODE&gt;[r|d]b_latest epoch_earliest epoch_bucketid_Splunk instance GUID&lt;/CODE&gt; since you are using a bucket called &lt;CODE&gt;rb_*&lt;/CODE&gt; it indicates it is from a index cluster and therefore the bucket name is incorrect.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 06:36:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Encountering-a-quot-command-not-found-quot-error-when-executing/m-p/395162#M70499</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-06-19T06:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Encountering a "command not found" error when executing rebuild command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Encountering-a-quot-command-not-found-quot-error-when-executing/m-p/395163#M70500</link>
      <description>&lt;P&gt;Hmm, so I tried again with a different log source (Linux) and took the following steps. I had a copy/paste error when I previously pasted the bucket name.&lt;/P&gt;

&lt;P&gt;Steps:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;1) cp -r db_1497345908_1495723992_122_5CA73C89-0181-4ADB-B618-341094395DA1 /app/splunk/var/lib/splunk/linux/thaweddb&lt;BR /&gt;
--- need to go to the frozen bucket of linux (/backup/splunk/frozen/linux/frozen)&lt;BR /&gt;
2) /app/splunk/bin/splunk rebuild /app/splunk/var/lib/splunk/linux/thaweddb/db_1497345908_1495723992_122_5CA73C89-0181-4ADB-B618-341094395DA&lt;/STRONG&gt;1&lt;/P&gt;

&lt;P&gt;--- Rebuild was successful and Splunk indexer was restarted&lt;/P&gt;

&lt;P&gt;However, I encountered the same error when checking in the search console:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;06-19-2018 00:19:44.521 -0700 ERROR BucketReplicator - Unable to parse bucket name for bucketType=/app/splunk/var/lib/splunk/linux/thaweddb/db_1497345908_1495723992_122_5CA73C89-0181-4ADB-B618-341094395DA1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The naming convention for the archived buckets is actually the same across the board. The archived bucket was retrieved from a filepath called /backup/splunk/frozen/linux/frozen. The bucket would contain data that is around 5 months old - this is what I'm attempting to restore in our search head which only stores the last 3 months of data.&lt;/P&gt;

&lt;P&gt;Any help/direction would be greatly appreciated! &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:05:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Encountering-a-quot-command-not-found-quot-error-when-executing/m-p/395163#M70500</guid>
      <dc:creator>adnankhan5133</dc:creator>
      <dc:date>2020-09-29T20:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Encountering a "command not found" error when executing rebuild command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Encountering-a-quot-command-not-found-quot-error-when-executing/m-p/395164#M70501</link>
      <description>&lt;P&gt;Okay, now that you provided the full error message it looks like you hit a know feature - err bug &lt;CODE&gt;SPL-90468:Clustering: can't replicate thawed buckets&lt;/CODE&gt; - &lt;A href="https://answers.splunk.com/answers/153341/thawed-buckets-error-clusterslavebuckethandler-failed-to-trigger-replication.html"&gt;https://answers.splunk.com/answers/153341/thawed-buckets-error-clusterslavebuckethandler-failed-to-trigger-replication.html&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;But this is not related to your search, can you put it into a dev/test instance, and into a brand new empty index to see if this shows anything over all time?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 20:06:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Encountering-a-quot-command-not-found-quot-error-when-executing/m-p/395164#M70501</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-06-19T20:06:21Z</dc:date>
    </item>
  </channel>
</rss>

