<?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: Delete a record conditional in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Delete-a-record-conditional/m-p/51577#M9899</link>
    <description>&lt;P&gt;Ayn!&lt;BR /&gt;
Thanks for your answer!&lt;BR /&gt;
I want to determine the older data by Splunk.Use any Splunk's function to compare.&lt;/P&gt;

&lt;P&gt;If there was something better solution, please let me know.&lt;/P&gt;

&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
    <pubDate>Tue, 04 Dec 2012 01:48:09 GMT</pubDate>
    <dc:creator>riku4809</dc:creator>
    <dc:date>2012-12-04T01:48:09Z</dc:date>
    <item>
      <title>Delete a record conditional</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Delete-a-record-conditional/m-p/51575#M9897</link>
      <description>&lt;P&gt;How can I delete the older UPDATE_TIME record(record2).&lt;/P&gt;

&lt;P&gt;UNIQUE_ID, UPDATE_TIME・・・・・・&lt;BR /&gt;
record1: 10001,2012/12/01,・・・・・・・・&lt;BR /&gt;
&lt;EM&gt;record2: 10001,2012/11/01,・・・・・・・・&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;... | stats count, values(UPDATE_TIME) AS DATE by UNIQUE_ID | stats min(UPDATE_TIME)&lt;BR /&gt;
⇒ I can get the record2&lt;BR /&gt;
... | stats count, values(UPDATE_TIME) AS DATE by UNIQUE_ID | stats min(UPDATE_TIME) | delete&lt;BR /&gt;
⇒ &lt;STRONG&gt;Error&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:54:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Delete-a-record-conditional/m-p/51575#M9897</guid>
      <dc:creator>riku4809</dc:creator>
      <dc:date>2020-09-28T12:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a record conditional</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Delete-a-record-conditional/m-p/51576#M9898</link>
      <description>&lt;P&gt;You cannot run &lt;CODE&gt;delete&lt;/CODE&gt; on transformed results, like what you get when you run &lt;CODE&gt;stats&lt;/CODE&gt;. The &lt;CODE&gt;delete&lt;/CODE&gt; command needs the raw events as input, otherwise it won't work. So, find a way to grab the events that you want to delete and pipe those events to &lt;CODE&gt;delete&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2012 09:14:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Delete-a-record-conditional/m-p/51576#M9898</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-12-03T09:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Delete a record conditional</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Delete-a-record-conditional/m-p/51577#M9899</link>
      <description>&lt;P&gt;Ayn!&lt;BR /&gt;
Thanks for your answer!&lt;BR /&gt;
I want to determine the older data by Splunk.Use any Splunk's function to compare.&lt;/P&gt;

&lt;P&gt;If there was something better solution, please let me know.&lt;/P&gt;

&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2012 01:48:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Delete-a-record-conditional/m-p/51577#M9899</guid>
      <dc:creator>riku4809</dc:creator>
      <dc:date>2012-12-04T01:48:09Z</dc:date>
    </item>
  </channel>
</rss>

