<?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: 3rd Token handler doesn't work with 1st and 2nd token handler together. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/3rd-Token-handler-doesn-t-work-with-1st-and-2nd-token-handler/m-p/627818#M218130</link>
    <description>&lt;P&gt;thank you very much , ITWhisperer,&lt;/P&gt;&lt;P&gt;your whisper always works great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 19:14:38 GMT</pubDate>
    <dc:creator>wangkevin1029</dc:creator>
    <dc:date>2023-01-20T19:14:38Z</dc:date>
    <item>
      <title>3rd Token handler doesn't work with 1st and 2nd token handler together?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/3rd-Token-handler-doesn-t-work-with-1st-and-2nd-token-handler/m-p/627803#M218127</link>
      <description>&lt;P&gt;Hi, Splunkers,&lt;/P&gt;
&lt;P&gt;I have the following token handler,&amp;nbsp; &amp;nbsp;if input "Gucid_token_with3handlers" is 2 digits number, it will return as token skillexpressionLength,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if it's not 2 digits number will return itself as token&amp;nbsp;Gucid_token, which works fine.&lt;/P&gt;
&lt;P&gt;now I want to add handler 3,&amp;nbsp; if 1st 3 characters are VQ_,&amp;nbsp; &amp;nbsp;I want it to return itself as token&amp;nbsp;Gucid_token_VQ, otherwise, it return as&amp;nbsp;Gucid_token_VQ&amp;nbsp; with value *&lt;/P&gt;
&lt;P&gt;but it looks handler 3 is conflicting with handler 1.&lt;/P&gt;
&lt;P&gt;so my question is how to define the 3rd token handler to have it work together 1st and 2nd token handlers without conflict?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the following is the input token definition with 3 token handlers.&lt;/P&gt;
&lt;P&gt;&amp;lt;input type="text" token="Gucid_token_with3handlers" searchWhenChanged="true"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Gucid/UUID/SID&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;change&amp;gt;&lt;BR /&gt;&amp;lt;eval token="Gucid_token"&amp;gt; if(match(value, "^[0-9][0-9]?$"),"", value)&amp;lt;/eval&amp;gt;&lt;BR /&gt;&amp;lt;eval token="skillexpressionLength"&amp;gt;if(match(value, "^[0-9][0-9]?$"),value, 0)&amp;lt;/eval&amp;gt;&lt;BR /&gt;&amp;lt;eval token="Gucid_token_VQ"&amp;gt;if(substr(value,1,3)=="VQ_"),value, *)&amp;lt;/eval&amp;gt;&lt;BR /&gt;&amp;lt;/change&amp;gt;&lt;BR /&gt;&amp;lt;default&amp;gt;&amp;lt;/default&amp;gt;&lt;BR /&gt;&amp;lt;/input&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then I used the following search&amp;nbsp; clause with&amp;nbsp; $Gucid_token_VQ$&lt;/P&gt;
&lt;P&gt;| search VQ = $Gucid_token_VQ$&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then this search panel showing :&amp;nbsp; &amp;nbsp;search is waiting for input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thx in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 15:48:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/3rd-Token-handler-doesn-t-work-with-1st-and-2nd-token-handler/m-p/627803#M218127</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2023-01-23T15:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd Token handler doesn't work with 1st and 2nd token handler together.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/3rd-Token-handler-doesn-t-work-with-1st-and-2nd-token-handler/m-p/627810#M218128</link>
      <description>&lt;P&gt;You had an extra closing bracket and you need to put the * in quotes&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;eval token="Gucid_token_VQ"&amp;gt;if(substr(value,1,3)=="VQ_",value, "*")&amp;lt;/eval&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 20 Jan 2023 18:45:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/3rd-Token-handler-doesn-t-work-with-1st-and-2nd-token-handler/m-p/627810#M218128</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-20T18:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd Token handler doesn't work with 1st and 2nd token handler together.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/3rd-Token-handler-doesn-t-work-with-1st-and-2nd-token-handler/m-p/627818#M218130</link>
      <description>&lt;P&gt;thank you very much , ITWhisperer,&lt;/P&gt;&lt;P&gt;your whisper always works great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 19:14:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/3rd-Token-handler-doesn-t-work-with-1st-and-2nd-token-handler/m-p/627818#M218130</guid>
      <dc:creator>wangkevin1029</dc:creator>
      <dc:date>2023-01-20T19:14:38Z</dc:date>
    </item>
  </channel>
</rss>

