<?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 search and calculate the average for the top 70 percent of a field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-calculate-the-average-for-the-top-70-percent/m-p/113972#M30098</link>
    <description>&lt;P&gt;How to calculate the average for top 70%. A field in log contains a value. I need to ignore the least 30% and then calculate average.&lt;/P&gt;</description>
    <pubDate>Sat, 06 Sep 2014 05:12:18 GMT</pubDate>
    <dc:creator>bkcstone</dc:creator>
    <dc:date>2014-09-06T05:12:18Z</dc:date>
    <item>
      <title>How to search and calculate the average for the top 70 percent of a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-calculate-the-average-for-the-top-70-percent/m-p/113972#M30098</link>
      <description>&lt;P&gt;How to calculate the average for top 70%. A field in log contains a value. I need to ignore the least 30% and then calculate average.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Sep 2014 05:12:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-calculate-the-average-for-the-top-70-percent/m-p/113972#M30098</guid>
      <dc:creator>bkcstone</dc:creator>
      <dc:date>2014-09-06T05:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to search and calculate the average for the top 70 percent of a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-calculate-the-average-for-the-top-70-percent/m-p/113973#M30099</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;some search terms.. | sort 0 - Field_Of_Interest | streamstats count as Rank | eventstats count as TotalRows | where Rank&amp;lt;(TotalRows * 0.7) | stats avg(Field_Of_Interest) as Required_Average
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 06 Sep 2014 05:31:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-and-calculate-the-average-for-the-top-70-percent/m-p/113973#M30099</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-09-06T05:31:16Z</dc:date>
    </item>
  </channel>
</rss>

