<?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: Using tokens in dropdown menu to create two different results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-tokens-in-dropdown-menu-to-create-two-different-results/m-p/669216#M229536</link>
    <description>&lt;P&gt;Set up your dropdown so the value for read is 0 and the value for write is 1 then use the token in the search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="collectd_test" plugin=disk type=disk_octets plugin_instance=dm-0
| spath output=values$token$ path=values{$token$}
| spath output=dsnames$token$ path=dsnames{$token$}
| stats  min(values$token$) as min max(values$token$) as max avg(values0) as avg by dsnames$token$
| eval min=round(min, 2)
| eval max=round(max, 2)
| eval avg=round(avg, 2)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 20 Nov 2023 16:09:46 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-11-20T16:09:46Z</dc:date>
    <item>
      <title>Using tokens in dropdown menu to create two different results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-tokens-in-dropdown-menu-to-create-two-different-results/m-p/669202#M229528</link>
      <description>&lt;P&gt;I am wondering if there's a way to use the dropdown menu and tokens to display two different results. I am trying to have the dropdown menu have static options of "read" and "write".&lt;/P&gt;&lt;P&gt;Read would display this search&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="collectd_test" plugin=disk type=disk_octets plugin_instance=dm-0
| spath output=values0 path=values{0}
| spath output=dsnames0 path=dsnames{0}
| stats  min(values0) as min max(values0) as max avg(values0) as avg by dsnames0
| eval min=round(min, 2)
| eval max=round(max, 2)
| eval avg=round(avg, 2)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Write would display this search&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="collectd_test" plugin=disk type=disk_octets plugin_instance=dm-0
| spath output=values1 path=values{1}
| spath output=dsnames1 path=dsnames{1}
| stats  min(values1) as min max(values1) as max avg(values1) as avg by dsnames1
| eval min=round(min, 2)
| eval max=round(max, 2)
| eval avg=round(avg, 2)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only change in the searches as you can see is just the elements in the multivalue field.&lt;/P&gt;&lt;P&gt;If there is a way to append the search and have it shown together, that would be helpful as well.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 15:07:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-tokens-in-dropdown-menu-to-create-two-different-results/m-p/669202#M229528</guid>
      <dc:creator>jialiu907</dc:creator>
      <dc:date>2023-11-20T15:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using tokens in dropdown menu to create two different results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-tokens-in-dropdown-menu-to-create-two-different-results/m-p/669216#M229536</link>
      <description>&lt;P&gt;Set up your dropdown so the value for read is 0 and the value for write is 1 then use the token in the search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="collectd_test" plugin=disk type=disk_octets plugin_instance=dm-0
| spath output=values$token$ path=values{$token$}
| spath output=dsnames$token$ path=dsnames{$token$}
| stats  min(values$token$) as min max(values$token$) as max avg(values0) as avg by dsnames$token$
| eval min=round(min, 2)
| eval max=round(max, 2)
| eval avg=round(avg, 2)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Nov 2023 16:09:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-tokens-in-dropdown-menu-to-create-two-different-results/m-p/669216#M229536</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-20T16:09:46Z</dc:date>
    </item>
  </channel>
</rss>

