<?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: Help with Stats and time buckets in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Help-with-Stats-and-time-buckets/m-p/455775#M4048</link>
    <description>&lt;P&gt;Somesoni2 has answered the question and it is working perfectly.&lt;BR /&gt;
Thanks again Somesoni2.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Aug 2019 21:37:30 GMT</pubDate>
    <dc:creator>mpasha</dc:creator>
    <dc:date>2019-08-16T21:37:30Z</dc:date>
    <item>
      <title>Help with Stats and time buckets</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Help-with-Stats-and-time-buckets/m-p/455772#M4045</link>
      <description>&lt;P&gt;good day everyone,&lt;BR /&gt;
I have been wrestling with a rather trivial task in Splunk but have not been able to progress with the task at all.&lt;BR /&gt;
I have a summary index that records number of DNS queries per hour. I have attached a csv file with the content:  &lt;A href="https://answers.splunk.comstorage/temp/273507-dnsquery-count.zip"&gt;link text&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;here is the requirement:&lt;BR /&gt;
I need to have an aggregate of DNS query counts per day which i can calculte with no problem:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=sum_dnsquery_count earliest=-2mon@mon latest=@d
| bucket _time span=1d@d
| timechart sum(count) as Daily_DNSQuery
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;now the challenging part is i want to calculate daily average for the past two month and also standard deviation of the daily count for the same time frame "past 2 months" "Keep in mind the summary index minimum time value is 1hr. and lastly i want to have a chart with the daily values with average and standard deviation superimposed on a chart.&lt;/P&gt;

&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 20:39:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Help-with-Stats-and-time-buckets/m-p/455772#M4045</guid>
      <dc:creator>mpasha</dc:creator>
      <dc:date>2019-08-16T20:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Stats and time buckets</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Help-with-Stats-and-time-buckets/m-p/455773#M4046</link>
      <description>&lt;P&gt;Does following doesn't give you right values?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=sum_dnsquery_count earliest=-2mon@mon latest=@d
 | bucket _time span=1d@d
 | timechart sum(count) as Daily_DNSQuery stdev(count) as StandardDeviation
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=sum_dnsquery_count earliest=-2mon@mon latest=@d
 | bucket _time span=1d@d
 | timechart sum(count) as Daily_DNSQuery | eventstats stdev(Daily_DNSQuery) as StandardDeviation
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Aug 2019 21:11:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Help-with-Stats-and-time-buckets/m-p/455773#M4046</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-08-16T21:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Stats and time buckets</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Help-with-Stats-and-time-buckets/m-p/455774#M4047</link>
      <description>&lt;P&gt;Awsome!!!!!&lt;BR /&gt;
Thanks so much it is working the way it should.&lt;BR /&gt;
Really appreciate your help Somesoni2.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 21:31:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Help-with-Stats-and-time-buckets/m-p/455774#M4047</guid>
      <dc:creator>mpasha</dc:creator>
      <dc:date>2019-08-16T21:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Stats and time buckets</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Help-with-Stats-and-time-buckets/m-p/455775#M4048</link>
      <description>&lt;P&gt;Somesoni2 has answered the question and it is working perfectly.&lt;BR /&gt;
Thanks again Somesoni2.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 21:37:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Help-with-Stats-and-time-buckets/m-p/455775#M4048</guid>
      <dc:creator>mpasha</dc:creator>
      <dc:date>2019-08-16T21:37:30Z</dc:date>
    </item>
  </channel>
</rss>

