<?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: How to use a delete command in splunk...? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276668#M53051</link>
    <description>&lt;P&gt;It needs write permission to write a deleted flag; no?&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jun 2016 14:24:44 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2016-06-01T14:24:44Z</dc:date>
    <item>
      <title>How to use a delete command in splunk...?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276659#M53042</link>
      <description>&lt;P&gt;I cannot delete the events in splunk, i did append this search with delete command..I'm looking to delete the events which have    "&lt;EM&gt;checkout/infuse.jspmethod=KRA&amp;amp;servervi=&lt;/EM&gt;"  this words....i do have can_delete and delete_by_keyword role to my access...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype=webserver_logs source="/opt/ihs/access/*/log/access*log" 
"*checkout/infuse.jspmethod=KRA&amp;amp;servervi=*" | delete
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:50:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276659#M53042</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2020-09-29T09:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a delete command in splunk...?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276660#M53043</link>
      <description>&lt;P&gt;Are you getting any error messages?&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 22:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276660#M53043</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2016-05-31T22:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a delete command in splunk...?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276661#M53044</link>
      <description>&lt;P&gt;Make sure that you (one of the roles of which you are a member) has the &lt;CODE&gt;delete&lt;/CODE&gt; permission.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 00:09:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276661#M53044</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-06-01T00:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a delete command in splunk...?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276662#M53045</link>
      <description>&lt;P&gt;nope, i'm not getting any error message, even i tried deleting a single event without asterisks, it doesn't work.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 00:28:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276662#M53045</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2016-06-01T00:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a delete command in splunk...?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276663#M53046</link>
      <description>&lt;P&gt;I do have  can_delete and delete_by_keyword access in my role.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:52:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276663#M53046</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2020-09-29T09:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a delete command in splunk...?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276664#M53047</link>
      <description>&lt;P&gt;Without the delete, do you get the results back for your search?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 01:57:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276664#M53047</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2016-06-01T01:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a delete command in splunk...?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276665#M53048</link>
      <description>&lt;P&gt;yes i do get the results without delete.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 03:30:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276665#M53048</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2016-06-01T03:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a delete command in splunk...?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276666#M53049</link>
      <description>&lt;P&gt;Is/are the index(Es) you're deleting from owned by the splunkd user account?  Check the filesystem permissions on the indexes to verify if so.  &lt;/P&gt;

&lt;P&gt;Also check the search.log by running your delete search and then click on inspect job, then click on search.log.  Look in that log for errors, warnings, etc&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 10:32:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276666#M53049</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-06-01T10:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a delete command in splunk...?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276667#M53050</link>
      <description>&lt;P&gt;I don't think delete would delete events from indexers, it only make events non searchable by users. correct me if i'm wrong &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Delete"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Delete&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;when i run the query it's just sitting there for a while and says the search job is expired. It's happening even when i run the search for 1hr or 1day.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 14:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276667#M53050</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2016-06-01T14:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a delete command in splunk...?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276668#M53051</link>
      <description>&lt;P&gt;It needs write permission to write a deleted flag; no?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 14:24:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276668#M53051</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-06-01T14:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a delete command in splunk...?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276669#M53052</link>
      <description>&lt;P&gt;First your search command is fine.&lt;/P&gt;

&lt;P&gt;Setting can_delete will allow you to delete.  (Make sure you remove can_delete when you are done.)&lt;/P&gt;

&lt;P&gt;Anything is possible with permissions but it is likely good if you are indexing data into the index&lt;/P&gt;

&lt;P&gt;We do not have write/read permissions in our roles,  splunkd writes, you read, unless you set can_delete.  The roles can restrict the index you are allowed to use but you said your search returns events so you are good there.&lt;/P&gt;

&lt;P&gt;Are your indexers clustered?&lt;BR /&gt;&lt;BR /&gt;
See this section in the link below: "The delete operation and indexer clusters"&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/Indexer/RemovedatafromSplunk" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/Indexer/RemovedatafromSplunk&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;As already mentioned, check splunkd.log for errors &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:50:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276669#M53052</guid>
      <dc:creator>kbrown_splunk</dc:creator>
      <dc:date>2020-09-29T09:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a delete command in splunk...?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276670#M53053</link>
      <description>&lt;P&gt;How would I setup a scheduled search to check if the delete command was run in my environment?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 16:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276670#M53053</guid>
      <dc:creator>jward6004</dc:creator>
      <dc:date>2016-10-04T16:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a delete command in splunk...?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276671#M53054</link>
      <description>&lt;P&gt;This is a different question.  Click on the gear button on the upper right corner of your comment, and select "convert to question" in order to convert your answer to a question.  &lt;/P&gt;

&lt;P&gt;The solution is very simple and I'll be happy to help you once you convert this to your own question.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 16:51:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276671#M53054</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-10-04T16:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a delete command in splunk...?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276672#M53055</link>
      <description>&lt;P&gt;If the job is timing out it is because you have a huge number of events being returned.  When you run the search, click on the "jobs" menu and select "Send job to background" and give it an email address to send you an email when it is done.  This will keep the job from timing out.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 13:54:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-a-delete-command-in-splunk/m-p/276672#M53055</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-10-18T13:54:25Z</dc:date>
    </item>
  </channel>
</rss>

