<?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: DrillDown $row.LastQuery$ is not replaced by the clicked row in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/DrillDown-row-LastQuery-is-not-replaced-by-the-clicked-row/m-p/67798#M3598</link>
    <description>&lt;P&gt;It worked. &lt;BR /&gt;
Thanks,&lt;BR /&gt;
Lp&lt;/P&gt;</description>
    <pubDate>Fri, 22 Mar 2013 11:40:20 GMT</pubDate>
    <dc:creator>lpolo</dc:creator>
    <dc:date>2013-03-22T11:40:20Z</dc:date>
    <item>
      <title>DrillDown $row.LastQuery$ is not replaced by the clicked row</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/DrillDown-row-LastQuery-is-not-replaced-by-the-clicked-row/m-p/67796#M3596</link>
      <description>&lt;P&gt;I have the panel presented below that is doing the drill down. However, the variable I want to pass to the drill search "$row.LastQuery$" is not being updated. Also, splunk UI modifies the search by adding at the end of my search "|search Date="03/19/2013". The value of Date seems to be the period of the first search. How can I fix the panel so the variable is correctly replaced and the search is not modified ?&lt;/P&gt;

&lt;P&gt;&amp;lt;module name="HiddenSearch" layoutPanel="panel_row5_col3" autoRun="True"&amp;gt;&lt;BR /&gt;
   &amp;lt;param name="search"&amp;gt;earliest=-1d@d latest=@d splunk_server=io-splunk-03.example.com index="si_top_n" Sampling_Rate=Daily NOT TotalSearches AND rank|sort + rank|eval Date=strftime(_time, "%m/%d/%Y") |table Date rank LastQuery count percent&amp;lt;/param&amp;gt;&lt;BR /&gt;
   &amp;lt;param name="groupLabel"&amp;gt;Top N - Yesterday&amp;lt;/param&amp;gt;&lt;BR /&gt;
   &amp;lt;module name="StaticContentSample"&amp;gt;&lt;BR /&gt;
      &amp;lt;param name="text"&amp;gt;&amp;lt;![CDATA[&amp;lt;H1&amp;gt;Top N Searches - Yesterday&amp;lt;/H1&amp;gt;]]&amp;gt;&amp;lt;/param&amp;gt;&lt;BR /&gt;
   &amp;lt;/module&amp;gt;&lt;BR /&gt;
   &amp;lt;module name="Paginator"&amp;gt;&lt;BR /&gt;
      &amp;lt;param name="entityName"&amp;gt;results&amp;lt;/param&amp;gt;&lt;BR /&gt;
      &amp;lt;param name="maxPages"&amp;gt;20&amp;lt;/param&amp;gt;&lt;BR /&gt;
      &amp;lt;param name="count"&amp;gt;10&amp;lt;/param&amp;gt;&lt;BR /&gt;
      &amp;lt;module name="SimpleResultsTable"&amp;gt;&lt;BR /&gt;
         &amp;lt;param name="drilldown"&amp;gt;row&amp;lt;/param&amp;gt;&lt;BR /&gt;
         &amp;lt;module name="HiddenSearch"&amp;gt;&lt;BR /&gt;
            &amp;lt;param name="search"&amp;gt;earliest=-31d@d latest=@d  splunk_server=io-splunk-03.example.com index="si_top_n" Sampling_Rate=Daily NOT TotalSearches AND rank AND LastQuery="$row.LastQuery$"|sort + rank|eval Date=strftime(_time, "%m/%d/%Y") |table Date rank LastQuery count percent&amp;lt;/param&amp;gt;&lt;BR /&gt;
            &amp;lt;module name="ConvertToDrilldownSearch"&amp;gt;&lt;BR /&gt;
               &amp;lt;module name="JobProgressIndicator" /&amp;gt;&lt;BR /&gt;
               &amp;lt;module name="SimpleResultsHeader"&amp;gt;&lt;BR /&gt;
                  &amp;lt;param name="headerFormat"&amp;gt;Velocity&amp;lt;/param&amp;gt;&lt;BR /&gt;
                  &amp;lt;param name="entityName"&amp;gt;events&amp;lt;/param&amp;gt;&lt;BR /&gt;
               &amp;lt;/module&amp;gt;&lt;BR /&gt;
               &amp;lt;module name="Paginator"&amp;gt;&lt;BR /&gt;
                  &amp;lt;param name="entityName"&amp;gt;events&amp;lt;/param&amp;gt;&lt;BR /&gt;
                  &amp;lt;param name="maxPages"&amp;gt;10&amp;lt;/param&amp;gt;&lt;BR /&gt;
                  &amp;lt;module name="SimpleResultsTable"&amp;gt;&lt;BR /&gt;
                     &amp;lt;param name="entityName"&amp;gt;results&amp;lt;/param&amp;gt;&lt;BR /&gt;
                     &amp;lt;param name="displayRowNumbers"&amp;gt;False&amp;lt;/param&amp;gt;&lt;BR /&gt;
                     &amp;lt;param name="drilldown"&amp;gt;none&amp;lt;/param&amp;gt;&lt;BR /&gt;
                     &amp;lt;module name="ConvertToDrilldownSearch"&amp;gt;&lt;BR /&gt;
                        &amp;lt;module name="ViewRedirector"&amp;gt;&lt;BR /&gt;
                           &amp;lt;param name="viewTarget"&amp;gt;flashtimeline&amp;lt;/param&amp;gt;&lt;BR /&gt;
                        &amp;lt;/module&amp;gt;&lt;BR /&gt;
                     &amp;lt;/module&amp;gt;&lt;BR /&gt;
                  &amp;lt;/module&amp;gt;&lt;BR /&gt;
               &amp;lt;/module&amp;gt;&lt;BR /&gt;
            &amp;lt;/module&amp;gt;&lt;BR /&gt;
         &amp;lt;/module&amp;gt;&lt;BR /&gt;
      &amp;lt;/module&amp;gt;&lt;BR /&gt;
   &amp;lt;/module&amp;gt;&lt;BR /&gt;
