<?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 Dynamically populating dropdown and receving the error &amp;quot;duplicate labels causing conflict&amp;quot; in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260026#M43636</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="c" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Cube&amp;lt;/label&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;BASE SEARCH  | stats count by DatabaseName&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;@w0&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;clabel&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;cvalue&amp;lt;/fieldForValue&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 have this code for dynamically populating my dropdown but I'm still getting the error&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;duplicate labels causing conflict&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I checked 100 times on but using stats count by DatabaseName should be the correct way.&lt;/P&gt;

&lt;P&gt;Any idea on why I'm getting this error?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2016 13:07:06 GMT</pubDate>
    <dc:creator>andreafebbo</dc:creator>
    <dc:date>2016-09-07T13:07:06Z</dc:date>
    <item>
      <title>Dynamically populating dropdown and receving the error "duplicate labels causing conflict"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260026#M43636</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="c" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Cube&amp;lt;/label&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;BASE SEARCH  | stats count by DatabaseName&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;@w0&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;clabel&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;cvalue&amp;lt;/fieldForValue&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 have this code for dynamically populating my dropdown but I'm still getting the error&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;duplicate labels causing conflict&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I checked 100 times on but using stats count by DatabaseName should be the correct way.&lt;/P&gt;

&lt;P&gt;Any idea on why I'm getting this error?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:07:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260026#M43636</guid>
      <dc:creator>andreafebbo</dc:creator>
      <dc:date>2016-09-07T13:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically populating dropdown and receving the error "duplicate labels causing conflict"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260027#M43637</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;input type="dropdown" token="c" searchWhenChanged="true"&amp;gt;
       &amp;lt;label&amp;gt;Cube&amp;lt;/label&amp;gt;
       &amp;lt;search&amp;gt;
         &amp;lt;query&amp;gt;BASE SEARCH  | eval DatabaseName=upper(DatabaseName) | stats count by DatabaseName&amp;lt;/query&amp;gt;
         &amp;lt;earliest&amp;gt;@w0&amp;lt;/earliest&amp;gt;
         &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
       &amp;lt;/search&amp;gt;
       &amp;lt;fieldForLabel&amp;gt;DatabaseName&amp;lt;/fieldForLabel&amp;gt;
       &amp;lt;fieldForValue&amp;gt;DatabaseName&amp;lt;/fieldForValue&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>Wed, 07 Sep 2016 13:11:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260027#M43637</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-07T13:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically populating dropdown and receving the error "duplicate labels causing conflict"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260028#M43638</link>
      <description>&lt;P&gt;Same error, as the query I first posted, if run a simple search everything works.&lt;BR /&gt;
When i put the search in the dropdown I get that error. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:17:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260028#M43638</guid>
      <dc:creator>andreafebbo</dc:creator>
      <dc:date>2016-09-07T13:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically populating dropdown and receving the error "duplicate labels causing conflict"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260029#M43639</link>
      <description>&lt;P&gt;Try removing the static value (All). See if that makes a difference&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:48:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260029#M43639</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-07T13:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically populating dropdown and receving the error "duplicate labels causing conflict"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260030#M43640</link>
      <description>&lt;P&gt;No difference&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 14:01:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260030#M43640</guid>
      <dc:creator>andreafebbo</dc:creator>
      <dc:date>2016-09-07T14:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically populating dropdown and receving the error "duplicate labels causing conflict"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260031#M43641</link>
      <description>&lt;P&gt;And you confirmed when you run this search outside of dropdown, you get unique list of DatabaseName?  Can you share your BASE SEARCH&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 14:44:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260031#M43641</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-09-07T14:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically populating dropdown and receving the error "duplicate labels causing conflict"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260032#M43642</link>
      <description>&lt;P&gt;My base search is like this: i cannot share more:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;index=something  sourcetype=somthing_else&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Yes, I can confirm that the names are unique. &lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 15:17:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260032#M43642</guid>
      <dc:creator>andreafebbo</dc:creator>
      <dc:date>2016-09-07T15:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically populating dropdown and receving the error "duplicate labels causing conflict"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260033#M43643</link>
      <description>&lt;P&gt;Try to insert &lt;BR /&gt;
| fields DatabaseName &lt;BR /&gt;
at the end of your search or something like this&lt;BR /&gt;
BASE SEARCH  | eval DatabaseName=upper(DatabaseName) | dedup DatabaseName | sort DatabaseName | table DatabaseName&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe &lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 15:58:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260033#M43643</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-09-07T15:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically populating dropdown and receving the error "duplicate labels causing conflict"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260034#M43644</link>
      <description>&lt;P&gt;Hint: Better to use fields instead of table at the end of this search. table does a lot of work for UI formatting, which is not needed anywhere you don't want to render a table.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 18:54:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260034#M43644</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2016-09-07T18:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically populating dropdown and receving the error "duplicate labels causing conflict"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260035#M43645</link>
      <description>&lt;P&gt;Same error &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 10:25:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260035#M43645</guid>
      <dc:creator>andreafebbo</dc:creator>
      <dc:date>2016-09-08T10:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically populating dropdown and receving the error "duplicate labels causing conflict"</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260036#M43646</link>
      <description>&lt;P&gt;I discovered that the error depended by field for value and for label.&lt;BR /&gt;
If I changefrom this:&lt;BR /&gt;
&lt;CODE&gt;clabel&lt;BR /&gt;
       &amp;lt;fieldForValue&amp;gt;cvalue&amp;lt;/fieldForValue&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fieldForLabel&amp;gt;DatabaseName&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;DatabaseName&amp;lt;/fieldForValue&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It works and I don't know why.&lt;/P&gt;

&lt;P&gt;I thought that the 2 fields have to be that same, but if I chenge like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fieldForLabel&amp;gt;DatabaseNameeeeeee&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;DatabaseName&amp;lt;/fieldForValue&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it works, but like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fieldForLabel&amp;gt;bla&amp;lt;/fieldForLabel&amp;gt;
            &amp;lt;fieldForValue&amp;gt;bla&amp;lt;/fieldForValue&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It does not work.&lt;BR /&gt;
Can you tell me why?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 11:01:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dynamically-populating-dropdown-and-receving-the-error-quot/m-p/260036#M43646</guid>
      <dc:creator>andreafebbo</dc:creator>
      <dc:date>2016-09-08T11:01:59Z</dc:date>
    </item>
  </channel>
</rss>

