<?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 Why is the &amp;quot;map&amp;quot; command not working in dashboard and the corresponding panel displays &amp;quot;Waiting for inputs&amp;quot;? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187296#M11621</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I wanted to find the missing timestamp for consumer numbers. We are expected to receive the data for each consumer's number for every 1 hour. If there are no events for any of the consumer numbers for any hour, such consumer numbers and missing hour should be displayed.&lt;/P&gt;

&lt;P&gt;The below query gives the correct result as expected. The output of the below query gives the consumer numbers and its missing time hour information.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     index="sm" sourcetype="sm"  | rename "Consumer No" as cn | stats count by cn | map search="search index=sm sourcetype=sm $cn$| timechart span=1h count | where count=0 | eval Consumer_no=$cn$"| convert ctime(_time) | stats values(_time) by Consumer_no
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm getting the following output as expected&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;                  Meter 1     31/08/2014 1:00
                              01/09/2014 13:00
                  Meter 2    29/08/2014  8:00
                             05/09/2014  12:00
                   Meter 3    05/09/2014  10:00
                             05/09/2014  15:00
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Problem:&lt;/P&gt;

&lt;P&gt;When saving the query into a dashboard, the same result is not displaying.  I always see “waiting for inputs”  in the corresponding panel in the dashboard and result never displays.&lt;/P&gt;

&lt;P&gt;Can anyone help how to resolve this issue??&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jan 2015 00:57:09 GMT</pubDate>
    <dc:creator>jayannah</dc:creator>
    <dc:date>2015-01-20T00:57:09Z</dc:date>
    <item>
      <title>Why is the "map" command not working in dashboard and the corresponding panel displays "Waiting for inputs"?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187296#M11621</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I wanted to find the missing timestamp for consumer numbers. We are expected to receive the data for each consumer's number for every 1 hour. If there are no events for any of the consumer numbers for any hour, such consumer numbers and missing hour should be displayed.&lt;/P&gt;

&lt;P&gt;The below query gives the correct result as expected. The output of the below query gives the consumer numbers and its missing time hour information.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     index="sm" sourcetype="sm"  | rename "Consumer No" as cn | stats count by cn | map search="search index=sm sourcetype=sm $cn$| timechart span=1h count | where count=0 | eval Consumer_no=$cn$"| convert ctime(_time) | stats values(_time) by Consumer_no
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm getting the following output as expected&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;                  Meter 1     31/08/2014 1:00
                              01/09/2014 13:00
                  Meter 2    29/08/2014  8:00
                             05/09/2014  12:00
                   Meter 3    05/09/2014  10:00
                             05/09/2014  15:00
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Problem:&lt;/P&gt;

&lt;P&gt;When saving the query into a dashboard, the same result is not displaying.  I always see “waiting for inputs”  in the corresponding panel in the dashboard and result never displays.&lt;/P&gt;

&lt;P&gt;Can anyone help how to resolve this issue??&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2015 00:57:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187296#M11621</guid>
      <dc:creator>jayannah</dc:creator>
      <dc:date>2015-01-20T00:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the "map" command not working in dashboard and the corresponding panel displays "Waiting for inputs"?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187297#M11622</link>
      <description>&lt;P&gt;hi jayannah,&lt;BR /&gt;
This should be incorporated in a form as the token you use should have default values at the start to display the results.&lt;BR /&gt;
"waiting for input" means that the expected value of the &lt;CODE&gt;$cn$&lt;/CODE&gt;token to display the result,&lt;BR /&gt;
In principle, therefore, you must have a dropdown for &lt;CODE&gt;cn&lt;/CODE&gt; values&lt;BR /&gt;
try to check this and let me know.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2015 08:28:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187297#M11622</guid>
      <dc:creator>gyslainlatsa</dc:creator>
      <dc:date>2015-01-20T08:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the "map" command not working in dashboard and the corresponding panel displays "Waiting for inputs"?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187298#M11623</link>
      <description>&lt;P&gt;The search has 2 parts. &lt;BR /&gt;
              part-1:  index="sm" sourcetype="sm"  | rename "Consumer No" as cn | stats count by cn &lt;BR /&gt;
              part-2: map search="search index=sm sourcetype=sm $cn$| timechart span=1h count | where count=0 | eval Consumer_no=$cn$"| convert ctime(_time) | stats values(_time) by Consumer_no&lt;/P&gt;

&lt;P&gt;The token values for $cn$ for the 2nd search comes from the 1st search. &lt;/P&gt;

