<?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: |delete hang  indefinetely in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/delete-hang-indefinetely/m-p/118997#M24715</link>
    <description>&lt;P&gt;Removing the .rbsentinel files solved the issue for me. Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Oct 2014 08:37:19 GMT</pubDate>
    <dc:creator>asetyyli</dc:creator>
    <dc:date>2014-10-10T08:37:19Z</dc:date>
    <item>
      <title>|delete hang  indefinetely</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/delete-hang-indefinetely/m-p/118992#M24710</link>
      <description>&lt;P&gt;Issue :&lt;BR /&gt;
I am trying to "delete" bunch of events from the index by using "| delete" command. &lt;BR /&gt;
The search without "| delete" returns results with no problem. But when I add "| delete" to the end of the command line it just hangs. &lt;/P&gt;

&lt;P&gt;Search query: &lt;BR /&gt;
$ /opt/splunk/bin/splunk search 'index=security source=billing.log earliest=-39d latest=-38d' &lt;/P&gt;

&lt;P&gt;Search query with "| delete" &lt;BR /&gt;
/opt/splunk/bin/splunk search 'index=security source=billing.log earliest=-39d latest=-38d | delete' &lt;/P&gt;

&lt;P&gt;The same query in the "Runnig jobs" list in UI looks like the following (&lt;A href="http://goo.gl/8xITae):" target="_blank"&gt;http://goo.gl/8xITae):&lt;/A&gt; &lt;BR /&gt;
index=security source=billing.log earliest=-39d latest=-38d | delete | head 100 | export add_timestamp=f add_offset=t segmentation=raw &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:55:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/delete-hang-indefinetely/m-p/118992#M24710</guid>
      <dc:creator>rbal_splunk</dc:creator>
      <dc:date>2020-09-28T16:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: |delete hang  indefinetely</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/delete-hang-indefinetely/m-p/118993#M24711</link>
      <description>&lt;P&gt;It was found that  bunch of &lt;CODE&gt;.db_*.rbsentinel&lt;/CODE&gt; files have been created in the db/ folder. One of those files had a .lock extension, figured that the name of the &lt;CODE&gt;*.lock&lt;/CODE&gt; file is related to the bucket that contains events which supposed to be deleted by the search query.&lt;/P&gt;

&lt;P&gt;Had to stopped Splunk and removed all the .rbsentinel files and started splunk again. After that the same search query piped to the "delete" was able to delete events as expected.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 06:30:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/delete-hang-indefinetely/m-p/118993#M24711</guid>
      <dc:creator>rbal_splunk</dc:creator>
      <dc:date>2014-06-25T06:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: |delete hang  indefinetely</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/delete-hang-indefinetely/m-p/118994#M24712</link>
      <description>&lt;P&gt;This behavior is caused due to bugs&lt;/P&gt;

&lt;P&gt;SPL-84276-If a search process is waiting to acquire a lock then it should print lock file information in search.log&lt;BR /&gt;
SPL-81481-If a search process is waiting to acquire a lock then it should print lock file information in search.log &lt;/P&gt;

&lt;P&gt;Bug is expected to be fixed din 6.0.6&lt;/P&gt;

&lt;P&gt;Steps to reproduce &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Search index=_internal sourcetype=splunk_web_access | eval bkt=_bkt | stats count by bkt, sourcetype and select a bucket drilldown on a slightly older bucket. For me, I had buckets 11 to 38 and I selected 35. Note the number of event that bucket&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;The drilldown search will look something like index=_internal sourcetype=splunk_web_access | eval bkt=_bkt | search bkt="_internal~35~687F80CD-2706-4248-8773-C09142624BB2". From the search results, select a unique requestid.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Run the search index=_internal sourcetype=splunk_web_access _bkt="35" 536a6a176e7fc09c5209d0 where 536a6a176e7fc09c5209d0 is my unique requestid and 35 is my selected bucket number. This should return only one result.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Now cd into the bucket var/lib/splunk/internaldb/db/db*35 and create a lock file with the same name as tsidx file. In my case the tsdix file name is 1399792823-1399758630-17977910403059112245.tsidx. The lock file created was 1399792823-1399758630-17977910403059112245.tsidx.lock&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Now run index=_internal sourcetype=splunk_web_access _bkt="35" 536a6a176e7fc09c5209d0 | delete. This search should keep running indefinitely.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;To replicate what the user behavior and get the matching pstacks, run the above search in another tab without closing this tab. Basically you have 2 searches running indefinetely&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:55:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/delete-hang-indefinetely/m-p/118994#M24712</guid>
      <dc:creator>sat94541</dc:creator>
      <dc:date>2020-09-28T16:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: |delete hang  indefinetely</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/delete-hang-indefinetely/m-p/118995#M24713</link>
      <description>&lt;P&gt;Are there any updates to this? I followed the steps above and deleted the mentioned files under "C:/Program Files/Splunk/var/lib/splunk/defaultdb/db" and restarted splunk.  Then reran the |delete command and my delete is still hanging.  Any additional help would be appreciated.  Thanks. &lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2014 14:07:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/delete-hang-indefinetely/m-p/118995#M24713</guid>
      <dc:creator>hogan24</dc:creator>
      <dc:date>2014-07-08T14:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: |delete hang  indefinetely</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/delete-hang-indefinetely/m-p/118996#M24714</link>
      <description>&lt;P&gt;I'm also currently on v6.1.1 if that helps. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2014 14:10:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/delete-hang-indefinetely/m-p/118996#M24714</guid>
      <dc:creator>hogan24</dc:creator>
      <dc:date>2014-07-08T14:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: |delete hang  indefinetely</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/delete-hang-indefinetely/m-p/118997#M24715</link>
      <description>&lt;P&gt;Removing the .rbsentinel files solved the issue for me. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Oct 2014 08:37:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/delete-hang-indefinetely/m-p/118997#M24715</guid>
      <dc:creator>asetyyli</dc:creator>
      <dc:date>2014-10-10T08:37:19Z</dc:date>
    </item>
  </channel>
</rss>

