<?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: How are strings from an UI-&amp;quot;input&amp;quot; interpreted in another string search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-are-strings-from-an-UI-quot-input-quot-interpreted-in/m-p/640299#M221869</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/255371"&gt;@GaryZ&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It would be easier to check if you provide the dashboard source XML, in case there is something strange going on there.&amp;nbsp; Please post the source XML inside a code sample block.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yeahnah_0-1681773168109.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24953i73422564493568B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yeahnah_0-1681773168109.png" alt="yeahnah_0-1681773168109.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Apr 2023 23:13:50 GMT</pubDate>
    <dc:creator>yeahnah</dc:creator>
    <dc:date>2023-04-17T23:13:50Z</dc:date>
    <item>
      <title>How are strings from an UI-"input" interpreted in another string search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-are-strings-from-an-UI-quot-input-quot-interpreted-in/m-p/640286#M221868</link>
      <description>&lt;P&gt;I have the following search string in my chart panel. &amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"Arguments.category{}"= "$TestSuite$"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TestSuite is defined by the following dropdown UI-Input. &amp;nbsp;&lt;/P&gt;&lt;P&gt;| stats count by test_suite&lt;BR /&gt;| fields test_suite&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GaryZ_0-1681761643103.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24952i47CB9FF1EC97C645/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GaryZ_0-1681761643103.png" alt="GaryZ_0-1681761643103.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is when I use this string&lt;/P&gt;&lt;P&gt;"Arguments.category{}"= "$TestSuite$"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output returns this search&lt;/P&gt;&lt;P&gt;"Arguments.category{}"= "(backend/resource_ql)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I &amp;nbsp;am interested in getting this (without the parenthesis).&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Arguments.category{}"= "backend/resource_ql"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong? &amp;nbsp;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 20:08:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-are-strings-from-an-UI-quot-input-quot-interpreted-in/m-p/640286#M221868</guid>
      <dc:creator>GaryZ</dc:creator>
      <dc:date>2023-04-17T20:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: How are strings from an UI-"input" interpreted in another string search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-are-strings-from-an-UI-quot-input-quot-interpreted-in/m-p/640299#M221869</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/255371"&gt;@GaryZ&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It would be easier to check if you provide the dashboard source XML, in case there is something strange going on there.&amp;nbsp; Please post the source XML inside a code sample block.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yeahnah_0-1681773168109.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24953i73422564493568B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yeahnah_0-1681773168109.png" alt="yeahnah_0-1681773168109.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 23:13:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-are-strings-from-an-UI-quot-input-quot-interpreted-in/m-p/640299#M221869</guid>
      <dc:creator>yeahnah</dc:creator>
      <dc:date>2023-04-17T23:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: How are strings from an UI-"input" interpreted in another string search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-are-strings-from-an-UI-quot-input-quot-interpreted-in/m-p/640384#M221907</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/158935"&gt;@yeahnah&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code (redacted) that generated the input. &amp;nbsp;Please let me know if you any more information. &amp;nbsp;Thanks.&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;input type="dropdown" token="TestSuite" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;TestSuite&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;backend/abc&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;backend/abc&amp;lt;/initialValue&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;test_suite&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;test_suite&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=service_index 
| rename "Arguments.category{}" as test_suite
| stats count by test_suite
| fields test_suite&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;prefix&amp;gt;"&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;"&amp;lt;/suffix&amp;gt;
    &amp;lt;/input&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;This is the code that's using the input from $TestSuite$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;title&amp;gt;Test Status (24Hrs)&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=service_index 
| where "Arguments.category{}" IN $TestSuite$
| stats count by Status&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$timeRange.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$timeRange.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;pie&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.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;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&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;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 16:34:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-are-strings-from-an-UI-quot-input-quot-interpreted-in/m-p/640384#M221907</guid>
      <dc:creator>GaryZ</dc:creator>
      <dc:date>2023-04-18T16:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: How are strings from an UI-"input" interpreted in another string search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-are-strings-from-an-UI-quot-input-quot-interpreted-in/m-p/640395#M221916</link>
      <description>&lt;P&gt;You are using the wrong syntax in your "where".&amp;nbsp; IMHO it should be:&lt;BR /&gt;| search Arguments.category() = "$&lt;SPAN&gt;TestSuite$"&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval "Arguments.category{}" = "xxx"
