<?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: need help with a query to get count and avg(count) per day in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/need-help-with-a-query-to-get-count-and-avg-count-per-day/m-p/252330#M189336</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main host=src* source=ihs* | bucket _time span=1d | stats count by _time | addtotals col=t row=f | fillnull value=TOTAL | streamstats current=f count AS serial | eval daily_average = if(_time = "TOTAL", count/serial, "vvvvvvvvvv") | fields - serial
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 28 Nov 2015 21:10:01 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-11-28T21:10:01Z</dc:date>
    <item>
      <title>need help with a query to get count and avg(count) per day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-with-a-query-to-get-count-and-avg-count-per-day/m-p/252329#M189335</link>
      <description>&lt;P&gt;I have given this query and it's just giving me avg(count) in the output, i'm looking for both count and avg(count) per day in the output.. any help would be appreciated. Thanks.&lt;/P&gt;

&lt;P&gt;index=main host=src*  source=ihs*  | stats count by date_mday | stats avg(count)&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2015 16:52:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-with-a-query-to-get-count-and-avg-count-per-day/m-p/252329#M189335</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2015-11-27T16:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: need help with a query to get count and avg(count) per day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/need-help-with-a-query-to-get-count-and-avg-count-per-day/m-p/252330#M189336</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main host=src* source=ihs* | bucket _time span=1d | stats count by _time | addtotals col=t row=f | fillnull value=TOTAL | streamstats current=f count AS serial | eval daily_average = if(_time = "TOTAL", count/serial, "vvvvvvvvvv") | fields - serial
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 Nov 2015 21:10:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/need-help-with-a-query-to-get-count-and-avg-count-per-day/m-p/252330#M189336</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-28T21:10:01Z</dc:date>
    </item>
  </channel>
</rss>

