<?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 Multiselect dropdown with wildcards in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multiselect-dropdown-with-wildcards/m-p/742732#M240929</link>
    <description>&lt;P&gt;I have a field that I need to search on that is a long string of comma-separated values.&amp;nbsp; It comes from our vulnerability scanner tool, Qualys, and looks something like this:&lt;/P&gt;&lt;P&gt;"OS: Windows 10 22H2, Port: 53, AV: Installed, SW: Maya, SVC: SiegeTower"&lt;/P&gt;&lt;P&gt;I have a multiselect dropdown on the dashboard with each unique tag that I want my users to be able to select any/all tags that matter to them.&amp;nbsp; Application owners may only be concerned about viewing data related to their particular service on a particular operating system (user selects "OS: Windows 10 22H2" and "SVC: SiegeTower" for example).&lt;/P&gt;&lt;P&gt;The problem I'm running into is when users select multiple tags, the search looks like this:&lt;/P&gt;&lt;PRE&gt;&amp;lt;base search&amp;gt;&lt;BR /&gt;| search TAGS IN ("OS: Windows 10 22H2","SVC: SiegeTower")&lt;BR /&gt;| ...&lt;/PRE&gt;&lt;P&gt;which returns zero results. What I really need is:&lt;/P&gt;&lt;PRE&gt;&amp;lt;base search&amp;gt;&lt;BR /&gt;| search TAGS IN ("*OS: Windows 10 22H2*","*SVC: SiegeTower*")&lt;BR /&gt;| ...&lt;/PRE&gt;&lt;P&gt;Which has wildcard characters on each search selection and does return the correct results.&lt;/P&gt;&lt;P&gt;Is there any way to add wildcards to the multiselect dropdown selections to get the right results?&amp;nbsp; The only other option I tried a combination of split and mvexpand on the TAGS field to perform the search but between thousands of endpoints and dozens of tags, I ran into memory issues that I won't be able to overcome any time soon.&lt;/P&gt;&lt;P&gt;Any help here is appreciated!&lt;/P&gt;</description>
    <pubDate>Wed, 26 Mar 2025 16:05:21 GMT</pubDate>
    <dc:creator>DATT</dc:creator>
    <dc:date>2025-03-26T16:05:21Z</dc:date>
    <item>
      <title>Multiselect dropdown with wildcards</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiselect-dropdown-with-wildcards/m-p/742732#M240929</link>
      <description>&lt;P&gt;I have a field that I need to search on that is a long string of comma-separated values.&amp;nbsp; It comes from our vulnerability scanner tool, Qualys, and looks something like this:&lt;/P&gt;&lt;P&gt;"OS: Windows 10 22H2, Port: 53, AV: Installed, SW: Maya, SVC: SiegeTower"&lt;/P&gt;&lt;P&gt;I have a multiselect dropdown on the dashboard with each unique tag that I want my users to be able to select any/all tags that matter to them.&amp;nbsp; Application owners may only be concerned about viewing data related to their particular service on a particular operating system (user selects "OS: Windows 10 22H2" and "SVC: SiegeTower" for example).&lt;/P&gt;&lt;P&gt;The problem I'm running into is when users select multiple tags, the search looks like this:&lt;/P&gt;&lt;PRE&gt;&amp;lt;base search&amp;gt;&lt;BR /&gt;| search TAGS IN ("OS: Windows 10 22H2","SVC: SiegeTower")&lt;BR /&gt;| ...&lt;/PRE&gt;&lt;P&gt;which returns zero results. What I really need is:&lt;/P&gt;&lt;PRE&gt;&amp;lt;base search&amp;gt;&lt;BR /&gt;| search TAGS IN ("*OS: Windows 10 22H2*","*SVC: SiegeTower*")&lt;BR /&gt;| ...&lt;/PRE&gt;&lt;P&gt;Which has wildcard characters on each search selection and does return the correct results.&lt;/P&gt;&lt;P&gt;Is there any way to add wildcards to the multiselect dropdown selections to get the right results?&amp;nbsp; The only other option I tried a combination of split and mvexpand on the TAGS field to perform the search but between thousands of endpoints and dozens of tags, I ran into memory issues that I won't be able to overcome any time soon.&lt;/P&gt;&lt;P&gt;Any help here is appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 16:05:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiselect-dropdown-with-wildcards/m-p/742732#M240929</guid>
      <dc:creator>DATT</dc:creator>
      <dc:date>2025-03-26T16:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiselect dropdown with wildcards</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiselect-dropdown-with-wildcards/m-p/742734#M240930</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/268574"&gt;@DATT&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="livehybrid_0-1743005771070.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38347i961E32B2AC6FFEF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="livehybrid_0-1743005771070.png" alt="livehybrid_0-1743005771070.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form version="1.1"&amp;gt;
  &amp;lt;label&amp;gt;ClassicTest&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false" autoRun="true"&amp;gt;
    &amp;lt;input type="multiselect" token="tags" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Tags&amp;lt;/label&amp;gt;
      &amp;lt;choice value="OS: MacOS"&amp;gt;OS: MacOS&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="OS: Windows 10"&amp;gt;OS: Windows 10&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="OS: Windows 11"&amp;gt;OS: Windows 11&amp;lt;/choice&amp;gt;
      &amp;lt;prefix&amp;gt;tags = &amp;lt;/prefix&amp;gt;
      &amp;lt;valuePrefix&amp;gt;"*&amp;lt;/valuePrefix&amp;gt;
      &amp;lt;valueSuffix&amp;gt;*"&amp;lt;/valueSuffix&amp;gt;
      &amp;lt;delimiter&amp;gt; OR tags=&amp;lt;/delimiter&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Output&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;|makeresults | eval msg="Event 1", tags="Junk1,OS: Windows 11,something1"
