<?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: Search is not working in the dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520647#M35039</link>
    <description>&lt;P&gt;Since encodedtitle is not an input token, you don't need double $.&amp;nbsp; Try single &lt;FONT face="courier new,courier"&gt;$&lt;/FONT&gt; throughout the &lt;FONT face="courier new,courier"&gt;map&lt;/FONT&gt; command.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Sep 2020 15:00:03 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-09-21T15:00:03Z</dc:date>
    <item>
      <title>Search is not working in the dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520626#M35036</link>
      <description>&lt;P&gt;I'm not sure why the below search works fine on the search page but gives "Search did not return any events." in the dashboard. (In Search page I'm using single $ sign)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /servicesNS/-/-/saved/searches | search disabled=0 is_scheduled=1 | eval encodedtitle=title | eval encodedtitle=urlencode | replace " " with "%20", "," with "%2C", "'" with "%27" in urlencode encodedtitle | rename "alert.severity" as severity, "dispatch.earliest_time" as earliest_time, "dispatch.latest_time" as latest_time, "eai:acl.app" as app | fields title, encodedtitle, disabled, severity, cron_schedule, description, earliest_time, latest_time, app, is_scheduled, next_scheduled_time, triggered_alert_count 
| map maxsearches=1000 search="| rest /servicesNS/-/-/alerts/fired_alerts/$$encodedtitle$$ | dedup savedsearch_name sortby -trigger_time | table trigger_time_rendered, trigger_time | eval title=$$title$$, disabled=$$disabled$$, severity=$$severity$$, cron_schedule=$$cron_schedule$$, description=$$description$$, earliest_time=$$earliest_time$$, latest_time=$$latest_time$$, app=$$app$$, is_scheduled=$$is_scheduled$$, next_scheduled_time=$$next_scheduled_time$$, triggered_alert_count=$$triggered_alert_count$$"
| append [| makeresults | eval test="test"]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is more surprising is, in the dashboard, even the value with make results is not showing. And there is no errors in the search.log.&lt;/P&gt;&lt;P&gt;I'm using Splunk version 8.0.4.1&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 14:00:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520626#M35036</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2020-09-21T14:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Search is not working in the dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520647#M35039</link>
      <description>&lt;P&gt;Since encodedtitle is not an input token, you don't need double $.&amp;nbsp; Try single &lt;FONT face="courier new,courier"&gt;$&lt;/FONT&gt; throughout the &lt;FONT face="courier new,courier"&gt;map&lt;/FONT&gt; command.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 15:00:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520647#M35039</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-21T15:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search is not working in the dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520730#M35048</link>
      <description>&lt;P&gt;Single $ gives " Search is waiting for input...".&lt;BR /&gt;(As you can see I've all the values from the results only no dashboard inputs/filters)&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 06:01:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520730#M35048</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2020-09-22T06:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Search is not working in the dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520733#M35049</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93915"&gt;@VatsalJagani&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;" Search is waiting for input..." means that at least one of the tokens hasn't a value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Check the names of all tokens, maybe there's one non correct (they are case sensivite!)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A question: where do you take the tokens, from inputs or from a drilldown?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You have to use $ only if you take these values from inputs or drilldowns.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if you want to take tokens from the first part of search, you don't need $ (single or double).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 06:40:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520733#M35049</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-22T06:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Search is not working in the dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520852#M35071</link>
      <description>&lt;P&gt;In the dashboard it shows "Search is waiting for input...", but when I click on "Open in Search" on that panel it shows correct result.&lt;/P&gt;&lt;P&gt;$ is being used to get values in from the first part of search to map command search.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 13:10:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520852#M35071</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2020-09-22T13:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Search is not working in the dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520872#M35080</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93915"&gt;@VatsalJagani&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Are you using a post process search?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 14:34:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520872#M35080</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-22T14:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Search is not working in the dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520882#M35083</link>
      <description>&lt;P&gt;No&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 15:45:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520882#M35083</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2020-09-22T15:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Search is not working in the dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520883#M35084</link>
      <description>&lt;P&gt;I figured out a work-around:&lt;/P&gt;&lt;P&gt;Instead of using the map command and rest endpoint, I've used below search with the append command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal sourcetype="scheduler" component="SavedSplunker"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And at the end, I'm using stats to get what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /servicesNS/-/-/saved/searches | search disabled=0 is_scheduled=1 | rename "alert.severity" as severity, "dispatch.earliest_time" as earliest_time, "dispatch.latest_time" as latest_time, "eai:acl.app" as app | fields title, disabled, severity, cron_schedule, description, earliest_time, latest_time, app, is_scheduled, next_scheduled_time, triggered_alert_count 
| append [| search index=_internal sourcetype="scheduler" component="SavedSplunker" | rename savedsearch_name as title]
| stats first(*) as * by title&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Sep 2020 15:49:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520883#M35084</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2020-09-22T15:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Search is not working in the dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520971#M35086</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93915"&gt;@VatsalJagani&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Good idea: this is the solution, I'm thinking to propose to you.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 06:28:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Search-is-not-working-in-the-dashboard/m-p/520971#M35086</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-23T06:28:04Z</dc:date>
    </item>
  </channel>
</rss>

