<?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 What is wrong with my eval for this token? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-is-wrong-with-my-eval-for-this-token/m-p/431425#M123317</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have this eval for a token but it doesn't ever seem to get set, what am I missing?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;eval token="showapppages"&amp;gt;case($click.value$ == "Overview Page",0, $click.value$ == "Rules Page",1, $click.value$ == "History Page",2, $click.value$ == "Settings Page",3, $click.value$ == "Camera Page",4, $click.value$ == "Paring (Manage Devices) Page",5, $click.value$ == "Third-Party Card Page",6, $click.value$ == "Cloud Page",7, $click.value$ == "Custom Page",8, 1=1) &amp;lt;/eval&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 19 Oct 2018 20:19:28 GMT</pubDate>
    <dc:creator>dbcase</dc:creator>
    <dc:date>2018-10-19T20:19:28Z</dc:date>
    <item>
      <title>What is wrong with my eval for this token?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-wrong-with-my-eval-for-this-token/m-p/431425#M123317</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have this eval for a token but it doesn't ever seem to get set, what am I missing?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;eval token="showapppages"&amp;gt;case($click.value$ == "Overview Page",0, $click.value$ == "Rules Page",1, $click.value$ == "History Page",2, $click.value$ == "Settings Page",3, $click.value$ == "Camera Page",4, $click.value$ == "Paring (Manage Devices) Page",5, $click.value$ == "Third-Party Card Page",6, $click.value$ == "Cloud Page",7, $click.value$ == "Custom Page",8, 1=1) &amp;lt;/eval&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Oct 2018 20:19:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-wrong-with-my-eval-for-this-token/m-p/431425#M123317</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2018-10-19T20:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with my eval for this token?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-wrong-with-my-eval-for-this-token/m-p/431426#M123318</link>
      <description>&lt;P&gt;when you try to compare the value add double quotes. &lt;/P&gt;

&lt;P&gt;$click.value$ as "$click.value$"&lt;/P&gt;

&lt;P&gt;so,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;case("$click.value$" == "Overview Page",0, "$click.value$" == "Rules Page",1, "$click.value$" == "History Page",2, "$click.value$" == "Settings Page",3, "$click.value$" == "Camera Page",4, "$click.value$" == "Paring (Manage Devices) Page",5, "$click.value$" == "Third-Party Card Page",6, "$click.value$" == "Cloud Page",7, "$click.value$" == "Custom Page",8, 1=1) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;would help&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 20:26:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-wrong-with-my-eval-for-this-token/m-p/431426#M123318</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2018-10-19T20:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with my eval for this token?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-wrong-with-my-eval-for-this-token/m-p/431427#M123319</link>
      <description>&lt;P&gt;Hi Vasanthmss,&lt;/P&gt;

&lt;P&gt;Thanks!  I was really hopeful it was that simple but alas.... no luck.&lt;/P&gt;

&lt;P&gt;Maybe additional info would help.  Here is the query and drilldown&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;index=wholesale_app buildTarget=$mso_selection$ product=$Product_token$ Activity Properties.index=5  |convert num(Properties.args{}) as activityvalue|eval activitytype=case(activityvalue == "0", "Overview Page", activityvalue == "1", "Rules Page", activityvalue == "2", "History Page",activityvalue == "3", "Settings Page",activityvalue == "4", "Camera Page",activityvalue == "5", "Paring (Manage Devices) Page",activityvalue == "6", "Third-Party Card Page",activityvalue == "7", "Cloud Page",activityvalue == "8", "Custom Page")|stats count by activitytype|sort -count| appendpipe [stats count | where count=0]|rename activitytype as Page count as Count&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$time_field.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$time_field.latest$&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;






        &amp;lt;/search&amp;gt;
           &amp;lt;drilldown&amp;gt;

          &amp;lt;set token="showapppagespanel"&amp;gt;y&amp;lt;/set&amp;gt;
          &amp;lt;eval token="showapppages"&amp;gt;case("$click.value$" == "Overview Page",0, "$click.value$" == "Rules Page",1, "$click.value$" == "History Page",2, "$click.value$" == "Settings Page",3, "$click.value$" == "Camera Page",4, "$click.value$" == "Paring (Manage Devices) Page",5, "$click.value$" == "Third-Party Card Page",6, "$click.value$" == "Cloud Page",7, "$click.value$" == "Custom Page",8, 1=1) &amp;lt;/eval&amp;gt;
          &amp;lt;unset token="showlogins"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Oct 2018 20:41:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-wrong-with-my-eval-for-this-token/m-p/431427#M123319</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2018-10-19T20:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with my eval for this token?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-wrong-with-my-eval-for-this-token/m-p/431428#M123320</link>
      <description>&lt;P&gt;what error you are getting? are you using table / chart? &lt;/P&gt;

&lt;P&gt;does "click.value" populating? &lt;/P&gt;

&lt;P&gt;refer: &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.0/Viz/DrilldownIntro"&gt;http://docs.splunk.com/Documentation/Splunk/7.2.0/Viz/DrilldownIntro&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.0/Viz/PanelreferenceforSimplifiedXML#Predefined_drilldown_tokens"&gt;http://docs.splunk.com/Documentation/Splunk/7.2.0/Viz/PanelreferenceforSimplifiedXML#Predefined_drilldown_tokens&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;add the token in the panel title to check its populating correctly. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;" &amp;lt; panel &amp;gt; &amp;lt;title&amp;gt;$click.value$&amp;lt;/title&amp;gt;"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Oct 2018 20:52:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-wrong-with-my-eval-for-this-token/m-p/431428#M123320</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2018-10-19T20:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with my eval for this token?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-wrong-with-my-eval-for-this-token/m-p/431429#M123321</link>
      <description>&lt;P&gt;Hi Vasanthmss!&lt;/P&gt;

&lt;P&gt;The only "error" that I'm getting in the panel is "Search is waiting for input".  Which typically tells me that the token never gets set.  I'll try the panel trick.  Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 13:49:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-wrong-with-my-eval-for-this-token/m-p/431429#M123321</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2018-10-22T13:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with my eval for this token?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-is-wrong-with-my-eval-for-this-token/m-p/431430#M123322</link>
      <description>&lt;P&gt;Any luck? &lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 23:10:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-is-wrong-with-my-eval-for-this-token/m-p/431430#M123322</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2018-10-29T23:10:21Z</dc:date>
    </item>
  </channel>
</rss>

