<?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: events were not deleted and delete-query hangs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308204#M58042</link>
    <description>&lt;P&gt;I have run &lt;CODE&gt;./splunk cmd splunkd fsck scan  --all-buckets-one-index --index-name=myindex&lt;/CODE&gt;&lt;BR /&gt;
and got "No issues found" many times. I think the buckets are okay. &lt;/P&gt;

&lt;P&gt;Is the splunk fsck comparable to the linux fsck?&lt;/P&gt;

&lt;P&gt;Best regards &lt;BR /&gt;
 Marco &lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2017 07:20:17 GMT</pubDate>
    <dc:creator>marcokrueger</dc:creator>
    <dc:date>2017-05-24T07:20:17Z</dc:date>
    <item>
      <title>events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308195#M58033</link>
      <description>&lt;P&gt;Currently, we want to delete some events (that is, all events with a certain sourcetype in a defined range in 2016) from Splunk. And normally, deleting with   &lt;CODE&gt;... | delete&lt;/CODE&gt;   works fine and almost all events could be deleted successfully. However, for some single days, the delete-query hangs and lets thousends of events undeleted. The index, sourcetype etc. are all equal, but the events won't let themselves be deleted &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;What we observe is that when we run the search   &lt;CODE&gt;index=myindex sourcetype=mytype earliest="03/27/2016:00:00:00" latest="03/28/2016:00:00:00"  | delete&lt;/CODE&gt; we get &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;INFO: 0 events successfully deleted&lt;BR /&gt;
INFO: 0 events successfully deleted&lt;BR /&gt;
INFO: 0 events successfully deleted&lt;BR /&gt;
INFO: 0 events successfully deleted&lt;BR /&gt;
...&lt;BR /&gt;
till to the bitter end. But &lt;CODE&gt;index=myindex sourcetype=mytype earliest="03/27/2016:00:00:00" latest="03/28/2016:00:00:00 | stats count&lt;/CODE&gt; immediately gives the result&lt;BR /&gt;
INFO: Your timerange was substituted based on your search string&lt;/P&gt;

&lt;H2&gt;count&lt;/H2&gt;

&lt;P&gt;239343&lt;BR /&gt;
now we are totally distressed. Does anybody know how to get Splunk to delete the events? &lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;P.S. &lt;BR /&gt;
Unfortunaly cleaning the whole index is not an option. &lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 07:09:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308195#M58033</guid>
      <dc:creator>marcokrueger</dc:creator>
      <dc:date>2017-05-23T07:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308196#M58034</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;As per delete command documentation (&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.6.0/SearchReference/Delete"&gt;https://docs.splunk.com/Documentation/Splunk/6.6.0/SearchReference/Delete&lt;/A&gt;) &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Note: The delete command does not work if your events contain a field named index aside from the default index field that is applied to all events. If your events do contain an additional index field, you can use eval before invoking delete, as in this example:

index=fbus_summary latest=1417356000 earliest=1417273200 | eval index = "fbus_summary" | delete
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So try this query instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex sourcetype=mytype earliest="03/27/2016:00:00:00" latest="03/28/2016:00:00:00" | eval index = "myindex" | delete
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 08:10:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308196#M58034</guid>
      <dc:creator>aakwah</dc:creator>
      <dc:date>2017-05-23T08:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308197#M58035</link>
      <description>&lt;P&gt;Thank you, but this doesn't work neither, the  &lt;CODE&gt;...| delete&lt;/CODE&gt;  gives no error, just report it deletes 0 events. &lt;BR /&gt;
As mentioned, most events could be deleted except the 239343, and all events have the same index-field. &lt;/P&gt;

