<?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 can I delete search data result incoming within 5 minutes? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489298#M136689</link>
    <description>&lt;P&gt;Try with this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart span=5m values(src_ip) as src_ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will literally paste the value of the src_ip after every 5th minute.&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2020 20:38:02 GMT</pubDate>
    <dc:creator>shivanshu1593</dc:creator>
    <dc:date>2020-05-05T20:38:02Z</dc:date>
    <item>
      <title>How can I delete search data result incoming within 5 minutes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489290#M136681</link>
      <description>&lt;P&gt;Hi. &lt;BR /&gt;
When I search a '_time' field, there are two result values like &lt;STRONG&gt;'2020/04/30 18:00'&lt;/STRONG&gt; and &lt;STRONG&gt;'2020/04/30 18:03'&lt;/STRONG&gt;&lt;BR /&gt;
I just want to delete the result values within 5 minutes.&lt;BR /&gt;
for example,&lt;BR /&gt;
&lt;STRONG&gt;_time&lt;BR /&gt;
2020/04/30 18:00&lt;BR /&gt;
2020/04/30 18:06&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Above is ok but, following result search I do not want.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;_time&lt;BR /&gt;
2020/04/30 18:00&lt;BR /&gt;
2020/04/30 18:03&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Is it possible to delete data value in '_time' field within 5 minutes?&lt;BR /&gt;
My goal is&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;_time&lt;BR /&gt;
2020/04/30 18:00&lt;BR /&gt;
2020/04/30 18:03 **(delete automatically in search)&lt;/STRONG&gt;**&lt;/P&gt;

&lt;P&gt;I would appreciate it  if you give me some tips. &lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:15:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489290#M136681</guid>
      <dc:creator>tkdguq0110</dc:creator>
      <dc:date>2020-09-30T05:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete search data result incoming within 5 minutes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489291#M136682</link>
      <description>&lt;P&gt;what do you mean by "delete"?&lt;BR /&gt;
have you tried using the &lt;CODE&gt;|bin&lt;/CODE&gt; command?&lt;BR /&gt;
examples:&lt;BR /&gt;
&lt;CODE&gt;... | bin _time span=5s&lt;/CODE&gt; &lt;BR /&gt;
&lt;CODE&gt;... | bin _time span=5m&lt;/CODE&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 00:55:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489291#M136682</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2020-04-30T00:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete search data result incoming within 5 minutes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489292#M136683</link>
      <description>&lt;P&gt;I mean, if there is a '_time' field data incomming within  5 minutes, I do not want to see that result(I thought this was delete).&lt;BR /&gt;
I used 'bin' command before but that was just to combine time using  '_time' field..&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:15:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489292#M136683</guid>
      <dc:creator>tkdguq0110</dc:creator>
      <dc:date>2020-09-30T05:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete search data result incoming within 5 minutes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489293#M136684</link>
      <description>&lt;P&gt;so ... so you want only a round time results? meaning seconds 0,5,10, ... 55 ?&lt;BR /&gt;
or minutes as described?&lt;BR /&gt;
what if you have let say, 4 events: &lt;BR /&gt;
10:00&lt;BR /&gt;
10:06&lt;BR /&gt;
10:09&lt;BR /&gt;
10:11&lt;/P&gt;

&lt;P&gt;what will be the desired result there?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 13:13:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489293#M136684</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2020-04-30T13:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete search data result incoming within 5 minutes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489294#M136685</link>
      <description>&lt;P&gt;I do not want to see time results incoming within 5 minutes.&lt;BR /&gt;
for example, if search result is below&lt;BR /&gt;
_time&lt;BR /&gt;
10:00&lt;BR /&gt;
10:01&lt;BR /&gt;
10:02&lt;BR /&gt;
10:03&lt;BR /&gt;
10:04&lt;BR /&gt;
10:05&lt;/P&gt;

&lt;P&gt;I do not want to see the result 10:01 to 10:04&lt;BR /&gt;
I only want to see search result below&lt;BR /&gt;
_time&lt;BR /&gt;
10:00&lt;BR /&gt;
10:05&lt;/P&gt;

