<?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: How do I create a drilldown for a specific cell location (not cell value) in a table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409219#M118060</link>
    <description>&lt;P&gt;I'm trying this (copied and pasted into a new dash) and unfortunately the conditional statement isn't ever being met in Splunk 6.3. Even if I change it to just be&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;condition match="$row.sno$==&amp;amp;quot;2&amp;amp;quot;"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it isn't being recognized as a match. &lt;/P&gt;</description>
    <pubDate>Tue, 09 Oct 2018 17:50:49 GMT</pubDate>
    <dc:creator>nick405060</dc:creator>
    <dc:date>2018-10-09T17:50:49Z</dc:date>
    <item>
      <title>How do I create a drilldown for a specific cell location (not cell value) in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409212#M118053</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I read a bunch of related Splunk answers, but so far I haven't seen a solution posted to creating a drilldown for a specific cell location in a table, other than by relying on the cell value. If you think of it like an Excel spreadsheet:&lt;/P&gt;

&lt;P&gt;.. A B C D E F&lt;BR /&gt;
1&lt;BR /&gt;
2&lt;BR /&gt;
3&lt;BR /&gt;
4&lt;BR /&gt;
5&lt;/P&gt;

&lt;P&gt;I need a drilldown on A2 only, not A1 or B2. It doesn't matter what the value of A2 is, clicking on that value needs to drilldown.&lt;/P&gt;

&lt;P&gt;Thanks to xpac and rohit sharma2 for helping me out on this in the chatroom and mentioning click.value2 and row.field1, but looks like those don't quite offer a solution&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 23:40:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409212#M118053</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2018-10-04T23:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a drilldown for a specific cell location (not cell value) in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409213#M118054</link>
      <description>&lt;P&gt;@nick405060 if I understand the question.... Only if the cell value clicked in the table is &lt;CODE&gt;value A2&lt;/CODE&gt; you want to populate the same in text box?&lt;/P&gt;

&lt;P&gt;Is it at a fixed column/row or can it be at any column/row location? Also can there be multiple &lt;CODE&gt;value A2&lt;/CODE&gt;s in your table?&lt;/P&gt;

&lt;P&gt;On a different note can you give a background of the use case, as to why only &lt;CODE&gt;value A2&lt;/CODE&gt; and what after populating in the text box? Are you planning to update some token and perform further activity/ies?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 02:59:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409213#M118054</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-10-05T02:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a drilldown for a specific cell location (not cell value) in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409214#M118055</link>
      <description>&lt;P&gt;See edited post.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 17:23:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409214#M118055</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2018-10-05T17:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a drilldown for a specific cell location (not cell value) in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409215#M118056</link>
      <description>&lt;P&gt;@nick405060 would you know all the field names i.e. A, B, C, D, E? Also would there be a fixed maximum number of fields i.e. 5 or more?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 19:06:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409215#M118056</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-10-05T19:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a drilldown for a specific cell location (not cell value) in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409216#M118057</link>
      <description>&lt;P&gt;In my case, yes to both!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 19:10:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409216#M118057</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2018-10-05T19:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a drilldown for a specific cell location (not cell value) in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409217#M118058</link>
      <description>&lt;P&gt;Would it be possible for you to share your drilldown code as to what you have tried? or else explain what is the drilldown action you need to perform? Like whether you just need the First Column Second Row value to be set as a token or is it drilldown link to launch a new Splunk Internal or External URL?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 19:21:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409217#M118058</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-10-05T19:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a drilldown for a specific cell location (not cell value) in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409218#M118059</link>
      <description>&lt;P&gt;Please try the following approach&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Step 1&lt;/STRONG&gt;: Add &lt;CODE&gt;| streamstats count as sno&lt;/CODE&gt; after your current transforming command to get the row number for each table rows.&lt;BR /&gt;
