<?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: SimpleResultsTable Drilldown - Use single value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Drilldown-Use-single-value/m-p/11205#M97</link>
    <description>&lt;P&gt;Hey Felix.  Although this still isnt addressed in the core product, I did fix it in the sideview_utils stuff.  So if you switch to using sideview_utils techniques, you can have $click.fields.someFieldName$&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:25:54 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2020-09-28T09:25:54Z</dc:date>
    <item>
      <title>SimpleResultsTable Drilldown - Use single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Drilldown-Use-single-value/m-p/11200#M92</link>
      <description>&lt;P&gt;I have a SimpleResultsTable displaying the following data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Count   Source IP   Source Country  Host
787 1.1.1.1     USA     host1
678 1.1.1.2     China       host1
123 1.1.1.9     Brazil      host2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When clicking on a result in the chart I want the drilldown search to filter on Source IP, but I can't get it to do just that. Here is what I have tried:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Using drilldown=row, the drilldown search filters on Count. Tried moving it over to Source IP but couldn't get it to.&lt;/LI&gt;
&lt;LI&gt;Using drilldown=all clicking any value adds Count as well as that value. No good.&lt;/LI&gt;
&lt;LI&gt;Using the ConvertToIntention example from the docs and drilldown=row it still passes Count down to the drilldown search.&lt;/LI&gt;
&lt;LI&gt;Using the ConvertToIntention example from the docs and drilldown=all, and then trying to only pass the $click.value2$ into the search, it still adds value1 (again, Count).&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Is there any way to only pass click.value2 or another way to pass Source IP instead of Count?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2010 21:39:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Drilldown-Use-single-value/m-p/11200#M92</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2010-04-09T21:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: SimpleResultsTable Drilldown - Use single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Drilldown-Use-single-value/m-p/11201#M93</link>
      <description>&lt;P&gt;Table drilldown will always use the first value,  and changing it from 'row' to 'cell' just makes it &lt;EM&gt;potentially&lt;/EM&gt; also use that column+cell pair in addition to using the first key+value pair. &lt;/P&gt;

&lt;P&gt;I know in cases like this its feels a little limiting, but the solution is to simply re-order the fields in the table such that the field you want to drill in on is the first field.   The fields clause can do this for you. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search&amp;gt; | fields | "Source IP" Count "Source Country" Host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;NOTE: assuming you're using the rename command to get those nice field names, you should put the rename command after the reporting commands, not before. &lt;/P&gt;

&lt;P&gt;If you dont, your drilldown searches will work but they'll be a lot less efficient, pulling a lot more off disk to get the same thing done: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;foo | rename clientip as "Source IP" | search "Source IP" = 216.248.53.142
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But drilldown is smart enough to deal with rename commands that come after the reporting commands.  (Note this is NOT true of many other commands like eval)&lt;/P&gt;

&lt;P&gt;Thus drilling into a row in&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;foo | stats count by clientip | rename clientip as "Source IP"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;after a click on a row, the resulting search is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;foo clientip=216.248.53.142
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(although admittedly it wont preserve your nice rename...)&lt;/P&gt;

&lt;P&gt;another minor note: fields with spaces work great in the search language but they can cause some problems when the resulting search is loaded in flashtimeline. In particular those fields wont be handled correctly by the modules in the blue sidebar (FieldPicker etc)&lt;/P&gt;</description>
      <pubDate>Sat, 10 Apr 2010 00:33:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Drilldown-Use-single-value/m-p/11201#M93</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-04-10T00:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: SimpleResultsTable Drilldown - Use single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Drilldown-Use-single-value/m-p/11202#M94</link>
      <description>&lt;P&gt;I have added the XML I am using to display this chart on pastebin: &lt;A href="http://splunk.pastebin.com/zYepR7Hb"&gt;http://splunk.pastebin.com/zYepR7Hb&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The XML in this example left off at step 4 of my original question.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Apr 2010 00:35:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Drilldown-Use-single-value/m-p/11202#M94</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2010-04-10T00:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: SimpleResultsTable Drilldown - Use single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Drilldown-Use-single-value/m-p/11203#M95</link>
      <description>&lt;P&gt;Thanks nick, reordering the fields worked. I just would have preferred to have count displayed first, but I can deal with it. Is picking a specific field on the feature list for a future release?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Apr 2010 00:49:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Drilldown-Use-single-value/m-p/11203#M95</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2010-04-10T00:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: SimpleResultsTable Drilldown - Use single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Drilldown-Use-single-value/m-p/11204#M96</link>
      <description>&lt;P&gt;Cool.  Yes I think we'll make this better in the next release.  There's an ERD for the next big release (which will most likely be known to the world as 4.2) specifying 7 known problems in table/chart drilldown that could be solved, and #1 is "current 'first column' heuristic fails in key cases.".&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2010 12:34:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Drilldown-Use-single-value/m-p/11204#M96</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-04-13T12:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: SimpleResultsTable Drilldown - Use single value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Drilldown-Use-single-value/m-p/11205#M97</link>
      <description>&lt;P&gt;Hey Felix.  Although this still isnt addressed in the core product, I did fix it in the sideview_utils stuff.  So if you switch to using sideview_utils techniques, you can have $click.fields.someFieldName$&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:25:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/SimpleResultsTable-Drilldown-Use-single-value/m-p/11205#M97</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2020-09-28T09:25:54Z</dc:date>
    </item>
  </channel>
</rss>

