<?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: Displaying chart in real-time with fixed earliest/latest in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Displaying-chart-in-real-time-with-fixed-earliest-latest/m-p/175907#M50518</link>
    <description>&lt;P&gt;Have you read the document at the link provided? It says that you can't use &lt;CODE&gt;earliest=rt-1d@d&lt;/CODE&gt; or something like that &lt;EM&gt;within&lt;/EM&gt; your search string. You can however place such a setting in times.conf to add them to the time range picker as a preset. That way, you can select a real-time search for the main search. Sadly, this is still not exactly what you asked for, because it doesn't contain the &lt;CODE&gt;@d+9h&lt;/CODE&gt; offset.&lt;BR /&gt;
I had another idea for that: you could calculate the seconds passed since midnight and see if that number is between 32400 and 61200, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval e_day=strptime(strftime(_time, "%y %m %d"), "%y %m %d") | eval t_today=_time-e_day | where t_today&amp;gt;32400 AND t_today&amp;lt;61200
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 21 Aug 2015 07:33:01 GMT</pubDate>
    <dc:creator>jeffland</dc:creator>
    <dc:date>2015-08-21T07:33:01Z</dc:date>
    <item>
      <title>Displaying chart in real-time with fixed earliest/latest</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-chart-in-real-time-with-fixed-earliest-latest/m-p/175902#M50513</link>
      <description>&lt;P&gt;I have a query that overlays the value of one date with the value of another date, it is put together as this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... earliest=@d+9h latest=@d+17h ... | appendcols [ ... earliest=someDate:09:00:00 latest=someDate:17:00:00 ... ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The time frame is set to "All time" since someDate can be any date and is input as a result of drop downs. I would like to show the value of the first search in real time, how would this be done? I'm thinking about force updating the chart each 1 minute or something... "All time (real-time)" doesn't work as it only displays the value from when the search is done and forward.&lt;/P&gt;

&lt;P&gt;Can I replace @d+9h with some dynamic solution to just show the value between business hours?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2015 13:42:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-chart-in-real-time-with-fixed-earliest-latest/m-p/175902#M50513</guid>
      <dc:creator>ohlafl</dc:creator>
      <dc:date>2015-08-17T13:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying chart in real-time with fixed earliest/latest</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-chart-in-real-time-with-fixed-earliest-latest/m-p/175903#M50514</link>
      <description>&lt;P&gt;Any ideas on this?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 13:26:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-chart-in-real-time-with-fixed-earliest-latest/m-p/175903#M50514</guid>
      <dc:creator>ohlafl</dc:creator>
      <dc:date>2015-08-18T13:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying chart in real-time with fixed earliest/latest</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-chart-in-real-time-with-fixed-earliest-latest/m-p/175904#M50515</link>
      <description>&lt;P&gt;Still nothing? Perhaps it is not possible. Karma awarded!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2015 11:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-chart-in-real-time-with-fixed-earliest-latest/m-p/175904#M50515</guid>
      <dc:creator>ohlafl</dc:creator>
      <dc:date>2015-08-20T11:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying chart in real-time with fixed earliest/latest</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-chart-in-real-time-with-fixed-earliest-latest/m-p/175905#M50516</link>
      <description>&lt;P&gt;Well, the obvious solution to update the dashboard is to add &lt;CODE&gt;refresh = seconds&lt;/CODE&gt; to your &lt;CODE&gt;dashboard&lt;/CODE&gt; or &lt;CODE&gt;form&lt;/CODE&gt; tag, e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard refresh="60"&amp;gt;
  &amp;lt;row&amp;gt;
    ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;H2&gt;You can also do this only with specific panels with &lt;CODE&gt;refresh.auto.interval&lt;/CODE&gt;, see &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/PanelreferenceforSimplifiedXML"&gt;here&lt;/A&gt; for the Simple XML reference.&lt;/H2&gt;

&lt;P&gt;PS: using &lt;CODE&gt;earliest&lt;/CODE&gt; and &lt;CODE&gt;latest&lt;/CODE&gt; with real-time search ranges directly in a search is not supported as described &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/Search/Specifyrealtimewindowsinyoursearch"&gt;here&lt;/A&gt;. You could however define a time range picker option and select that; you can then specify another non-real-time range with &lt;CODE&gt;earliest&lt;/CODE&gt; and &lt;CODE&gt;latest&lt;/CODE&gt; for your subsearch.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2015 12:23:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-chart-in-real-time-with-fixed-earliest-latest/m-p/175905#M50516</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-08-20T12:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying chart in real-time with fixed earliest/latest</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-chart-in-real-time-with-fixed-earliest-latest/m-p/175906#M50517</link>
      <description>&lt;P&gt;Ah, that auto-refresh feature is really nice. I don't really understand the PS part but I think that would be even better? Could you possibly give an example?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2015 12:52:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-chart-in-real-time-with-fixed-earliest-latest/m-p/175906#M50517</guid>
      <dc:creator>ohlafl</dc:creator>
      <dc:date>2015-08-20T12:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying chart in real-time with fixed earliest/latest</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-chart-in-real-time-with-fixed-earliest-latest/m-p/175907#M50518</link>
      <description>&lt;P&gt;Have you read the document at the link provided? It says that you can't use &lt;CODE&gt;earliest=rt-1d@d&lt;/CODE&gt; or something like that &lt;EM&gt;within&lt;/EM&gt; your search string. You can however place such a setting in times.conf to add them to the time range picker as a preset. That way, you can select a real-time search for the main search. Sadly, this is still not exactly what you asked for, because it doesn't contain the &lt;CODE&gt;@d+9h&lt;/CODE&gt; offset.&lt;BR /&gt;
I had another idea for that: you could calculate the seconds passed since midnight and see if that number is between 32400 and 61200, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval e_day=strptime(strftime(_time, "%y %m %d"), "%y %m %d") | eval t_today=_time-e_day | where t_today&amp;gt;32400 AND t_today&amp;lt;61200
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Aug 2015 07:33:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-chart-in-real-time-with-fixed-earliest-latest/m-p/175907#M50518</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-08-21T07:33:01Z</dc:date>
    </item>
  </channel>
</rss>

