<?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: bin span behaving wierd in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368485#M9790</link>
    <description>&lt;P&gt;Events are based on ET -0500.&lt;BR /&gt;
I am in CT -0600&lt;/P&gt;

&lt;P&gt;It does not matter what time of day you run it.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Apr 2018 09:39:19 GMT</pubDate>
    <dc:creator>rk60422</dc:creator>
    <dc:date>2018-04-27T09:39:19Z</dc:date>
    <item>
      <title>bin span behaving wierd</title>
      <link>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368483#M9788</link>
      <description>&lt;P&gt;Splunk Enterprise 6.5.2&lt;/P&gt;

&lt;P&gt;Trying to get 12 hour span reporting Midnight to noon, noon to midnight.&lt;/P&gt;

&lt;P&gt;A simplified version of my search is : index=_internal | bin _time span=12h | stats count by _time&lt;/P&gt;

&lt;P&gt;For some reason, the intervals are calculating 19:00 to 07:00, 07:00 to 19:00&lt;BR /&gt;
2018-04-20 07:00 2878932&lt;BR /&gt;&lt;BR /&gt;
2018-04-20 19:00  8825546&lt;BR /&gt;&lt;BR /&gt;
2018-04-21 07:00  5538945&lt;BR /&gt;&lt;BR /&gt;
2018-04-21 19:00  1476846&lt;BR /&gt;&lt;BR /&gt;
2018-04-22 07:00  4373903&lt;BR /&gt;&lt;BR /&gt;
2018-04-22 19:00  5332040&lt;BR /&gt;&lt;BR /&gt;
2018-04-23 07:00  1636378&lt;BR /&gt;&lt;BR /&gt;
2018-04-23 19:00  9937520&lt;BR /&gt;&lt;BR /&gt;
2018-04-24 07:00  11197284&lt;BR /&gt;&lt;BR /&gt;
2018-04-24 19:00  7186629&lt;BR /&gt;&lt;BR /&gt;
2018-04-25 07:00  3561015&lt;BR /&gt;&lt;BR /&gt;
2018-04-25 19:00  9161603&lt;BR /&gt;&lt;BR /&gt;
2018-04-26 07:00  7798990&lt;BR /&gt;&lt;BR /&gt;
2018-04-26 19:00  4544852  &lt;/P&gt;

&lt;P&gt;Is this a "Feature" or a bug&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 03:11:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368483#M9788</guid>
      <dc:creator>rk60422</dc:creator>
      <dc:date>2018-04-27T03:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: bin span behaving wierd</title>
      <link>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368484#M9789</link>
      <description>&lt;P&gt;Any chance your events are in a different timezone than your user preference, thus the time value shown for the event is different than the time of the event itself, which is what would be used by &lt;CODE&gt;bin&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 03:21:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368484#M9789</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-04-27T03:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: bin span behaving wierd</title>
      <link>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368485#M9790</link>
      <description>&lt;P&gt;Events are based on ET -0500.&lt;BR /&gt;
I am in CT -0600&lt;/P&gt;

&lt;P&gt;It does not matter what time of day you run it.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 09:39:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368485#M9790</guid>
      <dc:creator>rk60422</dc:creator>
      <dc:date>2018-04-27T09:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: bin span behaving wierd</title>
      <link>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368486#M9791</link>
      <description>&lt;P&gt;Put in an earliest flag in the search to snap to the beginning of the day?&lt;/P&gt;

&lt;P&gt;Something like earliest=-2d@d&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 12:31:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368486#M9791</guid>
      <dc:creator>ndoshi</dc:creator>
      <dc:date>2018-04-27T12:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: bin span behaving wierd</title>
      <link>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368487#M9792</link>
      <description>&lt;P&gt;I'm willing to bet your UI is configured to show events in ET.  That would explain why a time that you'd expect to be at 12:00 would be displayed on your side as 07:00.&lt;/P&gt;

&lt;P&gt;To check this:&lt;/P&gt;

&lt;P&gt;Your Name (on the top bar of the page) -&amp;gt; Account Settings&lt;/P&gt;

&lt;P&gt;Examine what's shown for Time zone under the Global heading.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 13:26:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368487#M9792</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-04-27T13:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: bin span behaving wierd</title>
      <link>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368488#M9793</link>
      <description>&lt;P&gt;Did some research with our SE, Nimish.&lt;BR /&gt;
When the Time Zone is anything other than "Default System Timezone", you get some calculation of a different time.&lt;BR /&gt;
when timezone = CT (-0600) span time starts 19:00&lt;BR /&gt;
when timezone = Chennai (+0530) time starts @ 17:30&lt;BR /&gt;
When timezone = ET (-0500) time starts @ 20:00&lt;BR /&gt;
When timezone = Default System Timezone time starts @ 00:00&lt;/P&gt;

&lt;P&gt;I have tried added earliest =-7d@d to try to force it to look at full days. Same results.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 14:45:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368488#M9793</guid>
      <dc:creator>rk60422</dc:creator>
      <dc:date>2018-04-27T14:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: bin span behaving wierd</title>
      <link>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368489#M9794</link>
      <description>&lt;P&gt;Instead of this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| bin _time span=12h ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _time = relative_time(_time, "@d") + if((tonumber(strftime(_time, "%H%M")) &amp;lt; 1200), 0, (12 * 60 * 60)) ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:02:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368489#M9794</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-04-30T19:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: bin span behaving wierd</title>
      <link>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368490#M9795</link>
      <description>&lt;P&gt;Can you explain how you did this. I am having hard time to understand this calculation.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 21:19:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368490#M9795</guid>
      <dc:creator>macadminrohit</dc:creator>
      <dc:date>2018-04-30T21:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: bin span behaving wierd</title>
      <link>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368491#M9796</link>
      <description>&lt;P&gt;I manually built what &lt;CODE&gt;bin&lt;/CODE&gt; automagically does.  The &lt;CODE&gt;relative_time&lt;/CODE&gt; call rounds &lt;CODE&gt;_time&lt;/CODE&gt; down to the beginning of the current day.  The &lt;CODE&gt;strftime&lt;/CODE&gt; call calculates &lt;CODE&gt;HHMM&lt;/CODE&gt; offset for the current day and if that is &amp;lt; 1200, adds nothing to the rounded-down-to-start-of-day &lt;CODE&gt;_time&lt;/CODE&gt;, otherwise adds 12-hours of seconds (12 * 60 *60) to it.  Then it drops the microphone.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 21:37:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/bin-span-behaving-wierd/m-p/368491#M9796</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-04-30T21:37:39Z</dc:date>
    </item>
  </channel>
</rss>

