<?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 How to get drilldown to work when having totals or formatting numbers in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-drilldown-to-work-when-having-totals-or-formatting/m-p/53301#M12963</link>
    <description>&lt;P&gt;In the following abbreviated search, is there anyway to have drilldown work properly when using an addtotals or when trying to format numbers with an eval command after the search.  I can't seem to get rid of errors such as the following:&lt;/P&gt;

&lt;P&gt;PARSER: Applying intentions failed Drilldown error: unable to drill down from 'stats count as NbrReports by User '&lt;/P&gt;

&lt;P&gt;searchstuff......|eval User = UserName."  ---  ".UserId &lt;BR /&gt;
| stats count as NbrReports by User &lt;BR /&gt;
| addtotals fieldname=NbrReports col=true row=false&lt;/P&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;P&gt;searchstuff...... |eval User = UserName."  ---  ".UserId &lt;BR /&gt;
| convert mstime(TotalReportRunTime) AS nbrSeconds &lt;BR /&gt;
| stats count as NbrReports, avg(nbrSeconds) as AvgRunTime by User&lt;BR /&gt;
| eval AvgRunTime = strftime(AvgRunTime, "%M:%S.%3N")&lt;/P&gt;

&lt;P&gt;The user wants to be able to click on the User field which is a link.  And of course the system adds the &lt;STRONG&gt;| search User="xxxxxx  ---  xx1234"&lt;/STRONG&gt; to the end of the text (for the new search caused by the drilldown), after the addtotals or after the eval which apparently breaks the syntax for the parser.&lt;/P&gt;</description>
    <pubDate>Wed, 16 May 2012 14:54:13 GMT</pubDate>
    <dc:creator>RVDowning</dc:creator>
    <dc:date>2012-05-16T14:54:13Z</dc:date>
    <item>
      <title>How to get drilldown to work when having totals or formatting numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-drilldown-to-work-when-having-totals-or-formatting/m-p/53301#M12963</link>
      <description>&lt;P&gt;In the following abbreviated search, is there anyway to have drilldown work properly when using an addtotals or when trying to format numbers with an eval command after the search.  I can't seem to get rid of errors such as the following:&lt;/P&gt;

&lt;P&gt;PARSER: Applying intentions failed Drilldown error: unable to drill down from 'stats count as NbrReports by User '&lt;/P&gt;

&lt;P&gt;searchstuff......|eval User = UserName."  ---  ".UserId &lt;BR /&gt;
| stats count as NbrReports by User &lt;BR /&gt;
| addtotals fieldname=NbrReports col=true row=false&lt;/P&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;P&gt;searchstuff...... |eval User = UserName."  ---  ".UserId &lt;BR /&gt;
| convert mstime(TotalReportRunTime) AS nbrSeconds &lt;BR /&gt;
| stats count as NbrReports, avg(nbrSeconds) as AvgRunTime by User&lt;BR /&gt;
| eval AvgRunTime = strftime(AvgRunTime, "%M:%S.%3N")&lt;/P&gt;

&lt;P&gt;The user wants to be able to click on the User field which is a link.  And of course the system adds the &lt;STRONG&gt;| search User="xxxxxx  ---  xx1234"&lt;/STRONG&gt; to the end of the text (for the new search caused by the drilldown), after the addtotals or after the eval which apparently breaks the syntax for the parser.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2012 14:54:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-drilldown-to-work-when-having-totals-or-formatting/m-p/53301#M12963</guid>
      <dc:creator>RVDowning</dc:creator>
      <dc:date>2012-05-16T14:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get drilldown to work when having totals or formatting numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-drilldown-to-work-when-having-totals-or-formatting/m-p/53302#M12964</link>
      <description>&lt;P&gt;There are a few things that you can do, though some of them probably won't work in your specific case:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;With the dashboard editor, you can often control the drilldown for a panel to make it work. On a table, you can choose &lt;STRONG&gt;row&lt;/STRONG&gt;, &lt;STRONG&gt;cell&lt;/STRONG&gt; or &lt;STRONG&gt;off&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Use the &lt;STRONG&gt;fieldformat&lt;/STRONG&gt; command instead of &lt;STRONG&gt;eval&lt;/STRONG&gt; when formatting numeric fields for display. fieldformat changes only the visual representation, not the underlying value, so drilldowns will still work&lt;/LI&gt;
