<?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: tstat hourly time span without snapping to hour, relative to start of absolute time range instead in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/tstat-hourly-time-span-without-snapping-to-hour-relative-to/m-p/543630#M153991</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232336"&gt;@akarollil&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;tstats command cannot do it but you can achieve by using timechart command.&lt;/P&gt;&lt;P&gt;Please try below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count, sum(X) as X , sum(Y) as Y FROM datamodel=ZModel BY _time span=30m 
| timechart span=1h aligntime=@h+30m sum(count) sum(X) sum(Y)&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 13 Mar 2021 10:30:18 GMT</pubDate>
    <dc:creator>scelikok</dc:creator>
    <dc:date>2021-03-13T10:30:18Z</dc:date>
    <item>
      <title>tstat hourly time span without snapping to hour, relative to start of absolute time range instead</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstat-hourly-time-span-without-snapping-to-hour-relative-to/m-p/543227#M153888</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to collect stats per hour using a data model for a absolute time range that starts 30 minutes past the hour. The query looks something like:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;|tstats count, sum(X), sum(Y) FROM datamodel=ZModel BY _time span=1h&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I choose a time range using the Date &amp;amp; Time Range picker, but the range starts at 30 minutes past the hour. So say something like Jan 1 16:30 to Jan 2 16:30. The problem I have is that the time 'buckets' in the result snap to the hour, and so the hourly ranges are like 16:00 - 17:00, 17:00 - 18:00 and so forth rather than 16:30 - 17:30, 17:30 - 18:30 and so forth.&lt;/P&gt;&lt;P&gt;Is there anyway to make the time buckets start off relative to the start time specified rather than snap to the hour? I tried using earliest= latest= instead of using the Date &amp;amp; Time Range picker, but that didn't help either.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 17:44:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstat-hourly-time-span-without-snapping-to-hour-relative-to/m-p/543227#M153888</guid>
      <dc:creator>akarollil</dc:creator>
      <dc:date>2021-03-10T17:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: tstat hourly time span without snapping to hour, relative to start of absolute time range instead</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstat-hourly-time-span-without-snapping-to-hour-relative-to/m-p/543567#M153970</link>
      <description>&lt;P&gt;Somebody? Anybody?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 17:20:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstat-hourly-time-span-without-snapping-to-hour-relative-to/m-p/543567#M153970</guid>
      <dc:creator>akarollil</dc:creator>
      <dc:date>2021-03-12T17:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: tstat hourly time span without snapping to hour, relative to start of absolute time range instead</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstat-hourly-time-span-without-snapping-to-hour-relative-to/m-p/543630#M153991</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232336"&gt;@akarollil&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;tstats command cannot do it but you can achieve by using timechart command.&lt;/P&gt;&lt;P&gt;Please try below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count, sum(X) as X , sum(Y) as Y FROM datamodel=ZModel BY _time span=30m 
| timechart span=1h aligntime=@h+30m sum(count) sum(X) sum(Y)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 13 Mar 2021 10:30:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstat-hourly-time-span-without-snapping-to-hour-relative-to/m-p/543630#M153991</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-03-13T10:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: tstat hourly time span without snapping to hour, relative to start of absolute time range instead</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstat-hourly-time-span-without-snapping-to-hour-relative-to/m-p/543875#M154060</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp;! That worked. I think I had seen &lt;FONT face="courier new,courier"&gt;aligntime&lt;/FONT&gt; but couldn't figure out how to use it with &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;timechart&lt;/FONT&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 15:17:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstat-hourly-time-span-without-snapping-to-hour-relative-to/m-p/543875#M154060</guid>
      <dc:creator>akarollil</dc:creator>
      <dc:date>2021-03-15T15:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: tstat hourly time span without snapping to hour, relative to start of absolute time range instead</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstat-hourly-time-span-without-snapping-to-hour-relative-to/m-p/543884#M154061</link>
      <description>&lt;P&gt;You're welcome&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232336"&gt;@akarollil&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Please accept the answer for community.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 15:33:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstat-hourly-time-span-without-snapping-to-hour-relative-to/m-p/543884#M154061</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-03-15T15:33:26Z</dc:date>
    </item>
  </channel>
</rss>