&lt;STRONG&gt;Step 2&lt;/STRONG&gt;: Since you know all the possible field names and count remains five use &lt;CODE&gt;&amp;lt;fields&amp;gt;&lt;/CODE&gt; Simple XML Table Configuration to keep only the required 5 columns (lets say &lt;CODE&gt;field1, field2, field3, field4 and field5&lt;/CODE&gt;) and hide &lt;CODE&gt;sno&lt;/CODE&gt; field which retains the table row number for drilldown.&lt;BR /&gt;
&lt;STRONG&gt;Step 3&lt;/STRONG&gt;: Use match condition with &lt;CODE&gt;$click.name2$&lt;/CODE&gt; to identify first field i.e. &lt;CODE&gt;field1&lt;/CODE&gt; and &lt;CODE&gt;$row.sno$&lt;/CODE&gt; to get the row number i.e. 2.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5875i8413EC25049E02F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Please try the following run anywhere dashboard based on Splunk's _internal index which has only three columns for simplicity of example but it drills down to set token only if first column i.e. &lt;CODE&gt;component&lt;/CODE&gt; and its corresponding value in the second row is clicked. Otherwise it remains unset.&lt;/P&gt;

&lt;P&gt;PS: I have used tokens for Column and Row to test whether the drilldown is setting/unsetting the token as expected or not. &lt;/P&gt;

&lt;P&gt;Following is run anywhere Simple XML Code for the Dashboard:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Table First Column Second Row Drilldown&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;div&amp;gt;tokClickedColumn: $tokClickedColumn$&amp;lt;/div&amp;gt;
        &amp;lt;div&amp;gt;tokClickedRow= $tokClickedRow$&amp;lt;/div&amp;gt;
        &amp;lt;div&amp;gt;tokFirstColumnSecondRowClicked: $tokFirstColumnSecondRowClicked$&amp;lt;/div&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level!=INFO
| stats count by component log_level
| streamstats count as sno
| table sno *&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;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;fields&amp;gt;component,log_level,count&amp;lt;/fields&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;condition match="$click.name2$==&amp;amp;quot;component&amp;amp;quot; AND $row.sno$==&amp;amp;quot;2&amp;amp;quot;"&amp;gt;
            &amp;lt;eval token="tokFirstColumnSecondRowClicked"&amp;gt;case($row.sno$="2",$click.value2$)&amp;lt;/eval&amp;gt;
            &amp;lt;!-- Debug Statements to capture Clicked Column and Row --&amp;gt;
            &amp;lt;set token="tokClickedRow"&amp;gt;$row.sno$&amp;lt;/set&amp;gt;
            &amp;lt;set token="tokClickedColumn"&amp;gt;$click.name2$&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition&amp;gt;
            &amp;lt;unset token="tokFirstColumnSecondRowClicked"&amp;gt;&amp;lt;/unset&amp;gt;
            &amp;lt;!-- Debug Statements to capture Clicked Column and Row --&amp;gt;
            &amp;lt;set token="tokClickedRow"&amp;gt;$row.sno$&amp;lt;/set&amp;gt;
            &amp;lt;set token="tokClickedColumn"&amp;gt;$click.name2$&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try out and confirm!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 19:44:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409218#M118059</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-10-05T19:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a drilldown for a specific cell location (not cell value) in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409219#M118060</link>
      <description>&lt;P&gt;I'm trying this (copied and pasted into a new dash) and unfortunately the conditional statement isn't ever being met in Splunk 6.3. Even if I change it to just be&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;condition match="$row.sno$==&amp;amp;quot;2&amp;amp;quot;"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it isn't being recognized as a match. &lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 17:50:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409219#M118060</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2018-10-09T17:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a drilldown for a specific cell location (not cell value) in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409220#M118061</link>
      <description>&lt;P&gt;Yup, $row.sno$ is being evaluated to 0 if inside a conditional statement, both the conditional statement on line 27 and the one on line 28. Outside a conditional statement it works (evaluates to 2), e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;set token="tokClickedRow"&amp;gt;$row.sno$&amp;lt;/set&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Oct 2018 18:21:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409220#M118061</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2018-10-09T18:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a drilldown for a specific cell location (not cell value) in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409221#M118062</link>
      <description>&lt;P&gt;Solved. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/542282/eval-token-expression-how-to-set-a-token-with-eval.html"&gt;https://answers.splunk.com/answers/542282/eval-token-expression-how-to-set-a-token-with-eval.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In both conditional statements you need ' not $&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 18:34:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-drilldown-for-a-specific-cell-location-not/m-p/409221#M118062</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2018-10-09T18:34:42Z</dc:date>
    </item>
  </channel>
</rss>

