<?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: Simple XML - Token inside eval if in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Simple-XML-Token-inside-eval-if/m-p/462356#M130340</link>
    <description>&lt;P&gt;If I understand you correctly, you're trying to pass the value of a token on dashboardA as a GET argument in the URL string of dashboardB, correct?&lt;/P&gt;

&lt;P&gt;If so, edit the drilldown targets like this:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="drilldown editor screenshot"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7835i5E2DBDDFC525921D/image-size/large?v=v2&amp;amp;px=999" role="button" title="drilldown editor screenshot" alt="drilldown editor screenshot" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Of course, this presumes dashboardB can do something with URL parameters &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 12:46:39 GMT</pubDate>
    <dc:creator>wmyersas</dc:creator>
    <dc:date>2019-10-17T12:46:39Z</dc:date>
    <item>
      <title>Simple XML - Token inside eval if</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-XML-Token-inside-eval-if/m-p/462355#M130339</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have an eval if condition in my dashboard for my drilldown:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;eval token="query"&amp;gt;if('category'=="Total",  "search ageGroup=*", where ageGroup='group_token')&amp;lt;/eval&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I pass this line of search to a query on another dashboard. If the user clicks on 'Total' on the table, it will search everything for all age groups. If the user clicks on a particular age group, it will need to search the ageGroup  in $group_token$.&lt;/P&gt;

&lt;P&gt;This isn't working fine. How do I pass group_token to the search string to the other dashboard? &lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 08:04:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-XML-Token-inside-eval-if/m-p/462355#M130339</guid>
      <dc:creator>dojiepreji</dc:creator>
      <dc:date>2019-10-17T08:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Simple XML - Token inside eval if</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-XML-Token-inside-eval-if/m-p/462356#M130340</link>
      <description>&lt;P&gt;If I understand you correctly, you're trying to pass the value of a token on dashboardA as a GET argument in the URL string of dashboardB, correct?&lt;/P&gt;

&lt;P&gt;If so, edit the drilldown targets like this:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="drilldown editor screenshot"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7835i5E2DBDDFC525921D/image-size/large?v=v2&amp;amp;px=999" role="button" title="drilldown editor screenshot" alt="drilldown editor screenshot" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Of course, this presumes dashboardB can do something with URL parameters &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 12:46:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-XML-Token-inside-eval-if/m-p/462356#M130340</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2019-10-17T12:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Simple XML - Token inside eval if</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-XML-Token-inside-eval-if/m-p/462357#M130341</link>
      <description>&lt;P&gt;Don't do it this way.  Assuming that your table events have a field called &lt;CODE&gt;ageGroup&lt;/CODE&gt;, create a field called &lt;CODE&gt;_group_token&lt;/CODE&gt; by adding this to the end of your existing search: &lt;CODE&gt;| eval _group_token = coalesce(ageGroup, "*")&lt;/CODE&gt; (assuming that your &lt;CODE&gt;Total&lt;/CODE&gt; field does not have a value for &lt;CODE&gt;ageGroup&lt;/CODE&gt;).  Then use standard drilldown with &lt;CODE&gt;... ageGroup = $click._group_token&lt;/CODE&gt;.  Check out the &lt;CODE&gt;Dashboard Examples&lt;/CODE&gt; app for drilldown details.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 14:17:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-XML-Token-inside-eval-if/m-p/462357#M130341</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-10-17T14:17:30Z</dc:date>
    </item>
  </channel>
</rss>