&lt;LI&gt;Using Advanced XML for a dashboard, you can specifically control the drilldown and how it works, including opening a different view than the usual search results.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;The easiest choice for you is to simply turn off the drilldown. The best choice is probably to use Advanced XML, but that is a bit of work and it may not be worth your while. Look &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Developer/TableChartDrilldown"&gt;here&lt;/A&gt; in the Developing... manual for more information. &lt;/P&gt;

&lt;P&gt;Finally, you could separate the fields, which would change your search to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;searchstuff...... |
| convert mstime(TotalReportRunTime) AS nbrSeconds 
| stats count as NbrReports, avg(nbrSeconds) as AvgRunTime by UserName UserId
| fieldformat AvgRunTime = strftime(AvgRunTime, "%M:%S.%3N")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can't think of anything else that would help, but maybe someone else will have an idea...&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2012 17:49:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-drilldown-to-work-when-having-totals-or-formatting/m-p/53302#M12964</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-05-16T17:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get drilldown to work when having totals or formatting numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-drilldown-to-work-when-having-totals-or-formatting/m-p/53303#M12965</link>
      <description>&lt;P&gt;Unfortunately the fieldformat command causes the exact same problem as the eval command, namely:&lt;/P&gt;

&lt;P&gt;PARSER: Applying intentions failed Unable to drilldown because of post-reporting 'fieldformat' command&lt;/P&gt;

&lt;P&gt;and no results appear in the popped up window.&lt;/P&gt;

&lt;P&gt;Also, I'm using the default Search app, so I guess I shouldn't modify the table parameters.&lt;/P&gt;

&lt;P&gt;It seems to me that it would be simple (and desirable) for the system to add the clicked-on search term before the leading pipe character in the main search.  Then everything would work as expected.  (at least expected by me.)&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2012 18:10:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-drilldown-to-work-when-having-totals-or-formatting/m-p/53303#M12965</guid>
      <dc:creator>RVDowning</dc:creator>
      <dc:date>2012-05-16T18:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get drilldown to work when having totals or formatting numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-drilldown-to-work-when-having-totals-or-formatting/m-p/53304#M12966</link>
      <description>&lt;P&gt;I shouldn't have said "leading pipe character" since the user clicked on a concatenated field, but I think it could algorithmically be done so that it would both parse correctly and display appropriate results.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2012 18:21:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-drilldown-to-work-when-having-totals-or-formatting/m-p/53304#M12966</guid>
      <dc:creator>RVDowning</dc:creator>
      <dc:date>2012-05-16T18:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get drilldown to work when having totals or formatting numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-drilldown-to-work-when-having-totals-or-formatting/m-p/53305#M12967</link>
      <description>&lt;P&gt;Yes, if you want more control of the visualization, you need to put the report in a dashboard. Then you can change the table parameters.&lt;/P&gt;

&lt;P&gt;There is no other way to tell Splunk explicitly how to do the drilldown. You could put in an enhancement request by submitting a ticket at &lt;A href="https://www.splunk.com/index.php/submit_issue"&gt;https://www.splunk.com/index.php/submit_issue&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2012 18:43:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-drilldown-to-work-when-having-totals-or-formatting/m-p/53305#M12967</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-05-16T18:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get drilldown to work when having totals or formatting numbers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-drilldown-to-work-when-having-totals-or-formatting/m-p/53306#M12968</link>
      <description>&lt;P&gt;@lguinn, I'm using an Advanced XML dashboard with row drilldown and I also see this problem.  What exactly is the  advanced XML workaround?  For my particular table it doesn't make sense to use cell drilldown.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2012 19:17:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-drilldown-to-work-when-having-totals-or-formatting/m-p/53306#M12968</guid>
      <dc:creator>cphair</dc:creator>
      <dc:date>2012-09-19T19:17:31Z</dc:date>
    </item>
  </channel>
</rss>

