<?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: Why is my dashboard &amp;quot;waiting for input&amp;quot; even though it initializes the token used in query? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428991#M28265</link>
    <description>&lt;P&gt;Accepted and upvoted. Thanks again everyone.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jul 2018 16:22:20 GMT</pubDate>
    <dc:creator>Cuonghuutran</dc:creator>
    <dc:date>2018-07-09T16:22:20Z</dc:date>
    <item>
      <title>Why is my dashboard "waiting for input" even though it initializes the token used in query?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428984#M28258</link>
      <description>&lt;P&gt;Hi, I initialize a token with a value (number in hex) and use this token in search. However, the dashboard still asks for input? My XML is below. Please advise. Thanks in advance.&lt;/P&gt;

&lt;P&gt;Query Details by Day Clone&lt;BR /&gt;
  Distribution of count and response by host per day&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;set token="InQueryHash"&amp;gt;b6ffee0d1c4f18ba&amp;lt;/set&amp;gt;


&amp;lt;panel&amp;gt;

  &amp;lt;table&amp;gt;
    &amp;lt;title&amp;gt;Query latency per host per hour&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;(splunk_server_group=default OR splunk_server_group=distapps) (index=distapps) 
        sourcetype="aa:bb" organizationId="cc" pname=dd.214 Request action=query 
        runTime&amp;gt;0 (respCode=200 OR respCode=408) 
        queryHash=$InQueryHash$   
        | bucket _time span=1h 
        | eval Date=strftime(_time,"%m/%d/%y %H:%M:%S") 
        | stats count(host) as querycount 
            avg(runTime) as avgtime 
            min(runTime) as mintime 
            max(runTime) as maxtime 
            perc95(runTime) as perc95time               
            perc50(runTime) as medtime
            stdev(runTime) as stddevtime 
            by host, _time&amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;1529798400&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;1530403199&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
  &amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 08 Jul 2018 17:13:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428984#M28258</guid>
      <dc:creator>Cuonghuutran</dc:creator>
      <dc:date>2018-07-08T17:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my dashboard "waiting for input" even though it initializes the token used in query?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428985#M28259</link>
      <description>&lt;P&gt;Try the &lt;CODE&gt;Developer Gadgets App&lt;/CODE&gt; to help you see &lt;EM&gt;exactly&lt;/EM&gt; what all of your tokens are all of time time:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/3689/"&gt;https://splunkbase.splunk.com/app/3689/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Jul 2018 17:34:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428985#M28259</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-08T17:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my dashboard "waiting for input" even though it initializes the token used in query?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428986#M28260</link>
      <description>&lt;P&gt;Hello @Cuonghuutran,&lt;/P&gt;

&lt;P&gt;just a few questions:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Is the &lt;CODE&gt;&amp;lt;set token="InQueryHash"&amp;gt;b6ffee0d1c4f18ba&amp;lt;/set&amp;gt;&lt;/CODE&gt; located in the &lt;CODE&gt;&amp;lt;init&amp;gt;&amp;lt;/init&amp;gt;&lt;/CODE&gt; of the dashboard? A previous search?&lt;/LI&gt;
&lt;LI&gt;Did you try to display  &lt;CODE&gt;$InQueryHash$&lt;/CODE&gt; in the title of the table? This is faster than installing the &lt;CODE&gt;Developper Gadget App&lt;/CODE&gt;, but less powerful.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 09 Jul 2018 05:12:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428986#M28260</guid>
      <dc:creator>poete</dc:creator>
      <dc:date>2018-07-09T05:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my dashboard "waiting for input" even though it initializes the token used in query?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428987#M28261</link>
      <description>&lt;P&gt;@Cuonghuutran just to add, &lt;CODE&gt;&amp;lt;init&amp;gt;&lt;/CODE&gt; section to initialize token is available from Splunk version 6.5 onward. Refer to documentation: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens#Guidelines"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens#Guidelines&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;So you would need to run an independent search otherwise to set this value to initialize in case you are not on version 6.5 or above.&lt;/P&gt;

&lt;P&gt;For example following will set the token to a default value using a dummy search query&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!-- Independent Search to default token value in a dashboard --&amp;gt;
&amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;| makeresults
    &amp;lt;/query&amp;gt;
    &amp;lt;finalized&amp;gt;
       &amp;lt;set token="InQueryHash"&amp;gt;b6ffee0d1c4f18ba&amp;lt;&amp;gt;
    &amp;lt;/finalized&amp;gt;
&amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: &lt;CODE&gt;&amp;lt;finalized&amp;gt;&lt;/CODE&gt; search event handler got replaced with &lt;CODE&gt;&amp;lt;done&amp;gt;&lt;/CODE&gt; from version 6.5 and higher. Refer to documentation: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference#Search_event_handlers"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Viz/EventHandlerReference#Search_event_handlers&lt;/A&gt;&lt;BR /&gt;
Change Splunk Version in the Documentation link to look at documentation specific to your Splunk Version.&lt;BR /&gt;
Also &lt;CODE&gt;&amp;lt;init&amp;gt;&lt;/CODE&gt; section does not work on HTML Dashboards where you would need to use the concept of independent search again.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 05:32:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428987#M28261</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-07-09T05:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my dashboard "waiting for input" even though it initializes the token used in query?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428988#M28262</link>
      <description>&lt;P&gt;Thanks @niketnilay my Splunk version is indeed 6.3.2. Your solution works. Thanks @niketnilay, @poete, and @woodcock for your input. I will try Developer Gadgets App later.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 15:38:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428988#M28262</guid>
      <dc:creator>Cuonghuutran</dc:creator>
      <dc:date>2018-07-09T15:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my dashboard "waiting for input" even though it initializes the token used in query?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428989#M28263</link>
      <description>&lt;P&gt;Don't forget to click &lt;CODE&gt;Accept&lt;/CODE&gt; on the answer to close the question and click on some &lt;CODE&gt;UpVotes&lt;/CODE&gt;, too!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 16:03:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428989#M28263</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-09T16:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my dashboard "waiting for input" even though it initializes the token used in query?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428990#M28264</link>
      <description>&lt;P&gt;@Cuonghuutran as mentioned earlier, since you are on a Splunk version less than 6.5, your would need to use a dummy search with &lt;CODE&gt;finalized&lt;/CODE&gt; search event handler to default the token value on loading the dashboard.&lt;/P&gt;

&lt;P&gt;I have converted my comment to answer. Please accept to mark this question as answered.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 16:07:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428990#M28264</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-07-09T16:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my dashboard "waiting for input" even though it initializes the token used in query?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428991#M28265</link>
      <description>&lt;P&gt;Accepted and upvoted. Thanks again everyone.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 16:22:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428991#M28265</guid>
      <dc:creator>Cuonghuutran</dc:creator>
      <dc:date>2018-07-09T16:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my dashboard "waiting for input" even though it initializes the token used in query?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428992#M28266</link>
      <description>&lt;P&gt;You accepted the wrong one!  Maybe mine was helpful and deserved an &lt;CODE&gt;UpVote&lt;/CODE&gt;, but @niketnilay had the good stuff with the real answer.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 16:27:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-my-dashboard-quot-waiting-for-input-quot-even-though-it/m-p/428992#M28266</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-09T16:27:22Z</dc:date>
    </item>
  </channel>
</rss>

