<?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: Cell drilldown sending null in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cell-drilldown-sending-null/m-p/59867#M3135</link>
    <description>&lt;P&gt;Well,   '$click.value$' is always the cell value from the first column.      &lt;/P&gt;

&lt;P&gt;Assuming you have a search like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;chart avg(duration) over user by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and you click on a cell within a table configured with 'cell' drilldown, here's the full description of the keys available downstream:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$click.name$   -- the name of the first column (ie host)
$click.value$  -- the value of the first column, in the row you clicked upon. (bob)
$click.name2$  -- the name of the column clicked upon  (ie host172)
$click.value2$ -- the string value of the cell clicked  upon (ie 95.42)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So perhaps the first column of this table for some reason is actually blank?   that's the only thing I can think of.    Or maybe it's _time because _time values from chart/table drilldown cannot be used in stringreplace intentions  (obscure but known limitation of custom drilldown wiring). &lt;/P&gt;</description>
    <pubDate>Wed, 29 Sep 2010 03:09:32 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2010-09-29T03:09:32Z</dc:date>
    <item>
      <title>Cell drilldown sending null</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cell-drilldown-sending-null/m-p/59866#M3134</link>
      <description>&lt;P&gt;I was reading the docs here&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.1.4/user/UnderstandTableandChartDrilldownActions" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1.4/user/UnderstandTableandChartDrilldownActions&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;and trying to get cell drilldown to work, but not having much luck. I set the value of drilldown to "all" and to "cell" but in either case, the search that is created places "null" in the stringreplace'd search.&lt;/P&gt;

&lt;P&gt;Here's the advanced xml I have so far.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;          &amp;lt;module name="SimpleResultsTable" layoutPanel="panel_row1_col1"&amp;gt;
            &amp;lt;param name="drilldown"&amp;gt;cell&amp;lt;/param&amp;gt;
            &amp;lt;param name="displayRowNumbers"&amp;gt;False&amp;lt;/param&amp;gt;
            &amp;lt;module name="HiddenSearch" layoutPanel="panel_row1_col2"&amp;gt;
              &amp;lt;param name="search"&amp;gt;Successful NOT 172.16.12.* (sourceNetworkAddress != "-" AND sourceNetworkAddress != "127.0.0.1") | lookup dnsLookup ip AS sourceNetworkAddress OUTPUTNEW host AS hostname | stats values(username) as Users by sourceNetworkAddress, hostname | sort -Users | search hostname="$hostname$" | mvexpand Users | table Users&amp;lt;/param&amp;gt;
              &amp;lt;module name="ConvertToIntention"&amp;gt;
                &amp;lt;param name="intention"&amp;gt;
                  &amp;lt;param name="name"&amp;gt;stringreplace&amp;lt;/param&amp;gt;
                  &amp;lt;param name="arg"&amp;gt;
                    &amp;lt;param name="hostname"&amp;gt;
                      &amp;lt;param name="value"&amp;gt;$click.value$&amp;lt;/param&amp;gt;
                    &amp;lt;/param&amp;gt;
                  &amp;lt;/param&amp;gt;
                &amp;lt;/param&amp;gt;
                &amp;lt;module name="SimpleResultsTable" layoutPanel="panel_row1_col2"/&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;When I look at the job that is fired off though, I see this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;...| sort -Users | search hostname="null" | mvexpand Users |...&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Scratching my head trying to figure out how I can get the clicked value into my intention.&lt;/P&gt;

&lt;P&gt;The output from the hidden search above it is a table looks like this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;sourceNetworkAddress    hostname    dcUserCnt&lt;/P&gt;

&lt;P&gt;172.16.12.234   host3.site.org  2&lt;/P&gt;

&lt;P&gt;172.16.12.204   host2.site.org  1&lt;/P&gt;

&lt;P&gt;172.16.12.205   host1.site.org  1&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;And is created with the hidden search &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;param name="search"&amp;gt;Successful NOT 172.16.12.* (sourceNetworkAddress != "-" AND sourceNetworkAddress != "127.0.0.1") | lookup dnsLookup ip AS sourceNetworkAddress OUTPUTNEW host AS hostname | stats dc(username) as dcUserCnt by sourceNetworkAddress, hostname | sort -dcUserCnt | search hostname="$hostname$"&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Sep 2010 02:38:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cell-drilldown-sending-null/m-p/59866#M3134</guid>
      <dc:creator>caphrim007</dc:creator>
      <dc:date>2010-09-29T02:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cell drilldown sending null</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cell-drilldown-sending-null/m-p/59867#M3135</link>
      <description>&lt;P&gt;Well,   '$click.value$' is always the cell value from the first column.      &lt;/P&gt;

&lt;P&gt;Assuming you have a search like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;chart avg(duration) over user by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and you click on a cell within a table configured with 'cell' drilldown, here's the full description of the keys available downstream:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$click.name$   -- the name of the first column (ie host)
$click.value$  -- the value of the first column, in the row you clicked upon. (bob)
$click.name2$  -- the name of the column clicked upon  (ie host172)
$click.value2$ -- the string value of the cell clicked  upon (ie 95.42)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So perhaps the first column of this table for some reason is actually blank?   that's the only thing I can think of.    Or maybe it's _time because _time values from chart/table drilldown cannot be used in stringreplace intentions  (obscure but known limitation of custom drilldown wiring). &lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2010 03:09:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cell-drilldown-sending-null/m-p/59867#M3135</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-09-29T03:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cell drilldown sending null</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Cell-drilldown-sending-null/m-p/59868#M3136</link>
      <description>&lt;P&gt;Captain Obvious to the rescue here; duh Tim. Thanks nick, value was indeed the value of the first column, value2 the next, etc. Dunno how I missed that : )&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2010 03:22:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Cell-drilldown-sending-null/m-p/59868#M3136</guid>
      <dc:creator>caphrim007</dc:creator>
      <dc:date>2010-09-29T03:22:20Z</dc:date>
    </item>
  </channel>
</rss>

