<?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: Creating 2 labels from one input in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-2-labels-from-one-input/m-p/708046#M57943</link>
    <description>&lt;P&gt;Use an init block&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1" theme="light"&amp;gt;
  &amp;lt;label&amp;gt;Hosts&amp;lt;/label&amp;gt;
  &amp;lt;init&amp;gt;
    &amp;lt;set token="host"&amp;gt;eks-prod-saas-ue1-*&amp;lt;/set&amp;gt;
  &amp;lt;/init&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="connection"&amp;gt;
      &amp;lt;label&amp;gt;Select Region&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;dev-platform-postgres&amp;lt;/default&amp;gt;
      &amp;lt;choice value="dev-platform-postgres"&amp;gt;US&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="dev-platform-postgres-eu"&amp;gt;EU&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition label="dev-platform-postgres"&amp;gt;
          &amp;lt;set token="host"&amp;gt;eks-prod-saas-ue1-*&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition label="dev-platform-postgres-eu"&amp;gt;
          &amp;lt;set token="host"&amp;gt;prd-shared-services-eu-eks*&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;p&amp;gt;$host$ $connection$&amp;lt;/p&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 06 Jan 2025 14:22:05 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2025-01-06T14:22:05Z</dc:date>
    <item>
      <title>Creating 2 labels from one input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-2-labels-from-one-input/m-p/708045#M57942</link>
      <description>&lt;P&gt;I am working om creating a dashboard to display data from my app-I have a dropdown where you select which environment you want to see data for-I need to set 2 values based on this dropdown:&lt;/P&gt;&lt;P&gt;1.connection for db queries&lt;/P&gt;&lt;P&gt;2. host for logs based queries&lt;BR /&gt;I searched many option but couldn't get any to work:I am trying to do&amp;nbsp; &amp;lt;fieldset submitButton="false"&amp;gt;&lt;BR /&gt;&amp;lt;input type="dropdown" token="connection"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Select Region&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;default&amp;gt;dev-platform-postgres&amp;lt;/default&amp;gt;&lt;BR /&gt;&amp;lt;choice value="dev-platform-postgres"&amp;gt;US&amp;lt;/choice&amp;gt;&lt;BR /&gt;&amp;lt;choice value="dev-platform-postgres-eu"&amp;gt;EU&amp;lt;/choice&amp;gt;&lt;BR /&gt;&amp;lt;change&amp;gt;&lt;BR /&gt;&amp;lt;condition label = 'dev-platform-postgres'&amp;gt;&lt;BR /&gt;&amp;lt;set token="host"&amp;gt;eks-prod-saas-ue1-*&amp;lt;/set&amp;gt;&lt;BR /&gt;&amp;lt;/condition&amp;gt;&lt;BR /&gt;&amp;lt;condition label = 'dev-platform-postgres-eu'&amp;gt;&lt;BR /&gt;&amp;lt;set token="host"&amp;gt;prd-shared-services-eu-eks*&amp;lt;/set&amp;gt;&lt;BR /&gt;&amp;lt;/condition&amp;gt;&lt;BR /&gt;&amp;lt;/change&amp;gt;&lt;BR /&gt;&amp;lt;/input&amp;gt;&lt;BR /&gt;&amp;lt;/fieldset&amp;gt;&lt;BR /&gt;and then be able to use both $host$ and $connection$ tokens in the dashboard but I cant get $host$ initialized correctly&lt;BR /&gt;any help would be appreciated&lt;BR /&gt;also -side note I am getting a warning "&lt;SPAN&gt;Expected at most 1 children of fieldset in dashboard, instead saw 2"-how am I supposed to handle a case where I want 2 selections -one of date and one of connection?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 14:11:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-2-labels-from-one-input/m-p/708045#M57942</guid>
      <dc:creator>TzipR</dc:creator>
      <dc:date>2025-01-06T14:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating 2 labels from one input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-2-labels-from-one-input/m-p/708046#M57943</link>
      <description>&lt;P&gt;Use an init block&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1" theme="light"&amp;gt;
  &amp;lt;label&amp;gt;Hosts&amp;lt;/label&amp;gt;
  &amp;lt;init&amp;gt;
    &amp;lt;set token="host"&amp;gt;eks-prod-saas-ue1-*&amp;lt;/set&amp;gt;
  &amp;lt;/init&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="connection"&amp;gt;
      &amp;lt;label&amp;gt;Select Region&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;dev-platform-postgres&amp;lt;/default&amp;gt;
      &amp;lt;choice value="dev-platform-postgres"&amp;gt;US&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="dev-platform-postgres-eu"&amp;gt;EU&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition label="dev-platform-postgres"&amp;gt;
          &amp;lt;set token="host"&amp;gt;eks-prod-saas-ue1-*&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition label="dev-platform-postgres-eu"&amp;gt;
          &amp;lt;set token="host"&amp;gt;prd-shared-services-eu-eks*&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;p&amp;gt;$host$ $connection$&amp;lt;/p&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Jan 2025 14:22:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-2-labels-from-one-input/m-p/708046#M57943</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-01-06T14:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creating 2 labels from one input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-2-labels-from-one-input/m-p/708047#M57944</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;thanks for taking the time to reply&lt;BR /&gt;when using init -it only initializes the first time but doesn't update accordingly when fieldset is changed&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 14:27:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-2-labels-from-one-input/m-p/708047#M57944</guid>
      <dc:creator>TzipR</dc:creator>
      <dc:date>2025-01-06T14:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating 2 labels from one input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-2-labels-from-one-input/m-p/708051#M57945</link>
      <description>&lt;P&gt;I tried also :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;fieldset submitButton="false"&amp;gt;
