<?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: Eval varible doesnt work at drilldown xml in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331724#M21506</link>
    <description>&lt;P&gt;Is it related version issue? &lt;BR /&gt;
I am using 7.0 and free version&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2017 13:54:42 GMT</pubDate>
    <dc:creator>kennethyeung</dc:creator>
    <dc:date>2017-12-08T13:54:42Z</dc:date>
    <item>
      <title>Eval varible doesnt work at drilldown xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331721#M21503</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;       &amp;lt;eval token="t_contract"&amp;gt;=strftime(now(), "%y%m")&amp;lt;/eval&amp;gt;
      &amp;lt;link &amp;gt; &amp;lt;![CDATA[
      /app/search/option_change?form.tok_contract=$t_contract$
      ]]&amp;gt;
      &amp;lt;/link&amp;gt;
    &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it will go to anotherview but the link "  /app/search/option_change?form.tok_contract=%3Dstrftime(now()%2C "%25y%25m")&lt;BR /&gt;
seem that it dont know process before pass to link&lt;BR /&gt;
also tried use " to quote in the URL, also not work.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:10:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331721#M21503</guid>
      <dc:creator>kennethyeung</dc:creator>
      <dc:date>2020-09-29T17:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Eval varible doesnt work at drilldown xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331722#M21504</link>
      <description>&lt;P&gt;HI @kennethyeung,&lt;/P&gt;

&lt;P&gt;Can you please try to display &lt;CODE&gt;form.tok_contract&lt;/CODE&gt; value in &lt;CODE&gt;option_change&lt;/CODE&gt; dashboard? It is what you expected?&lt;/P&gt;

&lt;P&gt;just add.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;$form.tok_contract$&amp;lt;/title&amp;gt;
    &amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Dec 2017 09:56:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331722#M21504</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-12-08T09:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Eval varible doesnt work at drilldown xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331723#M21505</link>
      <description>&lt;P&gt;Hi @kennethyeung &lt;/P&gt;

&lt;P&gt;I have tried below drilldown and it's working fine.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;drilldown&amp;gt;
          &amp;lt;eval token="t_contract"&amp;gt;strftime(now(), "%y%m")&amp;lt;/eval&amp;gt;
                 &amp;lt;link &amp;gt; &amp;lt;![CDATA[
       /app/search/test1?form.test1token=$t_contract$
       ]]&amp;gt;
       &amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample dashboard with drilldown working fine, in below dashboard I have another dashboard called &lt;CODE&gt;test1&lt;/CODE&gt; and that dashboard has Text Input field with token name &lt;CODE&gt;test1token&lt;/CODE&gt; so when I redirect to another dashboard I got value &lt;CODE&gt;1712&lt;/CODE&gt; in text input.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;test&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="true" autoRun="false"&amp;gt;
    &amp;lt;input type="multiselect" token="field1" searchWhenChanged="false"&amp;gt;
      &amp;lt;label&amp;gt;field1&amp;lt;/label&amp;gt;
      &amp;lt;choice value="sourcetype"&amp;gt;Sourcetype&amp;lt;/choice&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query/&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;delimiter&amp;gt; &amp;lt;/delimiter&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="multiselect" token="field2"&amp;gt;
      &amp;lt;label&amp;gt;field2&amp;lt;/label&amp;gt;
      &amp;lt;choice value="host"&amp;gt;Host&amp;lt;/choice&amp;gt;
      &amp;lt;delimiter&amp;gt; &amp;lt;/delimiter&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal | stats count by $field1$, $field2$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;eval token="t_contract"&amp;gt;strftime(now(), "%y%m")&amp;lt;/eval&amp;gt;
                 &amp;lt;link &amp;gt; &amp;lt;![CDATA[
       /app/search/test1?form.test1token=$t_contract$
       ]]&amp;gt;
       &amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Dec 2017 10:17:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331723#M21505</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-12-08T10:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Eval varible doesnt work at drilldown xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331724#M21506</link>
      <description>&lt;P&gt;Is it related version issue? &lt;BR /&gt;
I am using 7.0 and free version&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 13:54:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331724#M21506</guid>
      <dc:creator>kennethyeung</dc:creator>
      <dc:date>2017-12-08T13:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Eval varible doesnt work at drilldown xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331725#M21507</link>
      <description>&lt;P&gt;I'm pretty sure the issue is the &lt;CODE&gt;=&lt;/CODE&gt; in your eval statement. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;eval token="t_contract"&amp;gt;=strftime(now(), "%y%m")&amp;lt;/eval&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;
should actually be&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;eval token="t_contract"&amp;gt;strftime(now(), "%y%m")&amp;lt;/eval&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;In the link: &lt;CODE&gt;/app/search/option_change?form.tok_contract=%3Dstrftime(now()%2C "%25y%25m")&lt;/CODE&gt; the &lt;CODE&gt;%3D&lt;/CODE&gt; between &lt;CODE&gt;contract=&lt;/CODE&gt; and &lt;CODE&gt;strftime&lt;/CODE&gt; is ASCII encoding for &lt;CODE&gt;=&lt;/CODE&gt;. &lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 14:01:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331725#M21507</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2017-12-08T14:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Eval varible doesnt work at drilldown xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331726#M21508</link>
      <description>&lt;P&gt;Let me try in Splunk 7, above code was test in Splunk 6.6&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 14:01:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331726#M21508</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-12-08T14:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Eval varible doesnt work at drilldown xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331727#M21509</link>
      <description>&lt;P&gt;Working perfectly fine in Splunk 7.0.1, please check again my drilldown code I have already removed &lt;CODE&gt;=&lt;/CODE&gt;before &lt;CODE&gt;strftime&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 14:17:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331727#M21509</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-12-08T14:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Eval varible doesnt work at drilldown xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331728#M21510</link>
      <description>&lt;P&gt;Thanks, i miss i have more = sign . &lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 15:32:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331728#M21510</guid>
      <dc:creator>kennethyeung</dc:creator>
      <dc:date>2017-12-08T15:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Eval varible doesnt work at drilldown xml</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331729#M21511</link>
      <description>&lt;P&gt;Thanks, i miss i have more = sign . &lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 15:32:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Eval-varible-doesnt-work-at-drilldown-xml/m-p/331729#M21511</guid>
      <dc:creator>kennethyeung</dc:creator>
      <dc:date>2017-12-08T15:32:39Z</dc:date>
    </item>
  </channel>
</rss>

