<?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: Show percent instead of count in top chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Show-percent-instead-of-count-in-top-chart/m-p/102723#M26551</link>
    <description>&lt;P&gt;Thanks, that works too.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jul 2012 23:54:05 GMT</pubDate>
    <dc:creator>ctoo</dc:creator>
    <dc:date>2012-07-19T23:54:05Z</dc:date>
    <item>
      <title>Show percent instead of count in top chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-percent-instead-of-count-in-top-chart/m-p/102718#M26546</link>
      <description>&lt;P&gt;I'm using the top command and wanted the generated chart to show the percent value for each of the items instead of the count.  The documentation doesn't say how to do this and I couldn't find an answer by searching this forum, but I eventually figured out a way to do it which I'll post here as an answer in case others have the same need.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2012 22:03:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-percent-instead-of-count-in-top-chart/m-p/102718#M26546</guid>
      <dc:creator>ctoo</dc:creator>
      <dc:date>2012-07-18T22:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Show percent instead of count in top chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-percent-instead-of-count-in-top-chart/m-p/102719#M26547</link>
      <description>&lt;P&gt;Here's how to do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | top showcount=false percentfield=count ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This works because the chart is hardcoded to display the "count" value.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2012 22:06:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-percent-instead-of-count-in-top-chart/m-p/102719#M26547</guid>
      <dc:creator>ctoo</dc:creator>
      <dc:date>2012-07-18T22:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Show percent instead of count in top chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-percent-instead-of-count-in-top-chart/m-p/102720#M26548</link>
      <description>&lt;P&gt;or just&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | top showcount=false fieldForTop
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To show only the percent field. To show only the count field:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | top showperc=false fieldForTop
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or you can always pipe to the fields command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | top  fieldForTop | fields - count

... | top  fieldForTop | fields - percent
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jul 2012 22:23:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-percent-instead-of-count-in-top-chart/m-p/102720#M26548</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-07-18T22:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Show percent instead of count in top chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-percent-instead-of-count-in-top-chart/m-p/102721#M26549</link>
      <description>&lt;P&gt;At least w/ Splunk 4.3.1, which we're using, doing the above doesn't work -- it shows an empty chart.&lt;/P&gt;

&lt;P&gt;To be clear, I'm talking specifically about the Results Chart view of the top output, not the Table view for which your solution works.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2012 02:06:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-percent-instead-of-count-in-top-chart/m-p/102721#M26549</guid>
      <dc:creator>ctoo</dc:creator>
      <dc:date>2012-07-19T02:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Show percent instead of count in top chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-percent-instead-of-count-in-top-chart/m-p/102722#M26550</link>
      <description>&lt;P&gt;Use &lt;CODE&gt;table&lt;/CODE&gt; to reorder the results. The graph results view seems to simply grab the first two fields in the generated table and then use the first field as its X axis and the second field for Y axis. So, the following will do the trick:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | top field | table field percent
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jul 2012 06:21:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-percent-instead-of-count-in-top-chart/m-p/102722#M26550</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-19T06:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Show percent instead of count in top chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-percent-instead-of-count-in-top-chart/m-p/102723#M26551</link>
      <description>&lt;P&gt;Thanks, that works too.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2012 23:54:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-percent-instead-of-count-in-top-chart/m-p/102723#M26551</guid>
      <dc:creator>ctoo</dc:creator>
      <dc:date>2012-07-19T23:54:05Z</dc:date>
    </item>
  </channel>
</rss>