| append [|makeresults | eval msg="Event 2", tags="Junk2,OS: Windows 10,something2"]
| append [|makeresults | eval msg="Event 3", tags="Junk3,OS: MacOS 15.4,something1"]
| search $tags$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-30d@d&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;This uses a selection of tags="*&amp;lt;something&amp;gt;*" OR .. instead of trying to use IN.&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider adding karma to this or any other answer if it has helped.&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Will&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 16:16:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiselect-dropdown-with-wildcards/m-p/742734#M240930</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-26T16:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multiselect dropdown with wildcards</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiselect-dropdown-with-wildcards/m-p/742737#M240931</link>
      <description>&lt;P&gt;This looks like a classic dashboard?&amp;nbsp; &amp;nbsp;I didn't think to mention we're using Dashboard Studio.&amp;nbsp; Is prefix/suffix available in Dashboard Studio?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 16:46:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiselect-dropdown-with-wildcards/m-p/742737#M240931</guid>
      <dc:creator>DATT</dc:creator>
      <dc:date>2025-03-26T16:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multiselect dropdown with wildcards</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiselect-dropdown-with-wildcards/m-p/742743#M240935</link>
      <description>&lt;P&gt;Turns out the solution was simpler than I thought.&lt;/P&gt;&lt;P&gt;The multiselect is populated from a query.&amp;nbsp; Within that query I just created another field that took the tags and added wildcard characters to the front and back.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;base search&amp;gt;&lt;BR /&gt;| eval TAGS = split(TAGS, ",")&lt;BR /&gt;| mvexpand TAGS&lt;BR /&gt;| dedup TAGS&lt;BR /&gt;| table TAGS&lt;BR /&gt;| eval TAGS_WILDCARD = "*" + TAGS + "*"&lt;BR /&gt;| sort TAGS&lt;/PRE&gt;&lt;P&gt;With this, I mapped TAGS to the dynamic menu label field, and TAGS_WILDCARD to the dynamic menu value field.&amp;nbsp; I was then able to use the token filter "|s" to wrap each value in quotes.&lt;/P&gt;&lt;P&gt;Ultimately, I ended up with this&lt;/P&gt;&lt;PRE&gt;&amp;lt;base search&amp;gt; &lt;BR /&gt;| search TAGS IN ($includeTag|s$) AND TAGS NOT ($excludeTag|s$) &lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Mar 2025 19:50:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiselect-dropdown-with-wildcards/m-p/742743#M240935</guid>
      <dc:creator>DATT</dc:creator>
      <dc:date>2025-03-26T19:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiselect dropdown with wildcards</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiselect-dropdown-with-wildcards/m-p/742746#M240936</link>
      <description>&lt;P&gt;I'd go the other way around - either extract the values into separate fields or use tokenizer to split the field into multiple values. Searching for wildcards at the beginning of the search term is very ineffective.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 21:10:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiselect-dropdown-with-wildcards/m-p/742746#M240936</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-03-26T21:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiselect dropdown with wildcards</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multiselect-dropdown-with-wildcards/m-p/742750#M240939</link>
      <description>&lt;P&gt;Ah yes okay, that is Classic only, sorry I didnt realise you were wanting Dashboard Studio!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 22:19:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multiselect-dropdown-with-wildcards/m-p/742750#M240939</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-26T22:19:06Z</dc:date>
    </item>
  </channel>
</rss>

