<?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: snap to 10 minutes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/snap-to-10-minutes/m-p/44500#M179199</link>
    <description>&lt;P&gt;You're probably looking for the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Bucket"&gt;bin/bucket&lt;/A&gt; command :&lt;/P&gt;

&lt;P&gt;It "bins" values into discrete sets (or buckets)&lt;/P&gt;

&lt;P&gt;This should do it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | bin _time span=10m  | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;John&lt;/P&gt;</description>
    <pubDate>Sun, 26 Aug 2012 13:02:48 GMT</pubDate>
    <dc:creator>jonuwz</dc:creator>
    <dc:date>2012-08-26T13:02:48Z</dc:date>
    <item>
      <title>snap to 10 minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/snap-to-10-minutes/m-p/44499#M179198</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;
I want to snap to 10 minutes.&lt;BR /&gt;
I know how to snap to an hour for example:&lt;BR /&gt;
... | eval _time=relative_time(_time,"@h")&lt;/P&gt;

&lt;P&gt;However, this doesn't work for 10 minutes time. Is there any other way to do it?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:20:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/snap-to-10-minutes/m-p/44499#M179198</guid>
      <dc:creator>dadi</dc:creator>
      <dc:date>2020-09-28T12:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: snap to 10 minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/snap-to-10-minutes/m-p/44500#M179199</link>
      <description>&lt;P&gt;You're probably looking for the &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Bucket"&gt;bin/bucket&lt;/A&gt; command :&lt;/P&gt;

&lt;P&gt;It "bins" values into discrete sets (or buckets)&lt;/P&gt;

&lt;P&gt;This should do it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | bin _time span=10m  | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Sun, 26 Aug 2012 13:02:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/snap-to-10-minutes/m-p/44500#M179199</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2012-08-26T13:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: snap to 10 minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/snap-to-10-minutes/m-p/44501#M179200</link>
      <description>&lt;P&gt;This might be what you are looking for:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/99161/snap-to-5-minute-increments-in-timerange"&gt;http://answers.splunk.com/answers/99161/snap-to-5-minute-increments-in-timerange&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2013 23:38:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/snap-to-10-minutes/m-p/44501#M179200</guid>
      <dc:creator>charleswheelus</dc:creator>
      <dc:date>2013-08-14T23:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: snap to 10 minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/snap-to-10-minutes/m-p/44502#M179201</link>
      <description>&lt;P&gt;Making time snap to the next 10th minute&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval now = now() 
| eval now_snapped_to_next_10th_min = relative_time(now(), 
    [| makeresults 
    | eval now = now() 
    | convert ctime(now) 
    | rex field=now "\d(?&amp;lt;min&amp;gt;\d)\:(?:\d{2})$" 
    | eval min = 10 - min 
    | eval min = if(min == 10, 0, min) 
    | eval adder = "\"+" . tostring(min) . "m@m\"" 
    | return $adder])
| convert ctime(now*) timeformat="%F %X"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Jan 2020 07:21:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/snap-to-10-minutes/m-p/44502#M179201</guid>
      <dc:creator>morethanyell</dc:creator>
      <dc:date>2020-01-22T07:21:45Z</dc:date>
    </item>
  </channel>
</rss>

