<?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: Create Splunk dashboard with variable number of panels based on dropdown value selected? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/620671#M50951</link>
    <description>&lt;P&gt;Set the value for All ="*"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=population name=&amp;lt;$dropdownvalue&amp;gt; | timechart span=1d sum(people) by name&lt;/LI-CODE&gt;&lt;P&gt;Then use the trellis option on field name&lt;/P&gt;</description>
    <pubDate>Sun, 13 Nov 2022 08:57:20 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-11-13T08:57:20Z</dc:date>
    <item>
      <title>How to create Splunk dashboard with variable number of panels based on dropdown value selected?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/620071#M50911</link>
      <description>&lt;P&gt;Requirement is that we have a dropdown with a list of options. One of the option is all. I have a search query which will try to fetch events based on the selected values. Now I want to group them by name and display individual panel for every name in the dropdown. Example below:&lt;/P&gt;
&lt;P&gt;Dropdown :- UAE, USA, India, Australia, UK, ALL&lt;/P&gt;
&lt;P&gt;Search query :- index=population name=&amp;lt;$dropdownvalue&amp;gt; | timechart count sum(people) span=1d&lt;/P&gt;
&lt;P&gt;Expectation: When I select name as UAE, panel displays timechart related to UAE population. However when option ALL is selected, I want to display 5 panels with each panel displaying timechart of specific country population. Is that feasible. Tried searching all articles and splunk documentation with no luck.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 15:09:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/620071#M50911</guid>
      <dc:creator>sdkp03</dc:creator>
      <dc:date>2022-11-17T15:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: splunk dashboard with variable number of panels based on dropdown value selected</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/620077#M50912</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/28050"&gt;@sdkp03&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;yes you can display or not a panel based on a token from an input, an example about this in in the Splunk Dashboard Examples App (&lt;A href="https://splunkbase.splunk.com/app/1603)" target="_blank"&gt;https://splunkbase.splunk.com/app/1603)&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 10:55:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/620077#M50912</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-08T10:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: splunk dashboard with variable number of panels based on dropdown value selected</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/620094#M50913</link>
      <description>&lt;P&gt;are you saying that I need to have hardcoded panels set and just set or unset token based on the value selected. Is that right! What I mean is I will have one panel which caters to the need of displaying based on selected value "&lt;SPAN&gt;index=population name=&amp;lt;$dropdownvalue&amp;gt; | timechart count sum(people) span=1d" and remaining 5 panels with 5 different queries "index=population name='USA' |&amp;nbsp;timechart count sum(people) span=1d" and 4 more with respective name. Based on the value selected set/unset token to get required detail!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 12:11:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/620094#M50913</guid>
      <dc:creator>sdkp03</dc:creator>
      <dc:date>2022-11-08T12:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: splunk dashboard with variable number of panels based on dropdown value selected</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/620118#M50914</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/28050"&gt;@sdkp03&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as I said, yes it's possible, see in the above app how to hide or display a panel in a dashboard based on a condition (e.g. a token).&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 14:06:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/620118#M50914</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-08T14:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: splunk dashboard with variable number of panels based on dropdown value selected</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/620668#M50950</link>
      <description>&lt;P&gt;I am not sure if I have conveyed my question right. I mean to write code for just one panel which is capable of displaying based on the requirement. I don't want to&amp;nbsp; write too many queries/lines of code which will make it hard to maintain when the number of options in the dropdown is expected to exceed beyond 20!&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2022 23:40:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/620668#M50950</guid>
      <dc:creator>sdkp03</dc:creator>
      <dc:date>2022-11-12T23:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create Splunk dashboard with variable number of panels based on dropdown value selected?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/620671#M50951</link>
      <description>&lt;P&gt;Set the value for All ="*"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=population name=&amp;lt;$dropdownvalue&amp;gt; | timechart span=1d sum(people) by name&lt;/LI-CODE&gt;&lt;P&gt;Then use the trellis option on field name&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 08:57:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/620671#M50951</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-13T08:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: splunk dashboard with variable number of panels based on dropdown value selected</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/620690#M50952</link>
      <description>&lt;P&gt;You would only need a single base search to do the initial query, but then every other panel would use that base search then use a | where clause to filter out only the data for that panel.&lt;/P&gt;&lt;P&gt;However,&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;solution would seem like a far easier option - does that not work for you?&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 22:27:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/620690#M50952</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-11-13T22:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: splunk dashboard with variable number of panels based on dropdown value selected</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/621266#M51002</link>
      <description>&lt;P&gt;I wish what am trying to achieve is as simple as I conveyed. I did try setting a base query and then tried rebuilding query based on panel. However this is again adding too many panels to get the right query to be executed. I stumbled upon this discussion "&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-dashboard-panels-dynamically/td-p/122660?_ga=2.178741927.2024986498.1668679854-1592284181.1662095880&amp;amp;_gl=1*1ipaga9*_ga*MTU5MjI4NDE4MS4xNjYyMDk1ODgw*_ga_5EPM2P39FV*MTY2ODY3OTg1My45Ni4xLjE2Njg2Nzk4NjIuNTEuMC4w&amp;quot;" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-dashboard-panels-dynamically/td-p/122660?_ga=2.178741927.2024986498.1668679854-1592284181.1662095880&amp;amp;_gl=1*1ipaga9*_ga*MTU5MjI4NDE4MS4xNjYyMDk1ODgw*_ga_5EPM2P39FV*MTY2ODY3OTg1My45Ni4xLjE2Njg2Nzk4NjIuNTEuMC4w"&lt;/A&gt;&amp;nbsp;. Here search query is set based on change of dropdown value and in the panel just execute to visualise the chart with right values(referring to the solution by&amp;nbsp;&lt;SPAN class=""&gt;&lt;A class="" href="https://community.splunk.com/t5/user/viewprofilepage/user-id/107595" target="_self"&gt;&lt;SPAN class=""&gt;gyslainlatsa&lt;/SPAN&gt;&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;. However when I tried doing the same, I am getting an error which says unexpected close tag. I also noticed later that it was a very old thread with reference links broken.&amp;nbsp; Any idea how I can achieve this in latest version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My search query I am trying to set as token on condition value looks like this:&lt;/P&gt;&lt;P&gt;index=ssss "&amp;lt;base search criteria&amp;gt;" | rex command to execute 2 fields | eval for date time conversion | timechart | eval to validate range to find if the count was in expected range&lt;/P&gt;&lt;P&gt;Basically the rex which has wild card character search is the cause for the error. Am trying to find which is the character that I should escape. Struggling to figure out as I have all characters in there _,.*()\ etc., Any help in this regard would be much appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 15:05:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/621266#M51002</guid>
      <dc:creator>sdkp03</dc:creator>
      <dc:date>2022-11-17T15:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: splunk dashboard with variable number of panels based on dropdown value selected</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/621268#M51003</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;is there a way I can assign a token with entire search query including the wild card characters.&lt;/P&gt;&lt;P&gt;&amp;lt;input type="dropdown" token="" searchWhenChanged="true"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;choice value="1"&amp;gt;xxxxx&amp;lt;/choice&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;choice value="2"&amp;gt;yyyyy&amp;lt;/choice&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;change&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;condition value="1"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;set token="search_query"&amp;gt;&lt;/P&gt;&lt;P&gt;index=ssss "&amp;lt;base search criteria&amp;gt;" | rex command to execute 2 fields | eval for date time conversion | timechart | eval to validate range to find if the count was in expected range&lt;/P&gt;&lt;P&gt;&amp;lt;/set&amp;gt;&amp;nbsp; ------- code breaks here with error - Unexpected close tag&lt;/P&gt;&lt;P&gt;Basically the rex which has wild card character search is the cause for the error. Am trying to find which is the character that I should escape. Struggling to figure out as I have all characters in there _,.*()\ etc., Any help in this regard would be much appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 15:12:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/621268#M51003</guid>
      <dc:creator>sdkp03</dc:creator>
      <dc:date>2022-11-17T15:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: splunk dashboard with variable number of panels based on dropdown value selected</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/621275#M51005</link>
      <description>&lt;P&gt;This is html so if you really have&amp;nbsp;&lt;SPAN&gt;"&amp;lt;base search criteria&amp;gt;" in your search you would need to escape the &amp;lt; as &amp;amp;lt; and the &amp;gt; as &amp;amp;gt; and there may be other html characters you would need to escape (but &amp;amp;lt; and &amp;amp;gt; are usually the culprits)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 15:46:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-Splunk-dashboard-with-variable-number-of-panels/m-p/621275#M51005</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-17T15:46:43Z</dc:date>
    </item>
  </channel>
</rss>