&amp;lt;input type="dropdown" token="connection"&amp;gt;
&amp;lt;label&amp;gt;Select Region&amp;lt;/label&amp;gt;
&amp;lt;default&amp;gt;dev-platform-postgres&amp;lt;/default&amp;gt;
&amp;lt;choice value="dev-platform-postgres"&amp;gt;US&amp;lt;/choice&amp;gt;
&amp;lt;choice value="dev-platform-postgres-eu"&amp;gt;EU&amp;lt;/choice&amp;gt;
&amp;lt;change&amp;gt;
&amp;lt;condition match="$connection$==dev-platform-postgres"&amp;gt;
&amp;lt;set token="host"&amp;gt;eks-prod-saas-ue1-*&amp;lt;/set&amp;gt;
&amp;lt;/condition&amp;gt;
&amp;lt;condition match="$connection$==dev-platform-postgres-eu"&amp;gt;
&amp;lt;set token="host"&amp;gt;prd-shared-services-eu-eks*&amp;lt;/set&amp;gt;
&amp;lt;/condition&amp;gt;
&amp;lt;/change&amp;gt;
&amp;lt;/input&amp;gt;
&amp;lt;/fieldset&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;but again $host$ is not updated on fieldset change&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 15:07:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-2-labels-from-one-input/m-p/708051#M57945</guid>
      <dc:creator>TzipR</dc:creator>
      <dc:date>2025-01-06T15:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating 2 labels from one input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-2-labels-from-one-input/m-p/708057#M57946</link>
      <description>&lt;P&gt;I misunderstood your problem - your conditions need to use the values of the labels, i.e. US and EU&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1" theme="light"&amp;gt;
  &amp;lt;label&amp;gt;Hosts&amp;lt;/label&amp;gt;
  &amp;lt;init&amp;gt;
    &amp;lt;set token="host"&amp;gt;eks-prod-saas-ue1-*&amp;lt;/set&amp;gt;
  &amp;lt;/init&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="connection"&amp;gt;
      &amp;lt;label&amp;gt;Select Region&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;dev-platform-postgres&amp;lt;/default&amp;gt;
      &amp;lt;choice value="dev-platform-postgres"&amp;gt;US&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="dev-platform-postgres-eu"&amp;gt;EU&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition label="US"&amp;gt;
          &amp;lt;set token="host"&amp;gt;eks-prod-saas-ue1-*&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition label="EU"&amp;gt;
          &amp;lt;set token="host"&amp;gt;prd-shared-services-eu-eks*&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;p&amp;gt;$host$ $connection$&amp;lt;/p&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Jan 2025 16:34:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-2-labels-from-one-input/m-p/708057#M57946</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-01-06T16:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating 2 labels from one input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-2-labels-from-one-input/m-p/708121#M57950</link>
      <description>&lt;P&gt;thanks -that works now&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 09:18:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Creating-2-labels-from-one-input/m-p/708121#M57950</guid>
      <dc:creator>TzipR</dc:creator>
      <dc:date>2025-01-07T09:18:07Z</dc:date>
    </item>
  </channel>
</rss>

