<?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: Is there a way to achieve complex-value dropdown? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-achieve-complex-value-dropdown/m-p/651965#M53490</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/259032"&gt;@blueocean&lt;/a&gt;&amp;nbsp;t,&lt;/P&gt;&lt;P&gt;I rarely use mstats, but probably runs:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| mstats avg(_value) as "Avg" where index IN(k8_metrics) AND metric_name="kube.node.memory.usage_bytes" span=1m by node
| rex field=$envCluster$ "^(?&amp;lt;envAcronym&amp;gt;[^\|]+)\|(?&amp;lt;envCluster&amp;gt;.*)"
| search cluster_name=envCluster&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2023 18:12:04 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2023-07-25T18:12:04Z</dc:date>
    <item>
      <title>Is there a way to achieve complex-value dropdown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-achieve-complex-value-dropdown/m-p/651915#M53478</link>
      <description>&lt;P&gt;I have my data as follows:&lt;BR /&gt;| table envName, envAcronym, envCluster&lt;BR /&gt;&lt;BR /&gt;I am using envName as Label of the dropdown but want to use envAcronym and envCluster as the value. From the dropdown editor, I dont see a way to specify multiple values. Is there a way to achieve what I am looking for?&lt;BR /&gt;&lt;BR /&gt;I tried setting the value as a json object but then dereferencing the variables with dot notation does not work. For example I tried to reference value as "$selectedEnv.envAcronym$" and $selectedEnv.envCluster$ but it does not work.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 16:31:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-achieve-complex-value-dropdown/m-p/651915#M53478</guid>
      <dc:creator>blueocean</dc:creator>
      <dc:date>2023-07-25T16:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: complex-value dropdown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-achieve-complex-value-dropdown/m-p/651923#M53482</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/259032"&gt;@blueocean&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you could be to use in the dropdown:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval value=envAcronym."|".envCluster
| table envName value&lt;/LI-CODE&gt;&lt;P&gt;using envName as label and value as value.&lt;/P&gt;&lt;P&gt;then in the search you can divide the value using a regex&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=value "^(?&amp;lt;envAcronym&amp;gt;[^\|]+)\|(?&amp;lt;envCluster&amp;gt;.*)"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 14:52:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-achieve-complex-value-dropdown/m-p/651923#M53482</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-25T14:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to achieve complex-value dropdown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-achieve-complex-value-dropdown/m-p/651958#M53488</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;. One thing I am still not able to figure out is "where" do I run the rex command to extract the field. For example, one the dashboard panels needs the selected envCluster as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| mstats avg(_value) as "Avg" where index IN(k8_metrics)  cluster_name=$envCluster$ AND metric_name="kube.node.memory.usage_bytes" span=1m by node&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot add a rex clause before mstats as that is not allowed. I understand that it would work fine for normal search based panels where I can add rex command easily.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 18:01:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-achieve-complex-value-dropdown/m-p/651958#M53488</guid>
      <dc:creator>blueocean</dc:creator>
      <dc:date>2023-07-25T18:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to achieve complex-value dropdown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-achieve-complex-value-dropdown/m-p/651965#M53490</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/259032"&gt;@blueocean&lt;/a&gt;&amp;nbsp;t,&lt;/P&gt;&lt;P&gt;I rarely use mstats, but probably runs:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| mstats avg(_value) as "Avg" where index IN(k8_metrics) AND metric_name="kube.node.memory.usage_bytes" span=1m by node
| rex field=$envCluster$ "^(?&amp;lt;envAcronym&amp;gt;[^\|]+)\|(?&amp;lt;envCluster&amp;gt;.*)"
| search cluster_name=envCluster&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2023 18:12:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-achieve-complex-value-dropdown/m-p/651965#M53490</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-25T18:12:04Z</dc:date>
    </item>
  </channel>
</rss>

