<?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: Inconsistent Behavior With Timechart  and &amp;quot;Today&amp;quot; Timeframe in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124696#M33714</link>
    <description>&lt;P&gt;The behavior occurs in a dashboard as well as from the search bar.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2013 18:52:07 GMT</pubDate>
    <dc:creator>aferone</dc:creator>
    <dc:date>2013-10-31T18:52:07Z</dc:date>
    <item>
      <title>Inconsistent Behavior With Timechart  and "Today" Timeframe</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124694#M33712</link>
      <description>&lt;P&gt;This is really weird.  I am hoping someone else has seen this and has a fix.&lt;/P&gt;

&lt;P&gt;This is my query.  I want to make a chart that shows the entire day (full 24 hours) for TODAY.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="hostname" SnortID="[1000]" earliest=@d latest=+1d@d | timechart span=5m count(SnortID) by SnortID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I run this query the FIRST TIME, I get a chart that shows all of today, including up to tomorrow at midnight, which is what I want.  Here is an exmaple:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://answers.splunk.com//storage/chart2.gif" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;However, if I only refresh this query, it will only show the chart up from the first found record until the last found record.  Here is an example:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://answers.splunk.com//storage/chart_1.gif" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;All I did was hit refresh, and the chart changes!  The data is the same.&lt;/P&gt;

&lt;P&gt;Does anyone have a fix or seen this?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 18:37:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124694#M33712</guid>
      <dc:creator>aferone</dc:creator>
      <dc:date>2013-10-31T18:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Behavior With Timechart  and "Today" Timeframe</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124695#M33713</link>
      <description>&lt;P&gt;You are running this search in a dashboard??&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 18:50:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124695#M33713</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-10-31T18:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Behavior With Timechart  and "Today" Timeframe</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124696#M33714</link>
      <description>&lt;P&gt;The behavior occurs in a dashboard as well as from the search bar.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 18:52:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124696#M33714</guid>
      <dc:creator>aferone</dc:creator>
      <dc:date>2013-10-31T18:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Behavior With Timechart  and "Today" Timeframe</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124697#M33715</link>
      <description>&lt;P&gt;I don't know why it is inconsistent - that's weird. But I do know how to force it to behave the way you want, whatever that is. Use the &lt;CODE&gt;fixedrange&lt;/CODE&gt; option for the &lt;CODE&gt;timechart&lt;/CODE&gt; command.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;fixedrange=f&lt;/CODE&gt; means "only graph the data that is there." This is what happened when you refreshed.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;fixedrange=t&lt;/CODE&gt; means "graph the time range selected in the search." This is the default, and what happened when the search ran the first time.&lt;/P&gt;

&lt;P&gt;So&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="hostname" SnortID="[1000]" earliest=@d latest=+1d@d 
| timechart fixedrange=t span=5m count(SnortID) by SnortID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;EM&gt;should&lt;/EM&gt; get you what you want every time. If it doesn't, then I think there could be some bug in Splunk that makes it refresh wrong.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 19:23:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124697#M33715</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-10-31T19:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Behavior With Timechart  and "Today" Timeframe</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124698#M33716</link>
      <description>&lt;P&gt;I was really hoping for this to work.  I tried it, and the first few times I refreshed it was fine.  But then it reverted back to the view I have described above.  And then it was correct again.  This is really weird.  I appreciate the response.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2013 19:28:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124698#M33716</guid>
      <dc:creator>aferone</dc:creator>
      <dc:date>2013-10-31T19:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Behavior With Timechart  and "Today" Timeframe</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124699#M33717</link>
      <description>&lt;P&gt;I see the exact same behaviour, running 6.1.4 on Windows. Any news on this?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2014 07:47:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124699#M33717</guid>
      <dc:creator>sves</dc:creator>
      <dc:date>2014-11-12T07:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Behavior With Timechart  and "Today" Timeframe</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124700#M33718</link>
      <description>&lt;P&gt;Same exact behavior, running 6.1.4 on Windows.  I started out with these 2 queries and different events were returned.&lt;BR /&gt;&lt;BR /&gt;
these are the queries:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;index= | lookup local=1 userstatus UserID as user_id OUTPUTNEW UserStatus as user_status | eval user_status = if(user_status="NONE", true, user_status) | search userstatus=true AND status = 200 AND (file=search OR file=content) | timechart count(method) by user_id&lt;BR /&gt;
index= | lookup local=1 userstatus UserID as user_id OUTPUTNEW UserStatus as user_status | eval user_status = if(user_status="NONE", true, user_status) | search userstatus=true AND status = 200 AND (file=search OR file=content) | dedup user_id, date_month, date_mday | timechart count(user_id) As "User Count"&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Then, I cut and pasted the 2nd query to the 1st window and received different results. (Same time frame for both queries).&lt;/P&gt;

&lt;P&gt;,&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:18:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124700#M33718</guid>
      <dc:creator>natdsuarez</dc:creator>
      <dc:date>2020-09-28T18:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Behavior With Timechart  and "Today" Timeframe</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124701#M33719</link>
      <description>&lt;P&gt;I see the same behavior with Web UI in Windows 7, using either Firefox or Chrome, and Splunk version 6.1.5.&lt;BR /&gt;
I put in a bug report with Splunk for this issue.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2015 17:48:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124701#M33719</guid>
      <dc:creator>sansay</dc:creator>
      <dc:date>2015-01-20T17:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Behavior With Timechart  and "Today" Timeframe</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124702#M33720</link>
      <description>&lt;P&gt;I see this same behavior running 6.2 on Linux. Timechart inconsistently uses the first event or the earliest search time specified. &lt;CODE&gt;fixedrange&lt;/CODE&gt; has no effect.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 20:14:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124702#M33720</guid>
      <dc:creator>curtisb1024</dc:creator>
      <dc:date>2015-03-04T20:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Behavior With Timechart  and "Today" Timeframe</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124703#M33721</link>
      <description>&lt;P&gt;I am experiencing this same problem, over 3 years later. Not sure why this hasn't been fixed by now. For me, the problem happens (i.e. fixedrange=true is not respected) when there is no 'latest' arg set in the time picker, which explains why the same query string will behave differently in different search screens (because they are getting the time picker from the search window). Simply setting latest=now fixed this for me - the problem is that splunk's default time ranges that are up to current time (e.g. 'today' or 'last 4 hours') do not always set latest=now, but leave latest empty. You can confirm this in the URL.  On dashboards using a shared time picker you can set latest=now in the default time but if the user changes this to one of the defaults with an implied latest=now setting, that setting might unset 'latest' and stop fixedrange=true from working. &lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 09:46:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124703#M33721</guid>
      <dc:creator>rickybails</dc:creator>
      <dc:date>2018-05-02T09:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Behavior With Timechart  and "Today" Timeframe</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124704#M33722</link>
      <description>&lt;P&gt;@rickybails You're adding on to a three-year-old posting.  For better chances at a helpful response, please post a new question.&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 14:12:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124704#M33722</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-05-02T14:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Behavior With Timechart  and "Today" Timeframe</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124705#M33723</link>
      <description>&lt;P&gt;Try forcing this behavior one way or the other by playing with the &lt;CODE&gt;cont&lt;/CODE&gt; and partial` options.&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 14:58:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Inconsistent-Behavior-With-Timechart-and-quot-Today-quot/m-p/124705#M33723</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-05-02T14:58:14Z</dc:date>
    </item>
  </channel>
</rss>

