<?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: create a drill-down multiple condition in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316795#M94791</link>
    <description>&lt;P&gt;@vshakur, I have converted my comment to answer. If it worked for you, please accept the same to mark this question as answered. If you need further details, do let us know. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Happy Weekend!&lt;/P&gt;</description>
    <pubDate>Sat, 07 Apr 2018 17:09:44 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-04-07T17:09:44Z</dc:date>
    <item>
      <title>create a drill-down multiple condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316791#M94787</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Is it possible to set a drill-down condition only for the cells of a specific column but to exclude one cell.&lt;/P&gt;

&lt;P&gt;For example:&lt;BR /&gt;
row a |  row b | row c |&lt;BR /&gt;
--------|---------|---------|&lt;BR /&gt;
a1      |     b1     |    c1&lt;BR /&gt;
a2      |     b2     |    c2&lt;BR /&gt;
a3      |     b3     |    c3&lt;/P&gt;

&lt;P&gt;I'd like to be able to press only the values under "row a" but to also exclude the last value "a3".&lt;/P&gt;

&lt;P&gt;Please help me achieve this goal&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Sam&lt;/P&gt;</description>
      <pubDate>Sat, 07 Apr 2018 11:05:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316791#M94787</guid>
      <dc:creator>vshakur</dc:creator>
      <dc:date>2018-04-07T11:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: create a drill-down multiple condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316792#M94788</link>
      <description>&lt;P&gt;The answer I can think of is it depends. In my mind, you would need to have a column that can label the horizontal row you want to exclude, e.g., exclude anything that belongs to the last row that has a label "Totals". Do you have any way of labeling the values you want to exclude? Or is it always the last value in the column?&lt;/P&gt;</description>
      <pubDate>Sat, 07 Apr 2018 11:25:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316792#M94788</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2018-04-07T11:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: create a drill-down multiple condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316793#M94789</link>
      <description>&lt;P&gt;It's both. It's both the last row and It's always labeled "Total"&lt;/P&gt;</description>
      <pubDate>Sat, 07 Apr 2018 16:06:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316793#M94789</guid>
      <dc:creator>vshakur</dc:creator>
      <dc:date>2018-04-07T16:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: create a drill-down multiple condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316794#M94790</link>
      <description>&lt;P&gt;@vshakur if you are on Splunk 6.5 or higher easiest option for you to be use add a Total Table Summary row which can not be used for Drilldown: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/TableFormatsFormatting#Totals_summary_row"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/TableFormatsFormatting#Totals_summary_row&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This way your drilldown code would be enabled only for "row a" and Total row will not have drilldown enabled.&lt;/P&gt;

&lt;P&gt;Otherwise you will have to use &lt;CODE&gt;$row.yourfieldname$&lt;/CODE&gt; to check for value &lt;CODE&gt;Total&lt;/CODE&gt; and not perform any drilldown action.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Apr 2018 16:35:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316794#M94790</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-07T16:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: create a drill-down multiple condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316795#M94791</link>
      <description>&lt;P&gt;@vshakur, I have converted my comment to answer. If it worked for you, please accept the same to mark this question as answered. If you need further details, do let us know. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Happy Weekend!&lt;/P&gt;</description>
      <pubDate>Sat, 07 Apr 2018 17:09:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316795#M94791</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-07T17:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: create a drill-down multiple condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316796#M94792</link>
      <description>&lt;P&gt;Thanks but I'm still stuck.&lt;BR /&gt;
Using &lt;STRONG&gt;Total Table Summary&lt;/STRONG&gt; is not an option since some of the columns represent percentages and I don't want them to be summed up.&lt;/P&gt;

&lt;P&gt;I have the following code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;drilldown&amp;gt;
  &amp;lt;condition field="Environment"&amp;gt;
    &amp;lt;eval token="form.environment_token"&amp;gt;$click.value$&amp;lt;/eval&amp;gt;
  &amp;lt;/condition&amp;gt;
&amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I'm having trouble to add another condition to the existing one. Besides the &lt;STRONG&gt;field="Environment"&lt;/STRONG&gt; condition I need to verify that the user won't be able to press the last cell in the column labeled &lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Apr 2018 17:18:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316796#M94792</guid>
      <dc:creator>vshakur</dc:creator>
      <dc:date>2018-04-07T17:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: create a drill-down multiple condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316797#M94793</link>
      <description>&lt;P&gt;what is the name of the column that contains the label "Total"?&lt;/P&gt;</description>
      <pubDate>Sat, 07 Apr 2018 22:09:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316797#M94793</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2018-04-07T22:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: create a drill-down multiple condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316798#M94794</link>
      <description>&lt;P&gt;Following is run anywhere example with Table Summary Row added. You can hide Total of percent column using CSS. Try the following run anywhere dashboard:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Table Summary Row CSS&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html depends="$alwaysHideCSSPanel$"&amp;gt;
        &amp;lt;style&amp;gt;
          #tableWithSummary tbody tr:last-child td:last-child{
            visibility:hidden !important;
          }
          #tableWithSummary tbody tr:last-child td{
            background: #fff !important;
            font-weight: bold !important;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
      &amp;lt;table id="tableWithSummary"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd
| top 5 component&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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&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;Following is a run anywhere example with &lt;CODE&gt;addtotals&lt;/CODE&gt; and &lt;CODE&gt;eval&lt;/CODE&gt; to set token on Drilldown from the field &lt;CODE&gt;count&lt;/CODE&gt;. In case the &lt;CODE&gt;component&lt;/CODE&gt; value is &lt;CODE&gt;Total&lt;/CODE&gt; (i.e. for the final row) then token is unset by not defining the default condition of the &lt;CODE&gt;case&lt;/CODE&gt; statement.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;panel&amp;gt;
      &amp;lt;table id="tableWithSummary2"&amp;gt;
        &amp;lt;title&amp;gt;$tokClickedValue$&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd
| top 5 component
| addtotals col=t row=f labelfield=component label=Total
| eval percent=case(component!="Total",percent)
          &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;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;condition field="count"&amp;gt;
            &amp;lt;eval token="tokClickedValue"&amp;gt;case($row.component$!="Total",$row.count$)&amp;lt;/eval&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition&amp;gt;
                &amp;lt;!-- Do not drilldown for other fields--&amp;gt;
            &amp;lt;/condition&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try out both options and confirm.&lt;BR /&gt;
PS: you can also code drilldown to pick only the count field no matter which field is clicked, using the &lt;CODE&gt;$row.count$&lt;/CODE&gt; value.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;drilldown&amp;gt;
            &amp;lt;eval token="tokClickedValue"&amp;gt;case($row.component$!="Total",$row.count$)&amp;lt;/eval&amp;gt;
        &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 08 Apr 2018 05:55:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316798#M94794</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-08T05:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: create a drill-down multiple condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316799#M94795</link>
      <description>&lt;P&gt;Environment&lt;/P&gt;</description>
      <pubDate>Sun, 08 Apr 2018 07:38:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316799#M94795</guid>
      <dc:creator>vshakur</dc:creator>
      <dc:date>2018-04-08T07:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: create a drill-down multiple condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316800#M94796</link>
      <description>&lt;P&gt;The last one did the trick. Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Apr 2018 09:55:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/create-a-drill-down-multiple-condition/m-p/316800#M94796</guid>
      <dc:creator>vshakur</dc:creator>
      <dc:date>2018-04-08T09:55:02Z</dc:date>
    </item>
  </channel>
</rss>