&lt;P&gt;Is it possible?&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 03 May 2020 19:00:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489294#M136685</guid>
      <dc:creator>tkdguq0110</dc:creator>
      <dc:date>2020-05-03T19:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete search data result incoming within 5 minutes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489295#M136686</link>
      <description>&lt;P&gt;If I understand your requirement correctly, you would like to filter out some of the events in the result, so that events only show up every five minutes in the result set.&lt;/P&gt;

&lt;P&gt;This is easy to do as only a filter is needed to look at the minute component of the event time stamps. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = _internal
| eval curMin = strftime(_time,"%M") 
| eval eventtext =  "my event " + curMin
| table _time, eventtext, curMin
| search curMin=*0 OR curMin=*5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The second line in the search parse the minute of the timestamp in the event, and the last line has a filter to only return the events that occurred during the time when the &lt;CODE&gt;minute&lt;/CODE&gt; is divisible by 5. Of course you can tailor the filter (e.g., adding more restrictions on the    &lt;CODE&gt;second&lt;/CODE&gt; portion of the time stamp as well) to however you see fit. &lt;/P&gt;

&lt;P&gt;OR, do you want the neighboring events in the result to be at least 5 minutes apart? &lt;/P&gt;</description>
      <pubDate>Sun, 03 May 2020 20:34:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489295#M136686</guid>
      <dc:creator>tauliang</dc:creator>
      <dc:date>2020-05-03T20:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete search data result incoming within 5 minutes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489296#M136687</link>
      <description>&lt;P&gt;Thanks for your helping.&lt;BR /&gt;
My goal is not to see search result set incoming within 5 minutes comparing previous _time.&lt;/P&gt;

&lt;P&gt;for instance, there are two fields and values in search result set.&lt;BR /&gt;
src_ip  _time&lt;BR /&gt;
2.2.2.2 10:00&lt;/P&gt;

&lt;P&gt;and new search result set data added, like&lt;BR /&gt;
src_ip  _time&lt;BR /&gt;
2.2.2.2 10:00&lt;BR /&gt;
2.2.2.2 10:03&lt;/P&gt;

&lt;P&gt;comparing previous _time(10:00) and new added _time(10:03)&lt;BR /&gt;
and new added _time(10:03) is just incoming within 5 minutes just comparing previous _time(10:00)&lt;BR /&gt;
so, I do not want to see new added _time(10:03) in search result set.&lt;/P&gt;

&lt;P&gt;but, if search result set is below&lt;BR /&gt;
src_ip  _time&lt;BR /&gt;
2.2.2.2 10:00&lt;BR /&gt;
2.2.2.2 10:06&lt;/P&gt;

&lt;P&gt;new added _time(10:06) is just incoming after 5 minutes comparing previous _time(10:00)&lt;BR /&gt;
I want to see this search result set.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 08:11:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489296#M136687</guid>
      <dc:creator>tkdguq0110</dc:creator>
      <dc:date>2020-05-04T08:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete search data result incoming within 5 minutes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489297#M136688</link>
      <description>&lt;P&gt;what is the anticipated result in this scenario:&lt;BR /&gt;
2.2.2.2 10:00&lt;BR /&gt;
2.2.2.2 10:06&lt;BR /&gt;
2.2.2.2 10:09&lt;BR /&gt;
2.2.2.2 10:10&lt;BR /&gt;
2.2.2.2 10:11&lt;BR /&gt;
2.2.2.2 10:15&lt;BR /&gt;
2.2.2.2 10:16&lt;BR /&gt;
2.2.2.2 10:22&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 19:40:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489297#M136688</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2020-05-05T19:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I delete search data result incoming within 5 minutes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489298#M136689</link>
      <description>&lt;P&gt;Try with this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart span=5m values(src_ip) as src_ip
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will literally paste the value of the src_ip after every 5th minute.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 20:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-delete-search-data-result-incoming-within-5-minutes/m-p/489298#M136689</guid>
      <dc:creator>shivanshu1593</dc:creator>
      <dc:date>2020-05-05T20:38:02Z</dc:date>
    </item>
  </channel>
</rss>