| rename * AS *{}
| search "Arguments.category{}" = "xxx"
| search Arguments.category{} = "xxx"
| where 'Arguments.category{}' = "xxx"&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;TestSuite&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 17:51:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-are-strings-from-an-UI-quot-input-quot-interpreted-in/m-p/640395#M221916</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-18T17:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: How are strings from an UI-"input" interpreted in another string search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-are-strings-from-an-UI-quot-input-quot-interpreted-in/m-p/640397#M221917</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would this be the same if I'm using either a dropdown vs. multi-select input?&lt;/P&gt;&lt;P&gt;I used the following for the multi-select case&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;where 'Arguments.category{}' IN $TestSuite$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was then using &amp;nbsp;the following when I was using the dropdown.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;where 'Arguments.category{}' = "xxx"&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;&lt;/P&gt;&lt;P&gt;However my issue is what's interpreted when I'm using either input types.&lt;/P&gt;&lt;P&gt;When I use this search string&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"Arguments.category{}"= "$TestSuite$"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output returns this search (with the parenthesis)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"Arguments.category{}"= "(backend/abc)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I &amp;nbsp;am interested in getting this (without the parenthesis).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"Arguments.category{}"= "backend/abc"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm curious if there's something I'm missing (or doing wrong) when I'm setting up the input UIs. &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 18:01:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-are-strings-from-an-UI-quot-input-quot-interpreted-in/m-p/640397#M221917</guid>
      <dc:creator>GaryZ</dc:creator>
      <dc:date>2023-04-18T18:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: How are strings from an UI-"input" interpreted in another string search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-are-strings-from-an-UI-quot-input-quot-interpreted-in/m-p/640399#M221918</link>
      <description>&lt;P&gt;(redacted)&amp;nbsp; You posted "dropdown", not "multiselect".&amp;nbsp; (redacted)&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 15:28:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-are-strings-from-an-UI-quot-input-quot-interpreted-in/m-p/640399#M221918</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-21T15:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: How are strings from an UI-"input" interpreted in another string search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-are-strings-from-an-UI-quot-input-quot-interpreted-in/m-p/640403#M221921</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally I want multi-select. &amp;nbsp;I do understand the syntax in the dropdown. &amp;nbsp;however, the issue I'm having is the interpretation I'm getting in the search string when I'm using either of the case - dropdown or multi-select.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for these newby questions. &amp;nbsp;I'm fairly new to Splunk, and have a lot to learn. &amp;nbsp;Thank you for being patient.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 18:22:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-are-strings-from-an-UI-quot-input-quot-interpreted-in/m-p/640403#M221921</guid>
      <dc:creator>GaryZ</dc:creator>
      <dc:date>2023-04-18T18:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: How are strings from an UI-"input" interpreted in another string search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-are-strings-from-an-UI-quot-input-quot-interpreted-in/m-p/640410#M221925</link>
      <description>&lt;P&gt;This is the stuff you need:&lt;BR /&gt;&amp;lt;label&amp;gt;TestSuite&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;prefix&amp;gt;Arguments.category{} IN(&amp;lt;/prefix&amp;gt;&lt;BR /&gt;&amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;&lt;BR /&gt;&amp;lt;valuePrefix&amp;gt;"&amp;lt;/valuePrefix&amp;gt;&lt;BR /&gt;&amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;&lt;BR /&gt;&amp;lt;delimiter&amp;gt;,&amp;lt;/delimiter&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Then just use "| search $TestSuite$"&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 18:52:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-are-strings-from-an-UI-quot-input-quot-interpreted-in/m-p/640410#M221925</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-18T18:52:33Z</dc:date>
    </item>
  </channel>
</rss>

