<?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 Top percentage out of total events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Top-percentage-out-of-total-events/m-p/33409#M7086</link>
    <description>&lt;P&gt;When using the fields sidebar, I can see how often a field appears out of my total result set (ie Appears in 62% of results), and how often the top values of that field appear in the results.  &lt;/P&gt;

&lt;P&gt;When I use the top command, I can see how often these values appear out of the total number of events that contain that field.  &lt;/P&gt;

&lt;P&gt;How can I obtain statistics similar how the field sidebar presents them, as a percentage of the total result set? &lt;/P&gt;

&lt;P&gt;&lt;EM&gt;In my use case I have UserAgent split out to multiple fields and want to know what are the top UserAgents across our total traffic.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Feb 2013 00:33:36 GMT</pubDate>
    <dc:creator>Yancy</dc:creator>
    <dc:date>2013-02-15T00:33:36Z</dc:date>
    <item>
      <title>Top percentage out of total events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-percentage-out-of-total-events/m-p/33409#M7086</link>
      <description>&lt;P&gt;When using the fields sidebar, I can see how often a field appears out of my total result set (ie Appears in 62% of results), and how often the top values of that field appear in the results.  &lt;/P&gt;

&lt;P&gt;When I use the top command, I can see how often these values appear out of the total number of events that contain that field.  &lt;/P&gt;

&lt;P&gt;How can I obtain statistics similar how the field sidebar presents them, as a percentage of the total result set? &lt;/P&gt;

&lt;P&gt;&lt;EM&gt;In my use case I have UserAgent split out to multiple fields and want to know what are the top UserAgents across our total traffic.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2013 00:33:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-percentage-out-of-total-events/m-p/33409#M7086</guid>
      <dc:creator>Yancy</dc:creator>
      <dc:date>2013-02-15T00:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Top percentage out of total events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-percentage-out-of-total-events/m-p/33410#M7087</link>
      <description>&lt;P&gt;Here are a couple working options to help with ideas (replace ... with your search):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eventstats count AS total | stats first(total) AS total count AS c by UserAgent | eval  perc=(c/total)*100 | fields - total | sort - perc | head 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eventstats count AS total | chart eval(count/first(total)) AS perc BY UserAgent | sort - perc
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Feb 2013 07:19:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-percentage-out-of-total-events/m-p/33410#M7087</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2013-02-15T07:19:04Z</dc:date>
    </item>
  </channel>
</rss>