&amp;lt;/module&amp;gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Lp&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:33:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/DrillDown-row-LastQuery-is-not-replaced-by-the-clicked-row/m-p/67796#M3596</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2020-09-28T13:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: DrillDown $row.LastQuery$ is not replaced by the clicked row</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/DrillDown-row-LastQuery-is-not-replaced-by-the-clicked-row/m-p/67797#M3597</link>
      <description>&lt;P&gt;ConvertToDrilldownSearch just does this weird automatic drilldown logic, where it'll take the value from the first column,  and try and add it as a searchterm.   In this case though, you want to add specifically the 'LastQuery' value, and to a specific place in the search.   For that you'll need to replace ConvertToDrilldownSearch with a ConvertToIntention module and you'll need to get the extremely finicky syntax right for the stringreplace intention to work.  &lt;/P&gt;

&lt;P&gt;Also I'm not sure how in the core systems you specify that you want a particular field value to be used from the drilldown, rather than just specifying $click.value$ as the value of the first row.   I'm actually not sure you can, at least I think you need some other module to be involved somehow. &lt;/P&gt;

&lt;P&gt;With Sideview Utils the drilldown is quite easy,  and actually the whole config becomes a lot simpler in a lot of ways.   Here's a converted view with the same functionality but with no intentions to ever think about and with less XML. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="Search" layoutPanel="panel_row5_col3" autoRun="True"&amp;gt;
  &amp;lt;param name="search"&amp;gt;splunk_server=io-splunk-03.example.com index="si_top_n" Sampling_Rate=Daily NOT TotalSearches AND rank|sort + rank|eval Date=strftime(_time, "%m/%d/%Y") |table Date rank LastQuery count percent&amp;lt;/param&amp;gt;
  &amp;lt;param name="earliest"&amp;gt;-1d@d&amp;lt;/param&amp;gt;
  &amp;lt;param name="latest"&amp;gt;@d&amp;lt;/param&amp;gt; 
  &amp;lt;module name="HTML"&amp;gt;
    &amp;lt;param name="html"&amp;gt;&amp;lt;![CDATA[&amp;lt;H1&amp;gt;Top N Searches - Yesterday&amp;lt;/H1&amp;gt;]]&amp;gt;&amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;
  &amp;lt;module name="Pager"&amp;gt;
    &amp;lt;module name="Table"&amp;gt;
      &amp;lt;module name="Search"&amp;gt;
        &amp;lt;param name="search"&amp;gt;earliest=-31d@d latest=@d  splunk_server=io-splunk-03.example.com index="si_top_n" Sampling_Rate=Daily NOT TotalSearches AND rank AND LastQuery="$row.fields.LastQuery$"|sort + rank|eval Date=strftime(_time, "%m/%d/%Y") |table Date rank LastQuery count percent&amp;lt;/param&amp;gt;
        &amp;lt;module name="JobProgressIndicator" /&amp;gt;
        &amp;lt;module name="SimpleResultsHeader"&amp;gt;
          &amp;lt;param name="headerFormat"&amp;gt;Velocity&amp;lt;/param&amp;gt;
          &amp;lt;param name="entityName"&amp;gt;results&amp;lt;/param&amp;gt;
        &amp;lt;/module&amp;gt;
        &amp;lt;module name="Pager"&amp;gt;
          &amp;lt;module name="Table"&amp;gt;&amp;lt;/module&amp;gt;
        &amp;lt;/module&amp;gt;
      &amp;lt;/module&amp;gt;
    &amp;lt;/module&amp;gt;
  &amp;lt;/module&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;While I was converting it,  I noticed a couple things that I fixed. &lt;/P&gt;

&lt;P&gt;-- you had config to redirect to flashtimeline on the last table, but it was turned off via the &lt;CODE&gt;&amp;lt;param name="drilldown"&amp;gt;none&amp;lt;/param&amp;gt;&lt;/CODE&gt;   Since it was disabled I just deleted this. &lt;BR /&gt;
-- you had your paginator and your SimpleResultsTable configured to display events, but on a search that was actually getting 'results'.  This is a weird point but it might have been causing some confusion.   I just left Pager and Table set to the defaults which will work fine here. &lt;/P&gt;

&lt;P&gt;Note that you should get the latest Sideview Utils (2.4.3) from the sideview site at &lt;A href="http://sideviewapps.com/apps/sideview-utils/"&gt;http://sideviewapps.com/apps/sideview-utils/&lt;/A&gt;  rather than the version on Splunkbase which is out-of-date (1.3.5). &lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2013 17:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/DrillDown-row-LastQuery-is-not-replaced-by-the-clicked-row/m-p/67797#M3597</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-03-21T17:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: DrillDown $row.LastQuery$ is not replaced by the clicked row</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/DrillDown-row-LastQuery-is-not-replaced-by-the-clicked-row/m-p/67798#M3598</link>
      <description>&lt;P&gt;It worked. &lt;BR /&gt;
Thanks,&lt;BR /&gt;
Lp&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2013 11:40:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/DrillDown-row-LastQuery-is-not-replaced-by-the-clicked-row/m-p/67798#M3598</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2013-03-22T11:40:20Z</dc:date>
    </item>
  </channel>
</rss>