&lt;P&gt;To be sure, I tested it, like in your recommendation and also done a  ` ... | stats count by index '. Everything is okay. &lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 09:13:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308197#M58035</guid>
      <dc:creator>marcokrueger</dc:creator>
      <dc:date>2017-05-23T09:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308198#M58036</link>
      <description>&lt;P&gt;Welcome, could you please provide a sample log line and Splunk version, to try to reproduce the issue?&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 09:34:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308198#M58036</guid>
      <dc:creator>aakwah</dc:creator>
      <dc:date>2017-05-23T09:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308199#M58037</link>
      <description>&lt;P&gt;we are running splunk.version 6.4.4 on 6 indexer and 4 searchheads. &lt;BR /&gt;
here comes an example event&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;1459108799815, revisit_creationtime=1459108799815, cookie_value="01m401s5v5i2w9izrz", leadout_click_bokey="IrmmSwDt8tX2HXLBVRWhpA", leadout_shop_id="9701", leadout_type="OFFER", leadout_provider="EBYDE", leadout_click_position=2, leadout_affiliate="ipc-android", root_category_id="3626", category_id="26491", product_type="nonVaried", product_id="4019314", product_name="Shimano CN-HG95", manufacturer_name="Shimano", tracetime=1459105200, redirect_to="&lt;A href="http://rover.ebay.com/rover/1/707-53477-19255-0/1?ff3=4&amp;amp;pub=5574635388&amp;amp;toolid=10001&amp;amp;campid=5337770552&amp;amp;customid=IrmmSwDt8tX2HXLBVRWhpA&amp;amp;mpre=http://www.ebay.de/itm/Shimano-XT-CN-HG95-Kette-10-fach-116-Glieder-inkl-Kettennietstift-/231886097756" target="_blank"&gt;http://rover.ebay.com/rover/1/707-53477-19255-0/1?ff3=4&amp;amp;pub=5574635388&amp;amp;toolid=10001&amp;amp;campid=5337770552&amp;amp;customid=IrmmSwDt8tX2HXLBVRWhpA&amp;amp;mpre=http://www.ebay.de/itm/Shimano-XT-CN-HG95-Kette-10-fach-116-Glieder-inkl-Kettennietstift-/231886097756&lt;/A&gt;", leadouts=1, reloadblocked_leadouts=0, checkouts=0, loggedin_leadouts=0, loggedin_checkouts=0, page_template="GoToShop", analyze_begin=1459105200, analyze_end=1459108800, kpi_type=session_object_lo&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:10:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308199#M58037</guid>
      <dc:creator>marcokrueger</dc:creator>
      <dc:date>2020-09-29T14:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308200#M58038</link>
      <description>&lt;P&gt;Thanks, I ingested the event and I was able  to delete it normally, so I believe the issue now is with the buckets.&lt;/P&gt;

&lt;P&gt;you can run the following command to get the distribution of buckets on indexers with the corresponding path of the bucket on filesystem, then you can check the permissions and ownership of buckets if there is something wrong. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbinspect index=myindex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 14:10:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308200#M58038</guid>
      <dc:creator>aakwah</dc:creator>
      <dc:date>2017-05-23T14:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308201#M58039</link>
      <description>&lt;P&gt;is that an indexer cluster?&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 02:06:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308201#M58039</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-05-24T02:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308202#M58040</link>
      <description>&lt;P&gt;no, it is not a cluster&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 04:58:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308202#M58040</guid>
      <dc:creator>marcokrueger</dc:creator>
      <dc:date>2017-05-24T04:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308203#M58041</link>
      <description>&lt;P&gt;Hi aakwah,&lt;BR /&gt;
all rights for the bucket seems to be okay. All files in the involved buckets are owned by the splunk-user and have read and write permissions. Of course the dictionaries are also executable.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;Unfortunaly in splunk 6.4.4 the dbinspect-command haven't the corruptonly-option yet &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;Should I run the splunk cmd fsck? &lt;/P&gt;

&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 06:32:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308203#M58041</guid>
      <dc:creator>marcokrueger</dc:creator>
      <dc:date>2017-05-24T06:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308204#M58042</link>
      <description>&lt;P&gt;I have run &lt;CODE&gt;./splunk cmd splunkd fsck scan  --all-buckets-one-index --index-name=myindex&lt;/CODE&gt;&lt;BR /&gt;
and got "No issues found" many times. I think the buckets are okay. &lt;/P&gt;

&lt;P&gt;Is the splunk fsck comparable to the linux fsck?&lt;/P&gt;

&lt;P&gt;Best regards &lt;BR /&gt;
 Marco &lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 07:20:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308204#M58042</guid>
      <dc:creator>marcokrueger</dc:creator>
      <dc:date>2017-05-24T07:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308205#M58043</link>
      <description>&lt;P&gt;Hello Marco,&lt;/P&gt;

&lt;P&gt;I believe that splunk fsck handling metadata of the bucket.&lt;/P&gt;

&lt;P&gt;Did you run fsck command on all the 6 indexers?&lt;/P&gt;

&lt;P&gt;I think it is a good idea now to capture splunkd.log events on indexers and on the searchead during the execution of the delete query, may be there is a clear error message.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 09:27:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308205#M58043</guid>
      <dc:creator>aakwah</dc:creator>
      <dc:date>2017-05-24T09:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308206#M58044</link>
      <description>&lt;P&gt;Dear aakwah,&lt;BR /&gt;
I did run the fsck on all indexers.&lt;BR /&gt;
I also have examined the log-files. On the searchhead where I executed the query also on the indexers. Ones direct in the file and also with splunks index=_internal ... nothing showy &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;I'm so distressed, I think there is nothing but deleting the involved buckets ... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;Thank you and best regards &lt;BR /&gt;
Marco &lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 12:44:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308206#M58044</guid>
      <dc:creator>marcokrueger</dc:creator>
      <dc:date>2017-05-24T12:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308207#M58045</link>
      <description>&lt;P&gt;It is really weird, final thoughts from my side,&lt;BR /&gt;
- Try to run the delete query from indexers directly&lt;BR /&gt;
- Try to make the time range smaller one hour for example or try to delete single event&lt;BR /&gt;
- Finally submit a case to Splunk support &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 14:13:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308207#M58045</guid>
      <dc:creator>aakwah</dc:creator>
      <dc:date>2017-05-24T14:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308208#M58046</link>
      <description>&lt;P&gt;Did you check the permissions of the files in the buckets?&lt;/P&gt;

&lt;P&gt;Perhaps splunk ran as root for a while, and was corrected to run as splunk... now some files still are owned by root?&lt;/P&gt;

&lt;P&gt;If so, easy solution is to stop splunk on the indexer(s), and &lt;CODE&gt;chown -Rf splunk. /opt/splunk&lt;/CODE&gt;  assuming you dont keep your data in other places.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 16:08:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308208#M58046</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-05-24T16:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308209#M58047</link>
      <description>&lt;P&gt;Thank you for your answer,&lt;BR /&gt;
all the files all have the correct user and permissions. To be absolute sure, I copied the complete bucket to backup, removed the bucket (after splunk shutting down) and copied the backup back. &lt;BR /&gt;
After the restart the event are at place again but not deleteable like before. &lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 07:49:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308209#M58047</guid>
      <dc:creator>marcokrueger</dc:creator>
      <dc:date>2017-05-29T07:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308210#M58048</link>
      <description>&lt;P&gt;Thank you, I alos  tried to delete single events, but it also doesn't work. &lt;/P&gt;

&lt;P&gt;I also copied the complete bucket to backup, removed the bucket (after splunk shutting down) and copied the backup back. &lt;BR /&gt;
After the restart get the events by a query but can't delete them like before. &lt;/P&gt;

&lt;P&gt;best regards&lt;BR /&gt;
 Marco &lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 07:52:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308210#M58048</guid>
      <dc:creator>marcokrueger</dc:creator>
      <dc:date>2017-05-29T07:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308211#M58049</link>
      <description>&lt;P&gt;Wow, between that and the fsck I really thought one of them would have solved the issue.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 13:12:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308211#M58049</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-05-29T13:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308212#M58050</link>
      <description>&lt;P&gt;restarting splunk usually resolves it&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 22:13:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308212#M58050</guid>
      <dc:creator>splunkannm</dc:creator>
      <dc:date>2017-10-25T22:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: events were not deleted and delete-query hangs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308213#M58051</link>
      <description>&lt;P&gt;Can you tell the other way to delete the index buckets using delete query because i tried the ways you suggested above. can you provide solution for this&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 07:36:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/events-were-not-deleted-and-delete-query-hangs/m-p/308213#M58051</guid>
      <dc:creator>anandsplunkies</dc:creator>
      <dc:date>2017-11-23T07:36:12Z</dc:date>
    </item>
  </channel>
</rss>

