<?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 How to pass multiple values for a field through token in a dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-multiple-values-for-a-field-through-token-in-a/m-p/604083#M49621</link>
    <description>&lt;P&gt;Dashboard is taking a long time to load and it has 17 apps in one panel. I have also tried creating a token such as &amp;lt;set token="app_names"&amp;gt;app1,app2&amp;lt;/set&amp;gt; instead of using wildcard.&amp;nbsp; but query is not returning any result.&lt;/P&gt;&lt;P&gt;Code snippet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;init&amp;gt;
    &amp;lt;set token="app_names"&amp;gt;app1,app2,app3................&amp;lt;/set&amp;gt;
 &amp;lt;/init&amp;gt;
 ......
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Dashboard&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
         &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=idx ns=xyz* app_name=$app_names$ pod_container=xyz* ((" ERROR " OR " WARN ")
		  |stats count by app_name
          | append
    [| stats count
    | eval app_name="app1,app2,app3........"
    | table app_name
    | makemv app_name delim=","
    | mvexpand app_name]
	.......&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise!&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2022 07:52:26 GMT</pubDate>
    <dc:creator>Soundaryakunder</dc:creator>
    <dc:date>2022-07-01T07:52:26Z</dc:date>
    <item>
      <title>How to pass multiple values for a field through token in a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-multiple-values-for-a-field-through-token-in-a/m-p/604083#M49621</link>
      <description>&lt;P&gt;Dashboard is taking a long time to load and it has 17 apps in one panel. I have also tried creating a token such as &amp;lt;set token="app_names"&amp;gt;app1,app2&amp;lt;/set&amp;gt; instead of using wildcard.&amp;nbsp; but query is not returning any result.&lt;/P&gt;&lt;P&gt;Code snippet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;init&amp;gt;
    &amp;lt;set token="app_names"&amp;gt;app1,app2,app3................&amp;lt;/set&amp;gt;
 &amp;lt;/init&amp;gt;
 ......
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Dashboard&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
         &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=idx ns=xyz* app_name=$app_names$ pod_container=xyz* ((" ERROR " OR " WARN ")
		  |stats count by app_name
          | append
    [| stats count
    | eval app_name="app1,app2,app3........"
    | table app_name
    | makemv app_name delim=","
    | mvexpand app_name]
	.......&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 07:52:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-multiple-values-for-a-field-through-token-in-a/m-p/604083#M49621</guid>
      <dc:creator>Soundaryakunder</dc:creator>
      <dc:date>2022-07-01T07:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass multiple values for a field through token in a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-multiple-values-for-a-field-through-token-in-a/m-p/604087#M49622</link>
      <description>&lt;P&gt;Would something like this help?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=idx ns=xyz* app_name IN ($app_names$) ...&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 01 Jul 2022 08:07:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-multiple-values-for-a-field-through-token-in-a/m-p/604087#M49622</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-07-01T08:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass multiple values for a field through token in a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-multiple-values-for-a-field-through-token-in-a/m-p/604094#M49625</link>
      <description>&lt;P&gt;Your solution really helped. Thank you very much&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 08:35:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-multiple-values-for-a-field-through-token-in-a/m-p/604094#M49625</guid>
      <dc:creator>Soundaryakunder</dc:creator>
      <dc:date>2022-07-01T08:35:23Z</dc:date>
    </item>
    <item>
      <title>Dashboard is taking a long time to load. How to improve the performance?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-multiple-values-for-a-field-through-token-in-a/m-p/604305#M49649</link>
      <description>&lt;P&gt;&amp;nbsp;I have created a dashboard with 3 panels and it has 17 apps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me on this.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 10:38:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-multiple-values-for-a-field-through-token-in-a/m-p/604305#M49649</guid>
      <dc:creator>Soundaryakunder</dc:creator>
      <dc:date>2022-07-04T10:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard is taking a long time to load. How to improve the performance?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-multiple-values-for-a-field-through-token-in-a/m-p/604308#M49650</link>
      <description>&lt;P&gt;It depends on what you are trying to display in your dashboard - if you have 17 searches to do, this will take some time - there are various optimisations available but it depends on your use case - things to consider are summary indexes, saved reports, splitting across multiple dashboards, hiding panels until data is available, etc.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 10:43:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-multiple-values-for-a-field-through-token-in-a/m-p/604308#M49650</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-07-04T10:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard is taking a long time to load. How to improve the performance?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-multiple-values-for-a-field-through-token-in-a/m-p/604309#M49651</link>
      <description>&lt;P&gt;Okay. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 10:53:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-multiple-values-for-a-field-through-token-in-a/m-p/604309#M49651</guid>
      <dc:creator>Soundaryakunder</dc:creator>
      <dc:date>2022-07-04T10:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard is taking a long time to load. How to improve the performance?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-multiple-values-for-a-field-through-token-in-a/m-p/604368#M49656</link>
      <description>&lt;P&gt;I need one more help..&lt;/P&gt;&lt;P&gt;I have already specified the multiple values(app1,app2,app3.....)in the token. So I have tried to remove the eval(eval app_name="app1,app2,app3........") command from the Query. but it is returning wrong results. Is this eval command is required?&lt;/P&gt;&lt;P&gt;Please suggest me on this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;init&amp;gt;
    &amp;lt;set token="app_names"&amp;gt;app1,app2,app3................&amp;lt;/set&amp;gt;
 &amp;lt;/init&amp;gt;
 ......
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Dashboard&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
         &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=idx ns=xyz* app_name IN ($app_names$) pod_container=xyz* ((" ERROR " OR " WARN ")
		  |stats count by app_name
          | append
    [| stats count
    | eval app_name="app1,app2,app3........"
    | table app_name
    | makemv app_name delim=","
    | mvexpand app_name]
	.......&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 04:27:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-pass-multiple-values-for-a-field-through-token-in-a/m-p/604368#M49656</guid>
      <dc:creator>Soundaryakunder</dc:creator>
      <dc:date>2022-07-05T04:27:07Z</dc:date>
    </item>
  </channel>
</rss>

