<?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: How do you create a dropdown with 3 different source types to display a graph per source type? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-create-a-dropdown-with-3-different-source-types-to/m-p/385092#M25245</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/167821"&gt;@splunkuseradmin&lt;/a&gt;,&lt;/P&gt;

&lt;P&gt;In the rename and eval you are not using the tokens but string values. Also your drop down values are &lt;CODE&gt;wildcards&lt;/CODE&gt; and can't be renamed to a single value. i.e. &lt;CODE&gt;rename *something as otherthing&lt;/CODE&gt; wont work&lt;BR /&gt;
If you have only two fields in the final result i.e. jp_200_* and jp_404_*, try this&lt;/P&gt;

&lt;P&gt;Changes are highlighted by comments&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Drilldown&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
   &amp;lt;input type="time" token="field1" searchWhenChanged="true"&amp;gt;
   &amp;lt;label&amp;gt;Select Time&amp;lt;/label&amp;gt;
   &amp;lt;default&amp;gt;
     &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
     &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
   &amp;lt;/default&amp;gt;
 &amp;lt;/input&amp;gt;
 &amp;lt;input type="dropdown" token="host" searchWhenChanged="true"&amp;gt;
   &amp;lt;label&amp;gt;Select Host&amp;lt;/label&amp;gt;
   &amp;lt;search&amp;gt;
     &amp;lt;query/&amp;gt;
     &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
     &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
   &amp;lt;/search&amp;gt;
   &amp;lt;!------ COMMENT : Changed sourcetype from wild cards to single value ----------&amp;gt;
   &amp;lt;choice value="&amp;amp;quot;usac2-photos01.example.com-too_small&amp;amp;quot;"&amp;gt;"usac2-photos01.example.com-too_small"&amp;lt;/choice&amp;gt;
   &amp;lt;choice value="&amp;amp;quot;usac2-photos02.example.com-too_small&amp;amp;quot;"&amp;gt;"usac2-photos02.example.com-too_small"&amp;lt;/choice&amp;gt;
   &amp;lt;choice value="&amp;amp;quot;usac2-photos03.example.com-too_small&amp;amp;quot;"&amp;gt;"usac2-photos03.example.com-too_small"&amp;lt;/choice&amp;gt;
 &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
 &amp;lt;panel&amp;gt;
   &amp;lt;title&amp;gt;Photos Count of Url Hits&amp;lt;/title&amp;gt;
   &amp;lt;chart&amp;gt;
     &amp;lt;search&amp;gt;
        &amp;lt;!---------- COMMENT : Changed sourcetype=*$host$ from $host$ ----------&amp;gt;
          &amp;lt;query&amp;gt;index=test_jp sourcetype="*$host$" | rex "(?i)^(?P&amp;lt;jp_hits&amp;gt;.+)" 
         | timechart span=1h eval(avg(jp_hits)) by sourcetype useother=f limit=0 
         &amp;lt;!-----------COMMENT : Substituted tokens in the rename ----------&amp;gt;
         | rename jp_200_$host$ as jp_200_hits, jp_404_$host$ as jp_404_hits
         | eval "totalhits" = jp_200_hits+jp_404_hits
         | table _time jp_200_hits jp_404_hits totalhits&amp;lt;/query&amp;gt;
                   &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
                   &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
                   &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
         &amp;lt;/search&amp;gt;
       &amp;lt;/chart&amp;gt;
     &amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;     
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Sep 2020 23:50:39 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2020-09-29T23:50:39Z</dc:date>
    <item>
      <title>How do you create a dropdown with 3 different source types to display a graph per source type?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-create-a-dropdown-with-3-different-source-types-to/m-p/385091#M25244</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;

&lt;P&gt;I am trying to create a dropdown with 3 different source types to display a graph per source type.&lt;BR /&gt;
If I try to change the source type, the graph doesn't show up.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 20:55:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-create-a-dropdown-with-3-different-source-types-to/m-p/385091#M25244</guid>
      <dc:creator>splunkuseradmin</dc:creator>
      <dc:date>2019-03-29T20:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a dropdown with 3 different source types to display a graph per source type?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-create-a-dropdown-with-3-different-source-types-to/m-p/385092#M25245</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/167821"&gt;@splunkuseradmin&lt;/a&gt;,&lt;/P&gt;

&lt;P&gt;In the rename and eval you are not using the tokens but string values. Also your drop down values are &lt;CODE&gt;wildcards&lt;/CODE&gt; and can't be renamed to a single value. i.e. &lt;CODE&gt;rename *something as otherthing&lt;/CODE&gt; wont work&lt;BR /&gt;
If you have only two fields in the final result i.e. jp_200_* and jp_404_*, try this&lt;/P&gt;

&lt;P&gt;Changes are highlighted by comments&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Drilldown&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
   &amp;lt;input type="time" token="field1" searchWhenChanged="true"&amp;gt;
   &amp;lt;label&amp;gt;Select Time&amp;lt;/label&amp;gt;
   &amp;lt;default&amp;gt;
     &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
     &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
   &amp;lt;/default&amp;gt;
 &amp;lt;/input&amp;gt;
 &amp;lt;input type="dropdown" token="host" searchWhenChanged="true"&amp;gt;
   &amp;lt;label&amp;gt;Select Host&amp;lt;/label&amp;gt;
   &amp;lt;search&amp;gt;
     &amp;lt;query/&amp;gt;
     &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
     &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
   &amp;lt;/search&amp;gt;
   &amp;lt;!------ COMMENT : Changed sourcetype from wild cards to single value ----------&amp;gt;
   &amp;lt;choice value="&amp;amp;quot;usac2-photos01.example.com-too_small&amp;amp;quot;"&amp;gt;"usac2-photos01.example.com-too_small"&amp;lt;/choice&amp;gt;
   &amp;lt;choice value="&amp;amp;quot;usac2-photos02.example.com-too_small&amp;amp;quot;"&amp;gt;"usac2-photos02.example.com-too_small"&amp;lt;/choice&amp;gt;
   &amp;lt;choice value="&amp;amp;quot;usac2-photos03.example.com-too_small&amp;amp;quot;"&amp;gt;"usac2-photos03.example.com-too_small"&amp;lt;/choice&amp;gt;
 &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
 &amp;lt;panel&amp;gt;
   &amp;lt;title&amp;gt;Photos Count of Url Hits&amp;lt;/title&amp;gt;
   &amp;lt;chart&amp;gt;
     &amp;lt;search&amp;gt;
        &amp;lt;!---------- COMMENT : Changed sourcetype=*$host$ from $host$ ----------&amp;gt;
          &amp;lt;query&amp;gt;index=test_jp sourcetype="*$host$" | rex "(?i)^(?P&amp;lt;jp_hits&amp;gt;.+)" 
         | timechart span=1h eval(avg(jp_hits)) by sourcetype useother=f limit=0 
         &amp;lt;!-----------COMMENT : Substituted tokens in the rename ----------&amp;gt;
         | rename jp_200_$host$ as jp_200_hits, jp_404_$host$ as jp_404_hits
         | eval "totalhits" = jp_200_hits+jp_404_hits
         | table _time jp_200_hits jp_404_hits totalhits&amp;lt;/query&amp;gt;
                   &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
                   &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
                   &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
         &amp;lt;/search&amp;gt;
       &amp;lt;/chart&amp;gt;
     &amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;     
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:50:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-create-a-dropdown-with-3-different-source-types-to/m-p/385092#M25245</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-09-29T23:50:39Z</dc:date>
    </item>
  </channel>
</rss>