&lt;P&gt;The search query is to find the timestamps values for consumer missing for which the event is not received for particular hour. Actually part-1 is little bigger query and I made it simple here for the discussion as the primary concern here is, whatever works in the search query doesn't work after saving it into dashboard. Why?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:39:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187298#M11623</guid>
      <dc:creator>jayannah</dc:creator>
      <dc:date>2020-09-28T18:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the "map" command not working in dashboard and the corresponding panel displays "Waiting for inputs"?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187299#M11624</link>
      <description>&lt;P&gt;Try wrapping your variables in the map commands in two dollar signs ($$) instead of one.  I think this has to do with Splunk's dashboards natively using the $ character for user defined variables.  The dashboard is "waiting for input" because it is expecting $cn$ as a user variable rather than a variable of the map command.  If you write your cn map variable as $$cn$$, it will be parsed in the search query as $cn$ and map will then be able to use it correctly.  At least in theory.  Try it out and let us know if this works for you:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="sm" sourcetype="sm"  | rename "Consumer No" as cn | stats count by cn | map search="search index=sm sourcetype=sm $$cn$$| timechart span=1h count | where count=0 | eval Consumer_no=$$cn$$"| convert ctime(_time) | stats values(_time) by Consumer_no
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Jan 2015 14:28:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187299#M11624</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2015-01-20T14:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the "map" command not working in dashboard and the corresponding panel displays "Waiting for inputs"?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187300#M11625</link>
      <description>&lt;P&gt;I'm also experiencing this issue. I attempted the above recommendation (double $s) instead of the regular (single $s) in the map variables. It didn't work for me, though it does produce a different error message: Error in 'map': Did not find value for required attribute 'foo' as opposed to the original "waiting for input". The query runs fine standalone, so I know (well, assume) that it's nothing in the query that's tripping me up.&lt;/P&gt;

&lt;P&gt;I've stripped the query (inside the dashboard) down to the bones, so it looks like this:&lt;/P&gt;

&lt;P&gt;index=foo | eval var="bar" | map search="search index=fubar $$var$$ "&lt;/P&gt;

&lt;P&gt;This seems like it should work, based on your recommendation, but does not. If I hardcode bar (not quoted)  in the map search, or use a dashboard form input variable ($var$) in the map search (again, not quoted), I get correct results. Thus, I'm pretty sure I'm getting bit by the variable substitution. &lt;/P&gt;

&lt;P&gt;Any assistance (by anyone) would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 19:21:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187300#M11625</guid>
      <dc:creator>wbcem</dc:creator>
      <dc:date>2015-09-01T19:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the "map" command not working in dashboard and the corresponding panel displays "Waiting for inputs"?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187301#M11626</link>
      <description>&lt;P&gt;I am also facing the same issue, If I use $$ am getting zero results and with $ am getting proper results. did you get any solution for this. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 06:54:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187301#M11626</guid>
      <dc:creator>Abilan1</dc:creator>
      <dc:date>2016-03-31T06:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the "map" command not working in dashboard and the corresponding panel displays "Waiting for inputs"?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187302#M11627</link>
      <description>&lt;P&gt;Any solutions for this issue?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 03:07:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187302#M11627</guid>
      <dc:creator>jagadeeshm</dc:creator>
      <dc:date>2017-01-27T03:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the "map" command not working in dashboard and the corresponding panel displays "Waiting for inputs"?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187303#M11628</link>
      <description>&lt;P&gt;I got it working with double $$ signs instead of one.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 14:28:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187303#M11628</guid>
      <dc:creator>jagadeeshm</dc:creator>
      <dc:date>2017-01-27T14:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the "map" command not working in dashboard and the corresponding panel displays "Waiting for inputs"?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187304#M11629</link>
      <description>&lt;P&gt;With double $$ sometimes works, sometimes doesn't.. Does anyone know how to solve this?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 19:31:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187304#M11629</guid>
      <dc:creator>pamcarvalho</dc:creator>
      <dc:date>2017-10-04T19:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the "map" command not working in dashboard and the corresponding panel displays "Waiting for inputs"?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187305#M11630</link>
      <description>&lt;P&gt;Life saver&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 13:18:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187305#M11630</guid>
      <dc:creator>morethanyell</dc:creator>
      <dc:date>2018-11-20T13:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the "map" command not working in dashboard and the corresponding panel displays "Waiting for inputs"?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187306#M11631</link>
      <description>&lt;P&gt;I had problems at first.&lt;BR /&gt;
But it's OK now for:&lt;/P&gt;

&lt;P&gt;...  | table file_name&lt;BR /&gt;
| map file_name search="&lt;BR /&gt;
| inputlookup $$file_name$$&lt;BR /&gt;
"&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:23:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187306#M11631</guid>
      <dc:creator>highsplunker</dc:creator>
      <dc:date>2020-09-30T00:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the "map" command not working in dashboard and the corresponding panel displays "Waiting for inputs"?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187307#M11632</link>
      <description>&lt;P&gt;Man you just saved my life!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 21:33:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-the-quot-map-quot-command-not-working-in-dashboard-and/m-p/187307#M11632</guid>
      <dc:creator>jakehechang</dc:creator>
      <dc:date>2019-07-18T21:33:46Z</dc:date>
    </item>
  </channel>
</rss>

