<?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 to use one token with different evaluation  for 2 panels query under different conditions. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580612#M202275</link>
    <description>&lt;P&gt;Ok, I kinda understand your suggestion.&lt;/P&gt;&lt;P&gt;you meant having this logic developed in input change handler, instead of in each panel's query.&lt;/P&gt;&lt;P&gt;but how to have 2 different handlers with two tokens in one input?&lt;/P&gt;&lt;P&gt;can you show me some sample code here?&amp;nbsp; I am a junior&amp;nbsp; splunker....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jan 2022 14:38:03 GMT</pubDate>
    <dc:creator>wangkevin1029</dc:creator>
    <dc:date>2022-01-11T14:38:03Z</dc:date>
    <item>
      <title>how to use one token with different evaluation  for 2 panels query under different conditions.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580538#M202252</link>
      <description>&lt;P&gt;Hi, Splunkers，&lt;/P&gt;&lt;P&gt;I have a dashboard with 2 panels.&lt;/P&gt;&lt;P&gt;there is one input token,&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Gucid_token,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;what I need is when Gucid_token is any string but not a 1 or 2 digits number, then use it as search string for panle1's query , in this case, this token has nothing to do with panel 2 query.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;panel1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;query&amp;gt;sourcetype="omni:ors:&lt;/SPAN&gt;&lt;SPAN&gt;voice" $Gucid_token$ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Panel2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;query&amp;gt;sourcetype="omni:ors:voice"&amp;nbsp; &amp;nbsp;keyword1 keyword2&amp;nbsp; | search skilllength &amp;gt;1&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;when&amp;nbsp;Gucid_token is a 1 or 2 digits number, then ignore it in panel1's query,&amp;nbsp; but for panel2's query, use this&amp;nbsp;&lt;/P&gt;&lt;P&gt;token to build search like&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;search skilllength &amp;gt; $Gucid_token$&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;panel1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;query&amp;gt;sourcetype="omni:ors:&lt;/SPAN&gt;&lt;SPAN&gt;voice"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Panel2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;query&amp;gt;sourcetype="omni:ors:voice"&amp;nbsp; &amp;nbsp;keyword1 keyword2&amp;nbsp; | search skilllength &amp;gt; $Gucid_token$&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thx in advance.&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, 11 Jan 2022 03:38:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580538#M202252</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-01-11T03:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to use one token with different evaluation  for 2 panels query under different conditions.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580549#M202256</link>
      <description>&lt;P&gt;In the change handler of the input, set up two tokens, one for each panel, based on the evaluation of the input.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 06:29:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580549#M202256</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-11T06:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to use one token with different evaluation  for 2 panels query under different conditions.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580603#M202269</link>
      <description>&lt;P&gt;I need a hidden feature from this input field.&amp;nbsp; that's why I don't want to use 2 inputs for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 13:50:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580603#M202269</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-01-11T13:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to use one token with different evaluation  for 2 panels query under different conditions.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580606#M202272</link>
      <description>&lt;P&gt;You are not understanding what I am saying. In the change handler for the input, you can set multiple tokens. You still have one input and the hidden feature is that more than one token is set up when the input changes.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 14:07:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580606#M202272</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-11T14:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to use one token with different evaluation  for 2 panels query under different conditions.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580612#M202275</link>
      <description>&lt;P&gt;Ok, I kinda understand your suggestion.&lt;/P&gt;&lt;P&gt;you meant having this logic developed in input change handler, instead of in each panel's query.&lt;/P&gt;&lt;P&gt;but how to have 2 different handlers with two tokens in one input?&lt;/P&gt;&lt;P&gt;can you show me some sample code here?&amp;nbsp; I am a junior&amp;nbsp; splunker....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 14:38:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580612#M202275</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-01-11T14:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to use one token with different evaluation  for 2 panels query under different conditions.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580628#M202278</link>
      <description>&lt;LI-CODE lang="markup"&gt;    &amp;lt;input type="text" token="Gucid_token"&amp;gt;
      &amp;lt;label&amp;gt;$Gucid_token$ - Panel 1 token: $panel1_token$ - Panel 2 token: $panel2_token$&amp;lt;/label&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;eval token="panel1_token"&amp;gt;if(match(value, "^[0-9][0-9]?$"),"", value)&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="panel2_token"&amp;gt;if(match(value, "^[0-9][0-9]?$"),value, 1)&amp;lt;/eval&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 11 Jan 2022 15:34:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580628#M202278</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-11T15:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to use one token with different evaluation  for 2 panels query under different conditions.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580643#M202282</link>
      <description>&lt;P&gt;thank you very much, I will give a try.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 16:20:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580643#M202282</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-01-11T16:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to use one token with different evaluation  for 2 panels query under different conditions.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580652#M202284</link>
      <description>&lt;P&gt;thank you very much, works amazingly....&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 17:06:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580652#M202284</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-01-11T17:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to use one token with different evaluation  for 2 panels query under different conditions.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580665#M202290</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Hi,&amp;nbsp;ITWhisperer,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;since my original token name is&amp;nbsp;Gucid_token, so, I still keep it for&amp;nbsp; panel 1 query,&amp;nbsp; in this way I don't have to change any other original code related to&amp;nbsp;Gucid_token.&lt;/P&gt;&lt;P&gt;but then I noticed some drilldown click stop working, which tries to open the same dashboard.&lt;/P&gt;&lt;P&gt;why this&amp;nbsp; &amp;nbsp;form.Gucid_token=$click.value2$&amp;nbsp; to pass cell value to open the same dashboard stop working?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached the full open link at the bottom.&lt;/P&gt;&lt;P&gt;&amp;lt;input type="text" token="Gucid_token_with2handlers" 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;Gucid/UUID/SID&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="Gucid_token"&amp;gt;if(match(value, "^[0-9][0-9]?$"),"", value)&amp;lt;/eval&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="skillexpressionLength"&amp;gt;if(match(value, "^[0-9][0-9]?$"),value, 0)&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;default&amp;gt;&amp;lt;/default&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/input&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;drilldown&amp;gt;&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;lt;link target="_blank"&amp;gt;/abcabc/guciduuidsid_search_applied_rules_with_ors_log_kvp?form.Gucid_token=$click.value2$&amp;lt;/link&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/drilldown&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kevin&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Jan 2022 18:12:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580665#M202290</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-01-11T18:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to use one token with different evaluation  for 2 panels query under different conditions.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580666#M202291</link>
      <description>&lt;P&gt;BTW，&amp;nbsp; I clicked the same cell I always clicked..&amp;nbsp; so, the value is a valid value for panel query 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 18:14:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580666#M202291</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-01-11T18:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to use one token with different evaluation  for 2 panels query under different conditions.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580668#M202292</link>
      <description>&lt;P&gt;Besides,&amp;nbsp; my drilldown click is to open two dashboards, one is itself, the other one different dashboard,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;different dashboard got the passed cellvalue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 18:28:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580668#M202292</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-01-11T18:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to use one token with different evaluation  for 2 panels query under different conditions.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580671#M202293</link>
      <description>&lt;P&gt;You changed the name of the input form token - try the drilldown like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;link target="_blank"&amp;gt;/abcabc/guciduuidsid_search_applied_rules_with_ors_log_kvp?form.Gucid_token_with2handlers=$click.value2$&amp;lt;/link&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 11 Jan 2022 18:34:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580671#M202293</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-11T18:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to use one token with different evaluation  for 2 panels query under different conditions.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580677#M202294</link>
      <description>&lt;P&gt;it works, makes perfect sense....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;one it global variable, the other two are local variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 18:56:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-use-one-token-with-different-evaluation-for-2-panels/m-p/580677#M202294</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2022-01-11T18:56:34Z</dc:date>
    </item>
  </channel>
</rss>

