<?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 How to delete data in a filepath on Splunk database? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334981#M61956</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I have a Splunk DB search as below:&lt;BR /&gt;
a=1&lt;BR /&gt;
b=1000&lt;/P&gt;

&lt;P&gt;search_parms = {'date_from': '1/10/2016:05:00', 'start': a, 'stop': b, 'timeout': 60, 'date_to': '02/22/2017:23:39', 'mask_prvs': 0, 'maxresults': 100000},&lt;/P&gt;

&lt;P&gt;a. How to delete these queried results from Splunk DB?&lt;BR /&gt;
b. How to find the Splunk DB storage space after deleted?&lt;/P&gt;

&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;
Dharmendra Setty&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:06:06 GMT</pubDate>
    <dc:creator>dhsetty</dc:creator>
    <dc:date>2020-09-29T13:06:06Z</dc:date>
    <item>
      <title>How to delete data in a filepath on Splunk database?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334981#M61956</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I have a Splunk DB search as below:&lt;BR /&gt;
a=1&lt;BR /&gt;
b=1000&lt;/P&gt;

&lt;P&gt;search_parms = {'date_from': '1/10/2016:05:00', 'start': a, 'stop': b, 'timeout': 60, 'date_to': '02/22/2017:23:39', 'mask_prvs': 0, 'maxresults': 100000},&lt;/P&gt;

&lt;P&gt;a. How to delete these queried results from Splunk DB?&lt;BR /&gt;
b. How to find the Splunk DB storage space after deleted?&lt;/P&gt;

&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;
Dharmendra Setty&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:06:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334981#M61956</guid>
      <dc:creator>dhsetty</dc:creator>
      <dc:date>2020-09-29T13:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data in a filepath on Splunk database?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334982#M61957</link>
      <description>&lt;P&gt;Hi dhsetty, You can delete data from a Splunk index by running the &lt;CODE&gt;delete&lt;/CODE&gt; command after searching for all the data you wish to be deleted.&lt;/P&gt;

&lt;P&gt;Note, the &lt;CODE&gt;delete&lt;/CODE&gt; command won't free up any storage space. It essentially marks those events as unsearchable in the index.&lt;/P&gt;

&lt;P&gt;To entirely remove data, you'd have to delete the index, or allow for the retention settings to take care of it (time, disk space, however you have retention set for the index). &lt;/P&gt;

&lt;P&gt;Many more details are available here : &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Indexer/RemovedatafromSplunk"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Indexer/RemovedatafromSplunk&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Please let me know if this answers your question!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 14:17:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334982#M61957</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2017-03-03T14:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data in a filepath on Splunk database?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334983#M61958</link>
      <description>&lt;P&gt;Once data has been indexed it cannot be deleted until the bucket ages out.  Events can marked, using the &lt;CODE&gt;delete&lt;/CODE&gt; command, to not appear in search results, but doing so does not change the event and does not save disk space (I believe it uses more space).&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 14:18:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334983#M61958</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-03-03T14:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data in a filepath on Splunk database?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334984#M61959</link>
      <description>&lt;P&gt;Hi Muebel,&lt;/P&gt;

&lt;P&gt;I got the below syntax from the Documentation on splunk:&lt;/P&gt;

&lt;P&gt;index=fbus_summary latest=1417356000 earliest=1417273200 | eval index = "fbus_summary" | delete&lt;/P&gt;

&lt;P&gt;But now the concern is, Iam not getting on how to use the "index" command on my Email Security Appliance. Could you please share your inputs on this?&lt;/P&gt;

&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;
Dharmendra Setty&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:06:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334984#M61959</guid>
      <dc:creator>dhsetty</dc:creator>
      <dc:date>2020-09-29T13:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data in a filepath on Splunk database?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334985#M61960</link>
      <description>&lt;P&gt;Hi RichGalloway,&lt;/P&gt;

&lt;P&gt;I got the below syntax from the Documentation on splunk:&lt;/P&gt;

&lt;P&gt;index=fbus_summary latest=1417356000 earliest=1417273200 | eval index = "fbus_summary" | delete&lt;/P&gt;

&lt;P&gt;But now the concern is, Iam not getting on how to use the "index" command on my Email Security Appliance. Could you please share your inputs on this?&lt;/P&gt;

&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;
Dharmendra Setty&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:06:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334985#M61960</guid>
      <dc:creator>dhsetty</dc:creator>
      <dc:date>2020-09-29T13:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data in a filepath on Splunk database?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334986#M61961</link>
      <description>&lt;P&gt;Use the &lt;CODE&gt;index&lt;/CODE&gt; command in Splunk, not on your ESA.  Do not use the index name from the documentation - use the index where the data you want to delete is stored.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 14:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334986#M61961</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-03-03T14:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data in a filepath on Splunk database?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334987#M61962</link>
      <description>&lt;P&gt;first of all, be very careful with that delete command. Do you have a local splunk certified admin to help? You do not want to throw that command around without careful consideration.&lt;/P&gt;

&lt;P&gt;Secondly, that eval statement isn't needed. Based on the search results, all events will have fbus_summary for the index value.&lt;/P&gt;

&lt;P&gt;Thirdly, if you do run that command it would delete ALL events in that index for that time frame. You will want to qualify the search to be very specific regarding the events you want deleted. &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;But now the concern is, Iam not getting on how to use the "index" command on my Email Security Appliance.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I don't quite know what you mean by Email Security Appliance. There isn't an &lt;CODE&gt;index&lt;/CODE&gt; command in splunk, index is one of the default fields that each event has a value for, and is used in searching.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 16:43:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334987#M61962</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2017-03-03T16:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data in a filepath on Splunk database?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334988#M61963</link>
      <description>&lt;P&gt;Hi Richgalloway, &lt;/P&gt;

