<?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 with | delete in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-t-delete-events-with-delete/m-p/571104#M10345</link>
    <description>&lt;P&gt;I ran the search again and the most significant output from the "_audit" log shows:&lt;/P&gt;&lt;PRE&gt;Audit:[timestamp=10-15-2021 15:07:02.928, user=*****, action=delete_by_keyword, info=granted ][n/a]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;searching _internal didn't show any error or warnings in splunkd.logs in that time. Neither any Info which is related or helpful.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Oct 2021 13:24:04 GMT</pubDate>
    <dc:creator>Solev</dc:creator>
    <dc:date>2021-10-15T13:24:04Z</dc:date>
    <item>
      <title>Can't delete events with | delete</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-t-delete-events-with-delete/m-p/571071#M10339</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;Hello together, we moved our data to a new index cluster and since then we are unable to delete events with the "| delete" query. We have an test system, which is a single server instance that will execute the same query. Datasets are identical on both systems.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Heres a sample command we are trying to run on our clustered server:&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="3"&gt;index=name1 sourcetype=type1 earliest_time=-3d | delete&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&lt;FONT size="3"&gt;Since the documentation also noted that sometimes you should eval the indexname to delete events, we also did that&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="3"&gt;index=name1 sourcetype=type1 earliest_time=-3d | eval index=name1 | delete&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Both queries without the delete command only return a small set of 8 events. If we pipe the result to "delete", then there's no error message or warning. However the returned result table shows that zero files have been deleted. Currently we do have a new search cluster and also our old single search head connected to this index cluster. The old single searchhead was previously also the single instance where we migrated our data from to the new index cluster. Despite that migration nothing has been changed on that servers user/role configuration. Still delete is not working anymore on that search head too.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;We did follow all instructions on the splunk documentation to ensure that it is not a configuration problem &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Delete" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/SearchReference/Delete&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Additionally we did the following to troubleshoot the delete process:&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="3"&gt;We tried other datasets/indexes on our cluster server -&amp;gt; same result (working on test server)&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="3"&gt;We checked that our user has “can_delete” roles + created new local users with “can_delete” role&lt;/FONT&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="3"&gt;Both without success. We also noticed that if the user has no “can_delete” role assigned, the query result will also notify that permissions are missing Since we don’t get that message, we believe that the role is set correctly&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="3"&gt;We compared the authorize.conf from our test and cluster system and didn’t see any differences for those roles&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="3"&gt;We checked all servers splunkd logs after sending the delete command and no information/errors are available&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="3"&gt;We checked that on the file system the bucket folders/files have the correct access permissions (rwx) for “splunk” user - We restarted the index cluster&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="3"&gt;We tried the search query directly on the cluster master, on each search head cluster member and on the old single search head of our clustered system&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="3"&gt;We ran splunk healthcheck with no issues &lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="3"&gt;We checked bucket status for the index cluster&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="3"&gt;We checked monitoring console for indexers with no issues&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="3"&gt;We ran | dbinspect for the index and checked if the listed filesystem paths are accessible by the splunk user&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="3"&gt;We ran the search queries in the terminal via “splunk cli”, with no errors or additional messages being shown&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="3"&gt;Both test and cluster servers are running on the same version (8.1.6)&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="3"&gt;The data from the query was also indexed far after the migration&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 15 Oct 2021 09:11:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Can-t-delete-events-with-delete/m-p/571071#M10339</guid>
      <dc:creator>Solev</dc:creator>
      <dc:date>2021-10-15T09:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can't delete events with | delete</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-t-delete-events-with-delete/m-p/571099#M10342</link>
      <description>&lt;P&gt;Did you check the search log and splunkd.log to see if there are any significant messages?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 12:40:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Can-t-delete-events-with-delete/m-p/571099#M10342</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-15T12:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can't delete events with | delete</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-t-delete-events-with-delete/m-p/571101#M10343</link>
      <description>&lt;P&gt;good&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 12:57:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Can-t-delete-events-with-delete/m-p/571101#M10343</guid>
      <dc:creator>kinglion01</dc:creator>
      <dc:date>2021-10-15T12:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can't delete events with | delete</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-t-delete-events-with-delete/m-p/571104#M10345</link>
      <description>&lt;P&gt;I ran the search again and the most significant output from the "_audit" log shows:&lt;/P&gt;&lt;PRE&gt;Audit:[timestamp=10-15-2021 15:07:02.928, user=*****, action=delete_by_keyword, info=granted ][n/a]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;searching _internal didn't show any error or warnings in splunkd.logs in that time. Neither any Info which is related or helpful.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 13:24:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Can-t-delete-events-with-delete/m-p/571104#M10345</guid>
      <dc:creator>Solev</dc:creator>
      <dc:date>2021-10-15T13:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can't delete events with | delete</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Can-t-delete-events-with-delete/m-p/571111#M10346</link>
      <description>&lt;P&gt;The audit log shows the delete command was allowed.&lt;/P&gt;&lt;P&gt;Anything in search.log (in Job Inspector)?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 13:58:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Can-t-delete-events-with-delete/m-p/571111#M10346</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-15T13:58:21Z</dc:date>
    </item>
  </channel>
</rss>

