<?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: Missing Stats Data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Missing-Stats-Data/m-p/567152#M197638</link>
    <description>&lt;P&gt;mean() and avg() are the same so perhaps &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; just takes the last one specified.&amp;nbsp; If you only use one of those functions then you won't have any "missing" data.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Sep 2021 18:56:57 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-09-15T18:56:57Z</dc:date>
    <item>
      <title>Missing Stats Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Missing-Stats-Data/m-p/567150#M197637</link>
      <description>&lt;P&gt;When mean &amp;amp; avg are both present on a "stats" search, the first one in order will be missing so:&lt;/P&gt;&lt;P&gt;| makeresults count=100 | eval Value=random() % 100&lt;BR /&gt;| Stats count(Value) AS Count avg(Value) AS Avg mean(Value) AS Mean&lt;/P&gt;&lt;P&gt;results in:&lt;/P&gt;&lt;TABLE border="0" width="192" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64" height="19"&gt;Count&lt;/TD&gt;&lt;TD width="64"&gt;Avg&lt;/TD&gt;&lt;TD width="64"&gt;Mean&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;100&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;49.49&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While&lt;/P&gt;&lt;P&gt;| makeresults count=100 | eval Value=random() % 100&lt;BR /&gt;| Stats count(Value) AS Count mean(Value) AS Mean avg(Value) AS Avg&lt;/P&gt;&lt;P&gt;results in:&lt;/P&gt;&lt;TABLE border="0" width="192" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64" height="19"&gt;Count&lt;/TD&gt;&lt;TD width="64"&gt;Mean&lt;/TD&gt;&lt;TD width="64"&gt;Avg&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="19"&gt;100&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;43.78&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So why is one of the values missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John W.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 18:39:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Missing-Stats-Data/m-p/567150#M197637</guid>
      <dc:creator>jkwilling</dc:creator>
      <dc:date>2021-09-15T18:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Stats Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Missing-Stats-Data/m-p/567152#M197638</link>
      <description>&lt;P&gt;mean() and avg() are the same so perhaps &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; just takes the last one specified.&amp;nbsp; If you only use one of those functions then you won't have any "missing" data.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 18:56:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Missing-Stats-Data/m-p/567152#M197638</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-09-15T18:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Stats Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Missing-Stats-Data/m-p/567168#M197641</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;says, mean and average are the same, so it's a pointless aggregation.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults count=100 | eval Value=random() % 100, Value2=Value
| Stats count(Value) AS Count avg(Value2) AS Avg mean(Value) AS Mean&lt;/LI-CODE&gt;&lt;P&gt;Making Value2 as Value, will give you both aggregations, but as you can see they are the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 23:34:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Missing-Stats-Data/m-p/567168#M197641</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-09-15T23:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Stats Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Missing-Stats-Data/m-p/567176#M197645</link>
      <description>&lt;P&gt;Now that you pointed it out, I should have know that Mean/Avg are the same....&lt;/P&gt;&lt;P&gt;I was just playing with extracting all of the aggregate functions and just noticed the conditions and thought that I would report it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 00:40:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Missing-Stats-Data/m-p/567176#M197645</guid>
      <dc:creator>jkwilling</dc:creator>
      <dc:date>2021-09-16T00:40:06Z</dc:date>
    </item>
  </channel>
</rss>

