<?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: Splunk dashboard dynamic filter by multiple filter tokens in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-dashboard-dynamic-filter-by-multiple-filter-tokens/m-p/694229#M236142</link>
    <description>&lt;P&gt;sorry if it's not clear,&lt;BR /&gt;For example, there is&lt;BR /&gt;Hostnames A, B, C&lt;BR /&gt;is X owner&lt;/P&gt;&lt;P&gt;Hostnames D, E, F&lt;BR /&gt;is the Y owner.&lt;/P&gt;&lt;P&gt;I want each filter to be bound to tokens on other filters. So, for example, if I set the owner filter to value X, the dropdown on Hostname filter only displays A, B, C. Or if I choose hosntname A, the owner filter only show X value, is it possible?&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2024 16:03:42 GMT</pubDate>
    <dc:creator>elend</dc:creator>
    <dc:date>2024-07-24T16:03:42Z</dc:date>
    <item>
      <title>Splunk dashboard dynamic filter by multiple filter tokens</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-dashboard-dynamic-filter-by-multiple-filter-tokens/m-p/694202#M236127</link>
      <description>&lt;P&gt;I created a splunk dashboard that has a lot of filters (multiple dropdowns), and text input with different tokens, and with dynamic tables too. I want make it dynamic foreach filter that I choose, but for now it still can't be dynamic for every existing output and filter.&lt;BR /&gt;Here my xml:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1" theme="dark"&amp;gt;
  &amp;lt;label&amp;gt;Dashboard Overview&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="global_time" 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;-24h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="owner" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Owner&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;owner&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;owner&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=db_warehouse 
| dedup owner
| fields owner
| table owner&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;/input&amp;gt;
    &amp;lt;input type="dropdown" token="hostname" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Hostname&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;hostname&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;hostname&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=db_warehouse hostname=$hostname$ owner=$owner$ ipaddress=$ipaddress$ cve=$cve$ cve=$cve$
| dedup hostname
| fields hostname
| table hostname&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;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="ipaddress" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select by IP Address&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;ipaddress&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;dest&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=db_warehouse
| search hostname=$hostname$ owner=$owner$ ipaddress=$ipaddress$ cve=$cve$
| dedup dest
| fields dest
| table dest&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;/input&amp;gt;
    &amp;lt;input type="text" token="cve"&amp;gt;
      &amp;lt;label&amp;gt;Search CVE&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Detail Information Table&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=db_warehouse 
| fields _time, hostname, dest, mac_address, vulnerability_title, os_version, os_description, severity, cvss_score, last_assessed_for_vulnerabilities, solution_types,cve, owner, dest_category
| search hostname=$hostname$ owner=$owner$ ipaddress=$ipaddress$ cve=$cve$
| rename dest as ip, dest_category as category
| table _time, hostname, ip, mac_address, vulnerability_title, owner, category, cve, os_version, os_description, severity, cvss_score, last_assessed_for_vulnerabilities, solution_types
| dedup hostname&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$global_time.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$global_time.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Is there any reference or solution for this?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 13:29:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-dashboard-dynamic-filter-by-multiple-filter-tokens/m-p/694202#M236127</guid>
      <dc:creator>elend</dc:creator>
      <dc:date>2024-07-24T13:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard dynamic filter by multiple filter tokens</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-dashboard-dynamic-filter-by-multiple-filter-tokens/m-p/694205#M236129</link>
      <description>&lt;P&gt;It is not clear what you are trying to achieve here - you already have your tokens in your table search!&lt;/P&gt;&lt;P&gt;btw, your ipaddress dropdown has a fieldForLabel with is not returned by the search.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 13:57:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-dashboard-dynamic-filter-by-multiple-filter-tokens/m-p/694205#M236129</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-07-24T13:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard dynamic filter by multiple filter tokens</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-dashboard-dynamic-filter-by-multiple-filter-tokens/m-p/694229#M236142</link>
      <description>&lt;P&gt;sorry if it's not clear,&lt;BR /&gt;For example, there is&lt;BR /&gt;Hostnames A, B, C&lt;BR /&gt;is X owner&lt;/P&gt;&lt;P&gt;Hostnames D, E, F&lt;BR /&gt;is the Y owner.&lt;/P&gt;&lt;P&gt;I want each filter to be bound to tokens on other filters. So, for example, if I set the owner filter to value X, the dropdown on Hostname filter only displays A, B, C. Or if I choose hosntname A, the owner filter only show X value, is it possible?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 16:03:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-dashboard-dynamic-filter-by-multiple-filter-tokens/m-p/694229#M236142</guid>
      <dc:creator>elend</dc:creator>
      <dc:date>2024-07-24T16:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk dashboard dynamic filter by multiple filter tokens</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-dashboard-dynamic-filter-by-multiple-filter-tokens/m-p/694287#M236159</link>
      <description>&lt;P&gt;to make it clear about the existing condition. There is a list of hostname &amp;amp; ip that have different owner, also null owner and by default the hostname dropdown only show list hostname that have owner value, and not show the hostname that doesnt have owner. How to refine this?&lt;BR /&gt;Following is the related capture:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dashboard filter.jpeg" style="width: 770px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31890iE257062473B12B1C/image-size/large?v=v2&amp;amp;px=999" role="button" title="dashboard filter.jpeg" alt="dashboard filter.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and this for the search output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="search-owner.jpeg" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31891i6609979094D9198B/image-size/large?v=v2&amp;amp;px=999" role="button" title="search-owner.jpeg" alt="search-owner.jpeg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 12:02:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-dashboard-dynamic-filter-by-multiple-filter-tokens/m-p/694287#M236159</guid>
      <dc:creator>elend</dc:creator>
      <dc:date>2024-07-25T12:02:36Z</dc:date>
    </item>
  </channel>
</rss>

