<?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 Filter search results to only show sequential time buckets? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-Filter-search-results-to-only-show-sequential-time/m-p/260721#M50029</link>
    <description>&lt;P&gt;I have the timerange set to 12 hours because my search is trying to detect a pattern of events in the last 12 hours. But, i'm only interested in seeing results when that pattern is detected for 30 minutes straight (6 consecutive 5 min time buckets)&lt;/P&gt;</description>
    <pubDate>Sun, 22 May 2016 18:27:14 GMT</pubDate>
    <dc:creator>jedatt01</dc:creator>
    <dc:date>2016-05-22T18:27:14Z</dc:date>
    <item>
      <title>How can I Filter search results to only show sequential time buckets?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-Filter-search-results-to-only-show-sequential-time/m-p/260716#M50024</link>
      <description>&lt;P&gt;I have the need to filter the results of my search to only show 30 minutes of consecutive 5 minute time buckets. In other words, 6 consecutive time buckets.&lt;/P&gt;

&lt;P&gt;Example of results I want to see&lt;BR /&gt;
_time       Event&lt;BR /&gt;
9:00 am.  My event &lt;BR /&gt;
9:05 am.  My event&lt;BR /&gt;
9:10 am.  My event&lt;BR /&gt;
9:15 am.  My event&lt;BR /&gt;
9:20 am   My event&lt;BR /&gt;
9:25 am.  My event&lt;/P&gt;

&lt;P&gt;But, I do not want to show any results of it is like below&lt;/P&gt;

&lt;P&gt;_time.     Event&lt;BR /&gt;
6:35 am. My event&lt;BR /&gt;
6:40 am  My event&lt;BR /&gt;
9:05 am. My event&lt;BR /&gt;
9:10 am My event&lt;/P&gt;

&lt;P&gt;Also one additional caveat. It is possible that my results could show 6 sequential buckets and more events that are not sequential because my time range is 12 hours. In this case o want to cut out the non sequential buckets and only display of there are 6 sequential buckets.&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 11:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-Filter-search-results-to-only-show-sequential-time/m-p/260716#M50024</guid>
      <dc:creator>jedatt01</dc:creator>
      <dc:date>2016-05-22T11:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I Filter search results to only show sequential time buckets?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-Filter-search-results-to-only-show-sequential-time/m-p/260717#M50025</link>
      <description>&lt;P&gt;Hi,  three examples are below.  You can google each command to get more details.  There are other options like min-span and more.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ...|timechart bins=6 ...   (Time picker set to last 30min)

 ...|timechart span=5m ...

 ...|bin span=5m|...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 22 May 2016 11:44:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-Filter-search-results-to-only-show-sequential-time/m-p/260717#M50025</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-05-22T11:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I Filter search results to only show sequential time buckets?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-Filter-search-results-to-only-show-sequential-time/m-p/260718#M50026</link>
      <description>&lt;P&gt;For the six consecutive request... You'd have to use some additional logic / magic.  Something like using transaction and the span of time equal to 30 minutes then a mvzip followed by a mvexpand and then a where count &amp;gt; 5&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 13:16:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-Filter-search-results-to-only-show-sequential-time/m-p/260718#M50026</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-05-22T13:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I Filter search results to only show sequential time buckets?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-Filter-search-results-to-only-show-sequential-time/m-p/260719#M50027</link>
      <description>&lt;P&gt;Do you mean your time selector is set to 12 hours, but you only want to display 30 minutes of that?  &lt;/P&gt;

&lt;P&gt;One way to do this is by overriding the time range selector.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... othersearchterms earliest=-30m@m ... | other search stuff
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There's an equivalent &lt;CODE&gt;latest=x&lt;/CODE&gt; command too, so 60 minutes to 30 minutes ago would be &lt;CODE&gt;earliest=-60m latest=-30m&lt;/CODE&gt;.  You can snap them to minutes or do &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Search/Specifytimemodifiersinyoursearch"&gt;other time manipulation&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;If instead you don't know which time frame ahead of time, then we may need a bit more information.  Like, which set of 6 times do you want - &lt;STRONG&gt;any&lt;/STRONG&gt; sequence of 6 in a row?  Only a &lt;STRONG&gt;particular&lt;/STRONG&gt; sequence of 6 in a row (and how do you know which one you want)?  A &lt;STRONG&gt;sliding window&lt;/STRONG&gt; of the sum/total/whatever of the previous 6?  An example that covers that specifically would be very helpful if that's the case.&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 17:05:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-Filter-search-results-to-only-show-sequential-time/m-p/260719#M50027</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2016-05-22T17:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I Filter search results to only show sequential time buckets?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-Filter-search-results-to-only-show-sequential-time/m-p/260720#M50028</link>
      <description>&lt;P&gt;This almost works! The only problem I have with using timechart is that sometimes my 6 time buckets might be split between two span buckets. For instance the first of the six events starts at 9:50 and goes to 10:15. &lt;/P&gt;

&lt;P&gt;In that case I will have six consecutive 5 minute buckets but they will be split into 2 different 30 minute buckets.&lt;/P&gt;

&lt;P&gt;ex.&lt;BR /&gt;
_time       bucket_count&lt;BR /&gt;
9:30         2&lt;BR /&gt;
10:00       4&lt;/P&gt;

&lt;P&gt;Can I somehow use transaction in this case?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:45:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-Filter-search-results-to-only-show-sequential-time/m-p/260720#M50028</guid>
      <dc:creator>jedatt01</dc:creator>
      <dc:date>2020-09-29T09:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I Filter search results to only show sequential time buckets?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-Filter-search-results-to-only-show-sequential-time/m-p/260721#M50029</link>
      <description>&lt;P&gt;I have the timerange set to 12 hours because my search is trying to detect a pattern of events in the last 12 hours. But, i'm only interested in seeing results when that pattern is detected for 30 minutes straight (6 consecutive 5 min time buckets)&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 18:27:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-Filter-search-results-to-only-show-sequential-time/m-p/260721#M50029</guid>
      <dc:creator>jedatt01</dc:creator>
      <dc:date>2016-05-22T18:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I Filter search results to only show sequential time buckets?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-Filter-search-results-to-only-show-sequential-time/m-p/260722#M50030</link>
      <description>&lt;P&gt;can you give me your search that "almost works"?&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 12:19:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-Filter-search-results-to-only-show-sequential-time/m-p/260722#M50030</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-05-23T12:19:11Z</dc:date>
    </item>
  </channel>
</rss>

