<?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: Help to round the current time in quarter of hour in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/596014#M207476</link>
    <description>&lt;LI-CODE lang="markup"&gt;| eval current=now()+(15*30)-1
| bin current span=15m
| fieldformat current=strftime(current,"%H:%M")&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 30 Apr 2022 07:06:51 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-04-30T07:06:51Z</dc:date>
    <item>
      <title>Is it possible to round the current time in a quarter of hour ( quarter superior)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/595920#M207438</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Is it possible to round the current time in a quarter of hour ( quarter superior)&lt;/P&gt;
&lt;P&gt;For exemple if its 9h56 i would like to diplay 10:00 and 11:42 i would like to display 11:45&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 19:36:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/595920#M207438</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-04-30T19:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help to round the current time in quarter of hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/595925#M207441</link>
      <description>&lt;P&gt;Remainder=Time % 900&lt;BR /&gt;Time=Time-Remainder&lt;BR /&gt;If Reminder &amp;gt;=450 then Time=Time+900&lt;/P&gt;&lt;P&gt;You can do each step here with the splunk Eval command.&lt;BR /&gt;&lt;BR /&gt;Time needs to be in Unix: here the docs to help with that&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/SCS/current/SearchReference/DateandTimeFunctions" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/SCS/current/SearchReference/DateandTimeFunctions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 14:00:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/595925#M207441</guid>
      <dc:creator>DanielPriceUK</dc:creator>
      <dc:date>2022-04-29T14:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help to round the current time in quarter of hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/595973#M207460</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;So if i well understand i cant have a date in H:M: format?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 16:33:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/595973#M207460</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-04-29T16:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help to round the current time in quarter of hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/595977#M207462</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval _time=_time+(15*30)-1
| bin _time span=15m
| fieldformat _time=strftime(_time,"%H:%M")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 29 Apr 2022 17:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/595977#M207462</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-29T17:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help to round the current time in quarter of hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/595978#M207463</link>
      <description>&lt;P&gt;you can use&amp;nbsp; the functions, strftime and strptime to change between formats.&lt;BR /&gt;you can read about them here.&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/SCS/current/SearchReference/DateandTimeFunctions" target="_blank"&gt;https://docs.splunk.com/Documentation/SCS/current/SearchReference/DateandTimeFunctions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 17:02:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/595978#M207463</guid>
      <dc:creator>DanielPriceUK</dc:creator>
      <dc:date>2022-04-29T17:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help to round the current time in quarter of hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/596012#M207474</link>
      <description>&lt;P&gt;it works fine but i need to do the same thing from the currnt time...&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 04:24:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/596012#M207474</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-04-30T04:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help to round the current time in quarter of hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/596014#M207476</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval current=now()+(15*30)-1
| bin current span=15m
| fieldformat current=strftime(current,"%H:%M")&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 30 Apr 2022 07:06:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/596014#M207476</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-30T07:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help to round the current time in quarter of hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/596017#M207477</link>
      <description>&lt;P&gt;it seems to be what I need&lt;/P&gt;&lt;P&gt;but when I compare the current time with the past time (see my where clause) it displays nothing&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;`index` sourcetype="session"  earliest=-7d@d+7h latest=-7d@d+19h 
| bin _time span=15m 
| eval time=strftime(_time,"%H:%M") 
| stats dc(s) as s by time 
| eval current=now()+(15*30)-1 
| bin current span=15m 
| fieldformat current=strftime(current,"%H:%M") 
| where time=current
| table s time current&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;it's strange because I can see data on the same slot time&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jip31_0-1651303312101.png" style="width: 731px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19389i1A2F1B215037387A/image-dimensions/731x336?v=v2" width="731" height="336" role="button" title="jip31_0-1651303312101.png" alt="jip31_0-1651303312101.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 07:22:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/596017#M207477</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-04-30T07:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help to round the current time in quarter of hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/596018#M207478</link>
      <description>&lt;P&gt;fieldformat doesn't change the value of the field, it just changes the way the field is display. Change it to&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval current=strftime(current,"%H:%M")&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 30 Apr 2022 07:25:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/596018#M207478</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-30T07:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help to round the current time in quarter of hour</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/596020#M207479</link>
      <description>&lt;P&gt;perfect ITWhisperer, thanks&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 07:47:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-round-the-current-time-in-a-quarter-of-hour/m-p/596020#M207479</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2022-04-30T07:47:59Z</dc:date>
    </item>
  </channel>
</rss>

