<?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 Dashboard Input Error When Time Is Set As &amp;quot;All Time&amp;quot; in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Input-Error-When-Time-Is-Set-As-quot-All-Time-quot/m-p/168992#M10383</link>
    <description>&lt;P&gt;hey guys, i'm new to splunk and i really need ur help!!!&lt;BR /&gt;
i built a form with an input&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" token="time1" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Time&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;
    &amp;lt;earliestTime&amp;gt;-24h@d&amp;lt;/earliestTime&amp;gt;
    &amp;lt;latestTime&amp;gt;@d&amp;lt;/latestTime&amp;gt;
  &amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and my search string is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;
    index=ha  "ha_fids: Terminating CM"  earliest=$time1.earliest$ latest=$time1.latest$ 
    | eval time=_time  
    | stats count by time 
    | SORT -time 
    | convert timeformat="%Y-%m-%d %H:%M:%S" ctime(time)
    | rename time as WarningTime 
    | table WarningTime 
&amp;lt;/query&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;everything works fine except an error occurs when i choose "all time" on the input bar :&lt;/P&gt;

&lt;P&gt;"Error in 'search' command: unable to parse the search: Comparator '=' is missing a term on the right hand side."&lt;/P&gt;

&lt;P&gt;my guess was when i choose "all time", earliest=$time1.earliest$, which is null. so i tried with double quotes around the tokens.&lt;/P&gt;

&lt;P&gt;earliest="$time1.earliest$" latest="$time1.latest$"&lt;/P&gt;

&lt;P&gt;no errors occur and no results are found. so how do i correct my search string?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2015 05:50:47 GMT</pubDate>
    <dc:creator>LuiesCui</dc:creator>
    <dc:date>2015-03-05T05:50:47Z</dc:date>
    <item>
      <title>Dashboard Input Error When Time Is Set As "All Time"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Input-Error-When-Time-Is-Set-As-quot-All-Time-quot/m-p/168992#M10383</link>
      <description>&lt;P&gt;hey guys, i'm new to splunk and i really need ur help!!!&lt;BR /&gt;
i built a form with an input&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" token="time1" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Time&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;
    &amp;lt;earliestTime&amp;gt;-24h@d&amp;lt;/earliestTime&amp;gt;
    &amp;lt;latestTime&amp;gt;@d&amp;lt;/latestTime&amp;gt;
  &amp;lt;/default&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and my search string is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;
    index=ha  "ha_fids: Terminating CM"  earliest=$time1.earliest$ latest=$time1.latest$ 
    | eval time=_time  
    | stats count by time 
    | SORT -time 
    | convert timeformat="%Y-%m-%d %H:%M:%S" ctime(time)
    | rename time as WarningTime 
    | table WarningTime 
&amp;lt;/query&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;everything works fine except an error occurs when i choose "all time" on the input bar :&lt;/P&gt;

&lt;P&gt;"Error in 'search' command: unable to parse the search: Comparator '=' is missing a term on the right hand side."&lt;/P&gt;

&lt;P&gt;my guess was when i choose "all time", earliest=$time1.earliest$, which is null. so i tried with double quotes around the tokens.&lt;/P&gt;

&lt;P&gt;earliest="$time1.earliest$" latest="$time1.latest$"&lt;/P&gt;

&lt;P&gt;no errors occur and no results are found. so how do i correct my search string?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 05:50:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Input-Error-When-Time-Is-Set-As-quot-All-Time-quot/m-p/168992#M10383</guid>
      <dc:creator>LuiesCui</dc:creator>
      <dc:date>2015-03-05T05:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Input Error When Time Is Set As "All Time"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Input-Error-When-Time-Is-Set-As-quot-All-Time-quot/m-p/168993#M10384</link>
      <description>&lt;P&gt;Your problem here is that "All time" doesn't use an earliest or latest time, it simply searches through everything.  Which is probably whats causing your error,  Why are you using earliest and latest time in your searches?  Surely you should use a timepicker in your dashboard and use those values as your search string.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 09:17:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Input-Error-When-Time-Is-Set-As-quot-All-Time-quot/m-p/168993#M10384</guid>
      <dc:creator>markthompson</dc:creator>
      <dc:date>2015-03-05T09:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Input Error When Time Is Set As "All Time"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Input-Error-When-Time-Is-Set-As-quot-All-Time-quot/m-p/168994#M10385</link>
      <description>&lt;P&gt;Hi Luies, &lt;/P&gt;

&lt;P&gt;I see that you are using splunk 6.2  if it is the case we change  &lt;STRONG&gt;earliestTime&lt;/STRONG&gt; and &lt;STRONG&gt;latestTime&lt;/STRONG&gt; into  &lt;STRONG&gt;earliest&lt;/STRONG&gt; and &lt;STRONG&gt;latest&lt;/STRONG&gt;  in your input setting &lt;/P&gt;

&lt;P&gt;Try to to use the time range like this:&lt;CODE&gt;enter code here&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search&amp;gt;
 &amp;lt;query&amp;gt;
     index=ha  "ha_fids: Terminating CM"  
     | eval time=_time  
     | stats count by time 
     | SORT -time 
     | convert timeformat="%Y-%m-%d %H:%M:%S" ctime(time)
     | rename time as WarningTime 
     | table WarningTime 
 &amp;lt;/query&amp;gt;
&amp;lt;earliest&amp;gt;$time1.earliest$&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;$time1.latest$&amp;lt;/latest&amp;gt;
&amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Mar 2015 10:11:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Input-Error-When-Time-Is-Set-As-quot-All-Time-quot/m-p/168994#M10385</guid>
      <dc:creator>stephane_cyrill</dc:creator>
      <dc:date>2015-03-05T10:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Input Error When Time Is Set As "All Time"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Input-Error-When-Time-Is-Set-As-quot-All-Time-quot/m-p/168995#M10386</link>
      <description>&lt;P&gt;What if those tokens should work on a sub-search?&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 17:37:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Input-Error-When-Time-Is-Set-As-quot-All-Time-quot/m-p/168995#M10386</guid>
      <dc:creator>thirumalreddyb</dc:creator>
      <dc:date>2016-05-16T17:37:26Z</dc:date>
    </item>
  </channel>
</rss>

