<?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: Token eval Question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Token-eval-Question/m-p/552064#M156669</link>
    <description>&lt;P&gt;This worked in the XML.&amp;nbsp; Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 18 May 2021 14:43:27 GMT</pubDate>
    <dc:creator>timm7474</dc:creator>
    <dc:date>2021-05-18T14:43:27Z</dc:date>
    <item>
      <title>Token eval Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Token-eval-Question/m-p/551924#M156620</link>
      <description>&lt;P&gt;I'm trying to check the value of a token and if it is equal to "X" change it to an * but if it is equal to anything else, leave the token alone.&amp;nbsp; I'm trying something like this but not sure it is possible.&lt;/P&gt;&lt;P&gt;&amp;lt;drilldown&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;eval token='my_token'&amp;gt; if("X", "*", $my_token$)&amp;lt;/eval&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;link target="_blank"&amp;gt;search?q= my search...my_field=$my_token$.....blah blah blah...&amp;nbsp; &amp;lt;/link&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/drilldown&amp;gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 21:01:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Token-eval-Question/m-p/551924#M156620</guid>
      <dc:creator>timm7474</dc:creator>
      <dc:date>2021-05-17T21:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Token eval Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Token-eval-Question/m-p/551925#M156621</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;drilldown&amp;gt;
&amp;lt;eval token="my_token"&amp;gt; if($my_token$="X", "*", $my_token$)&amp;lt;/eval&amp;gt;
&amp;lt;link target="_blank"&amp;gt;search?q= my search...my_field=$my_token$.....blah blah blah...  &amp;lt;/link&amp;gt;
&amp;lt;/drilldown&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 May 2021 21:11:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Token-eval-Question/m-p/551925#M156621</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-17T21:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Token eval Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Token-eval-Question/m-p/551928#M156622</link>
      <description>&lt;P&gt;Thanks for the quick reply, still no luck.&amp;nbsp; To add a bit more context, I am using click.name2 to grab column names to use in my search.&amp;nbsp; But when click.name2 is equal to the far right column name, I want to change the token to * since that name is a label for that column and not an actual searchable column name like the rest of the columns (if that makes sense).&amp;nbsp; I'm also using an eval in the search to get the column names and I tried adding this eval to the bottom under the search before the &amp;lt;/drilldown&amp;gt; with still no luck.&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 21:47:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Token-eval-Question/m-p/551928#M156622</guid>
      <dc:creator>timm7474</dc:creator>
      <dc:date>2021-05-17T21:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Token eval Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Token-eval-Question/m-p/551932#M156623</link>
      <description>&lt;P&gt;So are you doing something like this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;drilldown&amp;gt;
  &amp;lt;eval token="my_token"&amp;gt;if($click.name2$="last","*",$click.name2$)&amp;lt;/eval&amp;gt;
  &amp;lt;link target="_blank"&amp;gt;search?q= my search...my_field=$my_token|u$.....blah blah blah...  &amp;lt;/link&amp;gt;
&amp;lt;/drilldown&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 May 2021 22:18:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Token-eval-Question/m-p/551932#M156623</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-17T22:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Token eval Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Token-eval-Question/m-p/552064#M156669</link>
      <description>&lt;P&gt;This worked in the XML.&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 14:43:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Token-eval-Question/m-p/552064#M156669</guid>
      <dc:creator>timm7474</dc:creator>
      <dc:date>2021-05-18T14:43:27Z</dc:date>
    </item>
  </channel>
</rss>