&lt;P&gt;Is there anyway where we can delete the Splunk Data based on timestamp from ESA itself? &lt;/P&gt;

&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;
Dharmendra Setty&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 04:13:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334988#M61963</guid>
      <dc:creator>dhsetty</dc:creator>
      <dc:date>2017-03-06T04:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data in a filepath on Splunk database?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334989#M61964</link>
      <description>&lt;P&gt;To add more clarity to my latest query in this thread, about the requirement: &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;I do a query to splunk, based on time stamp, "from date" &amp;amp; "to date".&lt;/LI&gt;
&lt;LI&gt;After I got the list of all events results between the timestamp, I want to delete these list of events from the Splunk database. &lt;/LI&gt;
&lt;LI&gt;Each queried results data will be stored in the destination database, hence I want to delete each queried results data from querying Splunk DB, so that my next query will not end up in giving repetitive results.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Hence I want a effective solution on how to delete completely the Queried result data, from querying Splunk DB?&lt;/P&gt;

&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;
Dharmendra Setty&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 09:26:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334989#M61964</guid>
      <dc:creator>dhsetty</dc:creator>
      <dc:date>2017-03-06T09:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data in a filepath on Splunk database?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334990#M61965</link>
      <description>&lt;P&gt;Once you create a query that returns the events you do not want to see, add &lt;CODE&gt;| delete&lt;/CODE&gt; to the end of it.  That will keep the events from appearing in any subsequent searches.  It will NOT delete them from Splunk, however, and there is no way to do so.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 14:50:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334990#M61965</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-03-06T14:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data in a filepath on Splunk database?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334991#M61966</link>
      <description>&lt;H2&gt;Earlier working splunk query is: &lt;/H2&gt;

&lt;P&gt;SEARCH "mid=&lt;EM&gt;" OR "icid=&lt;/EM&gt;" starttime::12/26/2016:05:05:00 endtime::12/26/2016:05:06:59maxtime::-1 maxevents::100 GET events::0-99 OUTPUT splunkui::2.1&lt;/P&gt;

&lt;H2&gt;Splunk Query based on your suggestion  tried, but it dint work: &lt;/H2&gt;

&lt;P&gt;SEARCH "mid=&lt;EM&gt;" OR "icid=&lt;/EM&gt;" starttime::12/26/2016:05:05:00 endtime::12/26/2016:05:06:59maxtime::-1 maxevents::100 GET events::0-99 OUTPUT splunkui::2.1 |delete&lt;/P&gt;

&lt;P&gt;But it is not fetching any results. &lt;/P&gt;

&lt;P&gt;Please let me know what Iam missing here, so that Iam not getting results itself, &lt;BR /&gt;
I was expecting unique results. But not getting the results only.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 06:10:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334991#M61966</guid>
      <dc:creator>dhsetty</dc:creator>
      <dc:date>2017-03-07T06:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data in a filepath on Splunk database?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334992#M61967</link>
      <description>&lt;H2&gt;&lt;EM&gt;Output I got for the Query:&lt;/EM&gt; &lt;/H2&gt;

&lt;P&gt;Final Query that is going to _execute_search is:SEARCH "mid=&lt;EM&gt;" OR "icid=&lt;/EM&gt;" starttime::12/26/2016:05:05:00 endtime::12/26/2016:05:06:59maxtime::-1 maxevents::100 GET events::0-99 OUTPUT splunkui::2.1 |delete&lt;/P&gt;

&lt;P&gt;API DATA passed to request is:                          &lt;/P&gt;

&lt;P&gt;1&lt;BR /&gt;
  admin&lt;BR /&gt;
  1150854670&lt;/P&gt;

&lt;P&gt;1488866453110235SEARCH "mid=&lt;EM&gt;" OR "icid=&lt;/EM&gt;" starttime::12/26/2016:05:05:00 endtime::12/26/2016:05:06:59maxtime::-1 maxevents::100 GET events::0-99 OUTPUT splunkui::2.1 |delete1488866453110275livesplunkuser                     &lt;/P&gt;

&lt;P&gt;results list is : &lt;BR /&gt;
Queryid=1488866453110235 user=admin result="Search Parse failed because Unrecognized token : |delete" results_returned=0 submitted=03/07/2017:06:00:53 time_between_submission_and_execution=33553144.734 execution_time=1287.266 total_time=0.000&lt;BR /&gt;
SEARCH "mid=&lt;EM&gt;" OR "icid=&lt;/EM&gt;" starttime::12/26/2016:05:05:00 endtime::12/26/2016:05:06:59maxtime::-1 maxevents::100 GET events::0-99 OUTPUT splunkui::2.1 |delete&lt;BR /&gt;
Search Parse failed because Unrecognized token : |delete&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:07:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334992#M61967</guid>
      <dc:creator>dhsetty</dc:creator>
      <dc:date>2020-09-29T13:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data in a filepath on Splunk database?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334993#M61968</link>
      <description>&lt;P&gt;The &lt;CODE&gt;delete&lt;/CODE&gt; command does not return events.  It only returns a count of the number of events that were deleted.&lt;/P&gt;

&lt;P&gt;I'm not familiar enough with the API to help with it.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 14:26:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334993#M61968</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-03-07T14:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete data in a filepath on Splunk database?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334994#M61969</link>
      <description>&lt;P&gt;ok, but still it is considering "delete" as a unrecognized token without even returning the count.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 14:45:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-data-in-a-filepath-on-Splunk-database/m-p/334994#M61969</guid>
      <dc:creator>dhsetty</dc:creator>
      <dc:date>2017-03-07T14:45:06Z</dc:date>
    </item>
  </channel>
</rss>

