<?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: Can't delete Events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213182#M96336</link>
    <description>&lt;P&gt;You can verify accessing role capabilities [Settings -- Access Controls -- Roles -- Admin].&lt;BR /&gt;
Try using web interface and user can_delete.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2016 12:50:29 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2016-09-26T12:50:29Z</dc:date>
    <item>
      <title>Can't delete Events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213177#M96331</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;we got some Events, which we need to clean up. So we need to wipe them:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$HOME/bin/splunk search 'index=index kpi_type=voldemort earliest=09/01/2016:00:00:00 | delete ' -auth username:XXXXXXXX
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But instead auf marking them to deleted. I get:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ERROR: 7074012 event could not be deleted
INFO: 0 events successfully deleted
INFO: Your timerange was substituted based on your search string
splunk_server  index  deleted errors
------------- ------- ------- -------
b23           __ALL__       0  440674
b25           __ALL__       0 2253332
b26           __ALL__       0 1461429
idx-05        __ALL__       0 1047879
idx-06        __ALL__       0  451062
s574          __ALL__       0 1419636
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;A Event looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;timestamp, offers_position=1.000000, number_of_offers=1.000000, product_id=999967, offers_shop_id=285850, index=voldemort, leadouts=1, category_id=10032, leadouts_gesamt=1, kpi_type=voldemort
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I dont see any Errors in either Indexer-Splunkd.log or Searchhead splunkd.log&lt;BR /&gt;
&lt;STRONG&gt;Its not a permission issue&lt;/STRONG&gt;(my role has the can_delete role imported). Also the search.log shows Only something like "cant delete" no explicit error.&lt;/P&gt;

&lt;P&gt;I also tried using another Searchhead and the Web-Interface.&lt;/P&gt;

&lt;P&gt;Has anyone a clue?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;BR /&gt;
The upgrade to Splunk&amp;gt; 6.4.3 from 6.1.1 brought no change &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 12:27:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213177#M96331</guid>
      <dc:creator>effem</dc:creator>
      <dc:date>2016-09-26T12:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can't delete Events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213178#M96332</link>
      <description>&lt;P&gt;Have you added username to the can_delete role or granted the delete_by_keyword capability?&lt;BR /&gt;
By default nobody (including admin) has that:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Delete#Usage" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Delete#Usage&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Have you also tried running your query from the UI instead of the CLI?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:09:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213178#M96332</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2020-09-29T11:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't delete Events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213179#M96333</link>
      <description>&lt;P&gt;Are you sure that your user role has the correct permission to delete events? usually Admin doesn't have this permissions, only "can_delete" user has this permission!&lt;BR /&gt;
Remeber that the delete command makes a logical and not a physical deletion, so you don't  free any disk space (see &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Delete"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.3/SearchReference/Delete&lt;/A&gt;).&lt;BR /&gt;
To physically delete events you can only clean an intere index (see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.3/Indexer/RemovedatafromSplunk"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.3/Indexer/RemovedatafromSplunk&lt;/A&gt;).&lt;BR /&gt;
 Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 12:35:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213179#M96333</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-09-26T12:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can't delete Events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213180#M96334</link>
      <description>&lt;P&gt;I tried it via UI also. And as stated it is not a permission issue.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 12:43:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213180#M96334</guid>
      <dc:creator>effem</dc:creator>
      <dc:date>2016-09-26T12:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can't delete Events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213181#M96335</link>
      <description>&lt;P&gt;cleaning the index is not an option.  And im very sure it is not a permission issue.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 12:43:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213181#M96335</guid>
      <dc:creator>effem</dc:creator>
      <dc:date>2016-09-26T12:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can't delete Events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213182#M96336</link>
      <description>&lt;P&gt;You can verify accessing role capabilities [Settings -- Access Controls -- Roles -- Admin].&lt;BR /&gt;
Try using web interface and user can_delete.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 12:50:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213182#M96336</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-09-26T12:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can't delete Events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213183#M96337</link>
      <description>&lt;P&gt;I already made sure i got the permissions. As i said. It is not a permissions issue. &lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 12:53:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213183#M96337</guid>
      <dc:creator>effem</dc:creator>
      <dc:date>2016-09-26T12:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can't delete Events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213184#M96338</link>
      <description>&lt;P&gt;Hello.&lt;BR /&gt;
Got an update on this.&lt;/P&gt;

&lt;P&gt;The problem is the field "index" in the Eventdata. This causes an issue for splunk.&lt;BR /&gt;
To resolv this issue you have to evaluate the splunk-index-field.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=nameofindex kpi_type=voldemort earliest=09/01/2016:00:00:00| eval index= "nameofindex" | delete
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I could delete everything successful.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 13:43:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213184#M96338</guid>
      <dc:creator>effem</dc:creator>
      <dc:date>2016-10-19T13:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't delete Events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213185#M96339</link>
      <description>&lt;P&gt;Good point, and it is documented in 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;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 08:18:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-delete-Events/m-p/213185#M96339</guid>
      <dc:creator>aakwah</dc:creator>
      <dc:date>2017-05-23T08:18:15Z</dc:date>
    </item>
  </channel>
</rss>

