<?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 Bucket time span causing incorrect date entries in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Bucket-time-span-causing-incorrect-date-entries/m-p/146631#M40946</link>
    <description>&lt;P&gt;I have the following query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;some query... | bucket _time span=1d | eval date=strftime(_time, "%b %d, %Y") | chart avg(value) as Value over date
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which is tethered to the following time span:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;earliest&amp;gt;-$global_time$d@d&amp;lt;/earliest&amp;gt;
 &amp;lt;latest&amp;gt;-1@d&amp;lt;/latest&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where global_time can be any integer representing a number of days.&lt;/P&gt;

&lt;P&gt;The data that comes out is correct but the statistics (and therefor visualization)  always show the first day of the current month as the first entry, if I search over let's say 40 days I get the following result:&lt;/P&gt;

&lt;P&gt;1st July ... 28th July, 24th June, 25th June, 26th June, 29th June... until 40 posts has been filled. What is wrong here???&lt;/P&gt;

&lt;P&gt;Weekends are not included as there is no output data for Value during those days. &lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2015 09:38:35 GMT</pubDate>
    <dc:creator>ohlafl</dc:creator>
    <dc:date>2015-07-29T09:38:35Z</dc:date>
    <item>
      <title>Bucket time span causing incorrect date entries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Bucket-time-span-causing-incorrect-date-entries/m-p/146631#M40946</link>
      <description>&lt;P&gt;I have the following query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;some query... | bucket _time span=1d | eval date=strftime(_time, "%b %d, %Y") | chart avg(value) as Value over date
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which is tethered to the following time span:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;earliest&amp;gt;-$global_time$d@d&amp;lt;/earliest&amp;gt;
 &amp;lt;latest&amp;gt;-1@d&amp;lt;/latest&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where global_time can be any integer representing a number of days.&lt;/P&gt;

&lt;P&gt;The data that comes out is correct but the statistics (and therefor visualization)  always show the first day of the current month as the first entry, if I search over let's say 40 days I get the following result:&lt;/P&gt;

&lt;P&gt;1st July ... 28th July, 24th June, 25th June, 26th June, 29th June... until 40 posts has been filled. What is wrong here???&lt;/P&gt;

&lt;P&gt;Weekends are not included as there is no output data for Value during those days. &lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 09:38:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Bucket-time-span-causing-incorrect-date-entries/m-p/146631#M40946</guid>
      <dc:creator>ohlafl</dc:creator>
      <dc:date>2015-07-29T09:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Bucket time span causing incorrect date entries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Bucket-time-span-causing-incorrect-date-entries/m-p/146632#M40947</link>
      <description>&lt;P&gt;It is because your &lt;CODE&gt;date&lt;/CODE&gt; field is being sorted alphabetically and "1" always comes first.  Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;some query... | bucket _time span=1d | eval date=_time | fieldformat date=strftime(date, "%b %d, %Y") | chart avg(value) as Value over date
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jul 2015 10:48:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Bucket-time-span-causing-incorrect-date-entries/m-p/146632#M40947</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-29T10:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Bucket time span causing incorrect date entries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Bucket-time-span-causing-incorrect-date-entries/m-p/146633#M40948</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 13:29:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Bucket-time-span-causing-incorrect-date-entries/m-p/146633#M40948</guid>
      <dc:creator>ohlafl</dc:creator>
      <dc:date>2015-07-29T13:29:35Z</dc:date>
    </item>
  </channel>
</rss>

