<?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: Dashboard auto-populate returning no values, yet search does. in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-auto-populate-returning-no-values-yet-search-does/m-p/395364#M25885</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;label&amp;gt;Field Filter&amp;lt;/label&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;fieldfilter&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;fieldfilter&amp;lt;/fieldForValue&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;| inputlookup fielddata.csv | fields "Field Name" | dedup "Field Name" &amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-7d@h&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;choice value="*"&amp;gt;ALL&amp;lt;/choice&amp;gt;
  &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
  &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried "all time" for earliest&lt;BR /&gt;
I verified that both the dashboard and lookup are in search and the lookup has everyone read. &lt;/P&gt;

&lt;P&gt;Hoping this posts with the xml&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2019 15:25:08 GMT</pubDate>
    <dc:creator>cnicholl</dc:creator>
    <dc:date>2019-07-23T15:25:08Z</dc:date>
    <item>
      <title>Dashboard auto-populate returning no values, yet search does.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-auto-populate-returning-no-values-yet-search-does/m-p/395362#M25883</link>
      <description>&lt;P&gt;Attempting to populate a dropdown for a dashboard.  The source is a lookup file.  CSV.  It does have null values in the table for this field, and also the returned data contains spaces and / in some fields.&lt;/P&gt;

&lt;P&gt;I am using:&lt;BR /&gt;
| inputlookup filename.csv | fields "Field Name" | dedup "Field Name" &lt;/P&gt;

&lt;P&gt;as the Dynamic search, and the sample search for the lookup does work properly.  &lt;/P&gt;

&lt;P&gt;But when I run save the dropdown it fails to return any data.&lt;/P&gt;

&lt;P&gt;Splunk 7.2.6&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 11:10:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-auto-populate-returning-no-values-yet-search-does/m-p/395362#M25883</guid>
      <dc:creator>cnicholl</dc:creator>
      <dc:date>2019-07-23T11:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard auto-populate returning no values, yet search does.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-auto-populate-returning-no-values-yet-search-does/m-p/395363#M25884</link>
      <description>&lt;P&gt;@cnicholl,&lt;BR /&gt;
Check whether the lookup and dashboard are in the same app context and if not, app which holds the dashboard has permissions to read lookup. &lt;BR /&gt;
Field for value/Field for label params are configured.&lt;BR /&gt;
Is it possible to share the drop down part of xml ?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 14:29:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-auto-populate-returning-no-values-yet-search-does/m-p/395363#M25884</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-07-23T14:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard auto-populate returning no values, yet search does.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-auto-populate-returning-no-values-yet-search-does/m-p/395364#M25885</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;label&amp;gt;Field Filter&amp;lt;/label&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;fieldfilter&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;fieldfilter&amp;lt;/fieldForValue&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;| inputlookup fielddata.csv | fields "Field Name" | dedup "Field Name" &amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-7d@h&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;choice value="*"&amp;gt;ALL&amp;lt;/choice&amp;gt;
  &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
  &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
&amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried "all time" for earliest&lt;BR /&gt;
I verified that both the dashboard and lookup are in search and the lookup has everyone read. &lt;/P&gt;

&lt;P&gt;Hoping this posts with the xml&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 15:25:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-auto-populate-returning-no-values-yet-search-does/m-p/395364#M25885</guid>
      <dc:creator>cnicholl</dc:creator>
      <dc:date>2019-07-23T15:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard auto-populate returning no values, yet search does.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-auto-populate-returning-no-values-yet-search-does/m-p/395365#M25886</link>
      <description>&lt;P&gt;I also adjusted the search to include returned results that did not have any spaces, or the / .  Still nada&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 15:27:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-auto-populate-returning-no-values-yet-search-does/m-p/395365#M25886</guid>
      <dc:creator>cnicholl</dc:creator>
      <dc:date>2019-07-23T15:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard auto-populate returning no values, yet search does.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-auto-populate-returning-no-values-yet-search-does/m-p/395366#M25887</link>
      <description>&lt;P&gt;@cnicholl,&lt;BR /&gt;
Can you rename "Field Name" to fieldfilter  or whatever fieldname you used in fieldForValue?&lt;/P&gt;

&lt;P&gt;something similar to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;label&amp;gt;Field Filter&amp;lt;/label&amp;gt;
   &amp;lt;fieldForLabel&amp;gt;fieldfilter&amp;lt;/fieldForLabel&amp;gt;
   &amp;lt;fieldForValue&amp;gt;fieldfilter&amp;lt;/fieldForValue&amp;gt;
   &amp;lt;search&amp;gt;
     &amp;lt;query&amp;gt;| inputlookup fielddata.csv | fields "Field Name" | dedup "Field Name"|rename  "Field Name" as  fieldfilter&amp;lt;/query&amp;gt;
     &amp;lt;earliest&amp;gt;-7d@h&amp;lt;/earliest&amp;gt;
     &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
   &amp;lt;/search&amp;gt;
   &amp;lt;choice value="*"&amp;gt;ALL&amp;lt;/choice&amp;gt;
   &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
   &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
 &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Jul 2019 15:32:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-auto-populate-returning-no-values-yet-search-does/m-p/395366#M25887</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-07-23T15:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard auto-populate returning no values, yet search does.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-auto-populate-returning-no-values-yet-search-does/m-p/395367#M25888</link>
      <description>&lt;P&gt;Spaces in field names are EVIL; I would do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup filename.csv
| stats count BY "Field Name"
| sort 0 - count
| rename "Field Name" AS field_value
| eval  field_name = field_value . "(" . count . ")"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then make sure that you specify &lt;CODE&gt;field_name&lt;/CODE&gt; as the name to use and &lt;CODE&gt;field_value&lt;/CODE&gt; as the value to use.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 16:56:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-auto-populate-returning-no-values-yet-search-does/m-p/395367#M25888</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-23T16:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard auto-populate returning no values, yet search does.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-auto-populate-returning-no-values-yet-search-does/m-p/395368#M25889</link>
      <description>&lt;P&gt;| inputlookup filename.csv&lt;BR /&gt;
 | stats count BY "Field Name"&lt;BR /&gt;
 | sort 0 - count&lt;BR /&gt;
 | rename "Field Name" AS field_value&lt;BR /&gt;
 | eval  field_name = field_value . "(" count . ")"&lt;/P&gt;

&lt;P&gt;has some eval error.  I removed | eval  field_name = field_value . "(" count . ")" and it seems to be working now.  Go figure?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:28:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-auto-populate-returning-no-values-yet-search-does/m-p/395368#M25889</guid>
      <dc:creator>cnicholl</dc:creator>
      <dc:date>2020-09-30T01:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard auto-populate returning no values, yet search does.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-auto-populate-returning-no-values-yet-search-does/m-p/395369#M25890</link>
      <description>&lt;P&gt;I was missing a &lt;CODE&gt;.&lt;/CODE&gt;.  I fixed my answer AND tested it; it works now.  Please come back and click &lt;CODE&gt;Accept&lt;/CODE&gt; to close the question @cnicholl.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2019 19:12:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-auto-populate-returning-no-values-yet-search-does/m-p/395369#M25890</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-27T19:12:22Z</dc:date>
    </item>
  </channel>
</rss>

