<?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: Search with a input token not working in dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585837#M48021</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wangkevin1029_0-1645312792450.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18052i743334E1E51B9144/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wangkevin1029_0-1645312792450.png" alt="wangkevin1029_0-1645312792450.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;select it from here.&amp;nbsp; &amp;nbsp;when GA or A selected, it works fine,&amp;nbsp; but when ALL/* is selected,&amp;nbsp; I expected both GA and A&amp;nbsp; all returned.&lt;/P&gt;</description>
    <pubDate>Sat, 19 Feb 2022 23:21:19 GMT</pubDate>
    <dc:creator>wangkevin1029</dc:creator>
    <dc:date>2022-02-19T23:21:19Z</dc:date>
    <item>
      <title>Why is search with a input token not working in dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585820#M48015</link>
      <description>&lt;P&gt;Hi, Splunkers,&lt;/P&gt;
&lt;P&gt;I have a Search with an input token ,&amp;nbsp; which is not working in my query in dashboard&lt;/P&gt;
&lt;P&gt;t_TargetType is token name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | search AFRoute=if($t_TargetType|s$ == "A","true","*")&lt;/P&gt;
&lt;P&gt;when token has value&amp;nbsp; A,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; | search AFRoute=if("A" == "A","true","*"),&amp;nbsp; which I assume is equal to&lt;/SPAN&gt;&amp;nbsp; | search AFRoute="true".&lt;/P&gt;
&lt;P&gt;but when I directly run a search&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;with&amp;nbsp; | search AFRoute=if("A" == "A","true","*") , it doesn't &amp;nbsp;work&amp;nbsp; same as&amp;nbsp;| search AFRoute="true".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;what's the difference between&amp;nbsp;| search AFRoute=if("A" == "A","true","*") and&amp;nbsp; | search AFRoute="true"?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 17:04:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585820#M48015</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-02-22T17:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Search with a input token not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585825#M48017</link>
      <description>&lt;P&gt;You can't evaluate as part of a search, but could you do the evaluation as part of the original token setting?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 21:10:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585825#M48017</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-19T21:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Search with a input token not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585827#M48018</link>
      <description>&lt;P&gt;Thx, ITWhisperer,&lt;/P&gt;&lt;P&gt;I noticed that.&lt;/P&gt;&lt;P&gt;now, I tried to use&amp;nbsp; &amp;nbsp;where&amp;nbsp; &amp;nbsp;AFRoute=case&amp;nbsp; as below:&lt;/P&gt;&lt;P&gt;basically, token can have 3 values,&amp;nbsp; &amp;nbsp; &amp;nbsp;ALL/*,&amp;nbsp; Agent/A,&amp;nbsp; GroupAgent/GA,&amp;nbsp;&lt;/P&gt;&lt;P&gt;it works when Agent/A, GroupAgent/GA&amp;nbsp; are selected from dropdown list,&amp;nbsp; but when ALL/* is selected, it doesn't work.&lt;/P&gt;&lt;P&gt;the following is where clause I used in query,&amp;nbsp; and the other 3&amp;nbsp; are when 3 different values are selected, what shown in search.&lt;/P&gt;&lt;P&gt;| where&amp;nbsp; AFRoute=case($t_TargetType|s$ == "A","true",$t_TargetType|s$ == "GA","false",$t_TargetType|s$ == "*","*")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | where&amp;nbsp; AFRoute=case("*" == "A","true","*" == "GA","false","*" == "*","*")&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(&amp;nbsp; not working)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | where&amp;nbsp; AFRoute=case("GA" == "A","true","GA" == "GA","false","GA" == "*","*")&amp;nbsp; (working)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | where&amp;nbsp; AFRoute=case("A" == "A","true","A" == "GA","false","A" == "*","*")&amp;nbsp;&amp;nbsp; (working)&lt;/P&gt;&lt;P&gt;but if I directly add&amp;nbsp; |&amp;nbsp; search AFRoute=*,&amp;nbsp; or&amp;nbsp;|&amp;nbsp; search AFRoute="*", it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 22:15:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585827#M48018</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-02-19T22:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Search with a input token not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585835#M48020</link>
      <description>&lt;P&gt;How are you setting the token?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 23:10:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585835#M48020</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-19T23:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Search with a input token not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585837#M48021</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wangkevin1029_0-1645312792450.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18052i743334E1E51B9144/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wangkevin1029_0-1645312792450.png" alt="wangkevin1029_0-1645312792450.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;select it from here.&amp;nbsp; &amp;nbsp;when GA or A selected, it works fine,&amp;nbsp; but when ALL/* is selected,&amp;nbsp; I expected both GA and A&amp;nbsp; all returned.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 23:21:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585837#M48021</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-02-19T23:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Search with a input token not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585839#M48023</link>
      <description>&lt;P&gt;What does the simpleXML look like?&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 23:27:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585839#M48023</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-19T23:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search with a input token not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585840#M48024</link>
      <description>&lt;P&gt;Add a change handler to the input to evaluate the setting, and set another token based on it, then use this token in the search. Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;change&amp;gt;
  &amp;lt;eval token="AFRoute_search"&amp;gt;if($t_TargetType$ == "A","true","*")&amp;lt;/eval&amp;gt;
&amp;lt;/change&amp;gt;&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt; | search AFRoute=$AFRoute_search|s$&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 19 Feb 2022 23:38:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585840#M48024</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-19T23:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Search with a input token not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585842#M48026</link>
      <description>&lt;P&gt;thx, will try.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Sat, 19 Feb 2022 23:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585842#M48026</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-02-19T23:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search with a input token not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585843#M48027</link>
      <description>&lt;P&gt;Hi, ITWhisperer,&lt;/P&gt;&lt;P&gt;I used&amp;nbsp; case($t_TargetType|s$ == "A","true",$t_TargetType|s$ == "GA","false",$t_TargetType|s$ == "*","*")&amp;nbsp; , instead of&amp;nbsp; &amp;nbsp;if($t_TargetType$ == "A","true","*")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for 3 selections,&amp;nbsp; all return:&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;| search AFRoute="null"&lt;/P&gt;&lt;P&gt;doesn't&amp;nbsp; eval token support&amp;nbsp; case($t_TargetType|s$ == "A","true",$t_TargetType|s$ == "GA","false",$t_TargetType|s$ == "*","*")&amp;nbsp; ???&amp;nbsp; only support&amp;nbsp; &amp;nbsp;&amp;nbsp;if($t_TargetType$ == "A","true","*")&amp;nbsp; ???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;input type="dropdown" token="t_TargetType" searchWhenChanged="true"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;label&amp;gt;TargetType&amp;lt;/label&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;change&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;eval token="AFRoute_search"&amp;gt;case($t_TargetType|s$ == "A","true",$t_TargetType|s$ == "GA","false",$t_TargetType|s$ == "*","*")&amp;lt;/eval&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/change&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;choice value="*"&amp;gt;ALL&amp;lt;/choice&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;choice value="GA"&amp;gt;AgentGroup&amp;lt;/choice&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;choice value="A"&amp;gt;Agent&amp;lt;/choice&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/input&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; | search AFRoute=$AFRoute_search|s$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;| search AFRoute="null"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Sun, 20 Feb 2022 01:02:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585843#M48027</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-02-20T01:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Search with a input token not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585844#M48028</link>
      <description>&lt;P&gt;Just tried,&amp;nbsp;&lt;SPAN&gt;if($t_TargetType$ == "A","true","*") works,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but I do&amp;nbsp; need to distinguish the GA and *. , if&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;case($t_TargetType|s$ == "A","true",$t_TargetType|s$ == "GA","false",$t_TargetType|s$ == "*","*")&amp;nbsp; is not supported, is there another way to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 20 Feb 2022 01:04:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585844#M48028</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-02-20T01:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Search with a input token not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585856#M48030</link>
      <description>&lt;P&gt;You could try nesting the if's&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;eval token="AFRoute_search"&amp;gt;if($t_TargetType|s$ == "A","true",if($t_TargetType|s$ == "GA","false","*"))&amp;lt;/eval&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Or the other thing might be if you have spread the case function across two (or more lines) it won't work. case functions have to be complete all in one line (for some reason!).&lt;/P&gt;</description>
      <pubDate>Sun, 20 Feb 2022 08:23:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/585856#M48030</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-20T08:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Search with a input token not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/586064#M48051</link>
      <description>&lt;P&gt;Hi，ITWhisperer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for bothering you again.&lt;/P&gt;&lt;P&gt;the following change was working at the first beginning,&amp;nbsp; &amp;nbsp;for all three selections,&amp;nbsp; Agent/A, GroupAgent/GA, ALL/*&lt;/P&gt;&lt;PRE&gt;&amp;lt;eval token="AFRoute_search"&amp;gt;if($t_TargetType|s$ == "A","true",if($t_TargetType|s$ == "GA","false","*"))&amp;lt;/eval&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then, not sure what other change I made, I noticed it stopped working today.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;all three selections all have |search AFRoute= $AFRoute_search|s$ ,&amp;nbsp; shown in search&amp;nbsp; |search AFRoute= *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the only change&amp;nbsp; I thought might be related is&amp;nbsp; I added TargetTypeID in TargetType Input, just for associating style/css purpose.&lt;/P&gt;&lt;P&gt;I even removed it to test if it has anything to do with "search AFRoute= *" issue,&lt;/P&gt;&lt;P&gt;but obviously, issue still there.&lt;/P&gt;&lt;P&gt;is there anyway to troubleshoot this?&amp;nbsp; why&amp;nbsp; 3 selection all returned&amp;nbsp; search AFRoute= *&amp;nbsp; ???&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 15:34:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/586064#M48051</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-02-22T15:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Search with a input token not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/586067#M48052</link>
      <description>&lt;P&gt;So, you changed something - what is the SimpleXML code for your dropdown now?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 15:46:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/586067#M48052</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-22T15:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Search with a input token not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/586082#M48054</link>
      <description>&lt;P&gt;Hi, ITWhisperer,&lt;/P&gt;&lt;P&gt;the only change I thought might be related is&amp;nbsp; I added&amp;nbsp; id="TargetTypeID" , which is for associating style/css purposes.&amp;nbsp; but I tried to remove it,&amp;nbsp; it still doesn't work as it worked at the beginning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;input id="TargetTypeID" type="dropdown" token="t_TargetType" searchWhenChanged="true"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;label&amp;gt;TargetType&amp;lt;/label&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;change&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;eval token="AFRoute_search"&amp;gt;if($t_TargetType|s$ == "A","true",if($t_TargetType|s$ == "GA","false","*"))&amp;lt;/eval&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/change&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;choice value="*"&amp;gt;ALL&amp;lt;/choice&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;choice value="GA"&amp;gt;GroupAgent&amp;lt;/choice&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;choice value="A"&amp;gt;Agent&amp;lt;/choice&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/input&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;search string using this TargetType token handler&amp;nbsp; is no change as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;| search AFRoute=$AFRoute_search|s$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I opened search from dashboard,&amp;nbsp;I remember I used to be able to see the full expression like the following expression in search based on dropdown list selection:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | where&amp;nbsp; AFRoute=case("*" == "A","true","*" == "GA","false","*" == ".","*")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | where&amp;nbsp; AFRoute=case("GA" == "A","true","GA" == "GA","false","GA" == "*","*")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | where&amp;nbsp; AFRoute=case("A" == "A","true","A" == "GA","false","A" == "*","*")&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; which is helpful for troubleshooting,&amp;nbsp; but now I can only see the result&amp;nbsp; &amp;nbsp; | search AFRoute=*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 16:39:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/586082#M48054</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-02-22T16:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Search with a input token not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/586084#M48055</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;| where&amp;nbsp; AFRoute=case("*" == "A","true","*" == "GA","false","*" == ".","*")&lt;/P&gt;&lt;P&gt;&amp;nbsp;| where&amp;nbsp; AFRoute=case("GA" == "A","true","GA" == "GA","false","GA" == "*","*")&lt;/P&gt;&lt;P&gt;&amp;nbsp; | where&amp;nbsp; AFRoute=case("A" == "A","true","A" == "GA","false","A" == "*","*"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;these expressions are just examples I tried to show what I meant full expression with dynamic dropdown list selections,&amp;nbsp; now , I didn't use case expression in my token handler, still using your nesting if there.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 16:42:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/586084#M48055</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-02-22T16:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Search with a input token not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/586086#M48056</link>
      <description>&lt;P&gt;Besides，&amp;nbsp; the original token&amp;nbsp;t_TargetType still works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure why its value not passed token handler&amp;nbsp;&amp;nbsp;AFRoute_search, or always * passed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 17:17:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/586086#M48056</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-02-22T17:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Search with a input token not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/586089#M48057</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the following is the query including&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| search AFRoute=$AFRoute_search|s$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sourcetype="omni:ors:voice" $Gucid_token$ $t_ENT_Segment$ "IN THE TARGETING: Routing Target constructed as"&lt;/P&gt;&lt;P&gt;| rex field=_raw "vVQ&amp;nbsp; =(?&amp;lt;ENT_VQ&amp;gt;.*?)\'"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| rex field=_raw "constructed as:&amp;lt;\/br&amp;gt;(?&amp;lt;Target&amp;gt;.*?)&amp;lt;\/"&lt;/P&gt;&lt;P&gt;| eval Target=if(substr(Target,1,34)=="UHC&amp;gt;0 &amp;amp; GovtPrograms&amp;gt;0 &amp;amp; Sales&amp;gt;0 &amp;amp;",substr(Target,35),Target)&lt;/P&gt;&lt;P&gt;| eval TargeValidator = Target&lt;/P&gt;&lt;P&gt;| rex mode=sed field=TargeValidator "s/(?&amp;lt;var&amp;gt;\w+)\s*(?&amp;lt;comparator&amp;gt;[&amp;lt;&amp;gt;=]+)\s*(?&amp;lt;num&amp;gt;0|[1-9]\d*)//g"&lt;/P&gt;&lt;P&gt;| eval VResult = if(match(TargeValidator,"[\d\w]"),"FALSE","TRUE")&lt;/P&gt;&lt;P&gt;| where match(VResult,$t_TargetSEValidation|s$)&lt;/P&gt;&lt;P&gt;| rex field=_raw "Call Priority is adjusted to (?&amp;lt;Priority&amp;gt;\d{1,3}?)&amp;lt;\/"&lt;/P&gt;&lt;P&gt;| eval sid = substr(sid,2,32)&lt;/P&gt;&lt;P&gt;| eval id=sid&lt;/P&gt;&lt;P&gt;| search ENT_VQ=$t_VQ$&lt;/P&gt;&lt;P&gt;| sort by id,_time asc&lt;/P&gt;&lt;P&gt;| streamstats count as SEInx by sid&lt;/P&gt;&lt;P&gt;| where SEInx &amp;gt; $skillexpressionLength$&lt;/P&gt;&lt;P&gt;| eval sid=if(SEInx=1,id,null())&lt;/P&gt;&lt;P&gt;| sort 0 -_time&lt;/P&gt;&lt;P&gt;| streamstats last(_time) AS end_epoch current=f&lt;/P&gt;&lt;P&gt;| eval end_time=strftime(end_epoch, "%Y-%m-%d %H:%M:%S")&lt;/P&gt;&lt;P&gt;| eval start_time=strftime(_time, "%Y-%m-%d %H:%M:%S")&lt;/P&gt;&lt;P&gt;| eval time_range=start_time." - ".end_time&lt;/P&gt;&lt;P&gt;| eval Dura=end_epoch-_time&lt;/P&gt;&lt;P&gt;| eval ENT_VQ=if(substr(ENT_VQ,1,26)=="VQ_UHC_GovtPrograms_Sales_",substr(ENT_VQ,27),ENT_VQ)&lt;/P&gt;&lt;P&gt;| sort 0 _time&lt;/P&gt;&lt;P&gt;| table _time,sid, id,SEInx,Dura,Target,VResult,ENT_VQ,Priority&lt;/P&gt;&lt;P&gt;| sort by id,_time asc&lt;/P&gt;&lt;P&gt;| join id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[ search index="cba_omni" sourcetype="omni:ors:voice" "Call to URS Function FetchConfigsOnDN completed"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| rex field=_raw "sid='(?&amp;lt;id&amp;gt;\w{20,40})'"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| rex field=_raw "env\\\":\\\"(?&amp;lt;ENV&amp;gt;\w{2,20})\\\""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| search ENV=$t_ENV_SelectedTarget$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | table _time,ENV,id ]&lt;/P&gt;&lt;P&gt;| eval sid = substr(sid,24,32)&lt;/P&gt;&lt;P&gt;| join id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[ search index="cba_omni" source="*ors*" "IN THE ROUTING: ROUTING CODE COMPLETED at Exit_IXN_Deleted" GovtPrograms&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| rex field=_raw "sid='(?&amp;lt;id&amp;gt;\w{20,40})'"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| rex field=_raw "Routed:\\\"(?&amp;lt;Routed&amp;gt;\w{1,5})\\\""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| rex field=_raw "ENT_AfinitiStatus:\\\"(?&amp;lt;AFStatus&amp;gt;\w{2,10})\\\""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| rex field=_raw "ENT_AfinitiRoute:\\\"(?&amp;lt;AFRoute&amp;gt;\w{4,10})\\\""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| rex field=_raw "TargetLoopCnt:(?&amp;lt;TLCnt&amp;gt;\w{1,3})"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;| search AFRoute=$AFRoute_search|s$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; | table _time,id,AFRoute,TLCnt]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| eval StartDTM_epoch = relative_time(_time,"-20m")&lt;/P&gt;&lt;P&gt;| eval EndDTM_epoch = relative_time(_time,"+20m")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| table _time,ENV,sid, id,SEInx,Dura,Target,AFRoute,TLCnt,VResult,ENT_VQ,Priority,StartDTM_epoch,EndDTM_epoch&lt;/P&gt;&lt;P&gt;| sort by id,_time asc&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Feb 2022 17:36:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/586089#M48057</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-02-22T17:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search with a input token not working in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/586098#M48059</link>
      <description>&lt;P&gt;noticed something interesting,&amp;nbsp; when I changed this dropdown selection,&amp;nbsp; the panel using the original token for this TargetType started refreshing, but the panel using this token handler no refreshing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;besides, I have some other search clause , which uses | search&amp;nbsp; fieldname =&amp;nbsp; $tokenname$,&amp;nbsp; why this one uses $tokenhandlername|s$？&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 19:13:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-search-with-a-input-token-not-working-in-dashboard/m-p/586098#M48059</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-02-22T19:13:38Z</dc:date>
    </item>
  </channel>
</rss>

