<?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 do I get daily average over a month for all the pages I receive in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-do-I-get-daily-average-over-a-month-for-all-the-pages-I/m-p/15958#M177119</link>
    <description>&lt;P&gt;I receive about say between 10 to 20 alerts per day. All these pages shows as an event in my splunk. How do I find out what is average number of events I received daily over a month&lt;/P&gt;

&lt;P&gt;so I tried like this &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;| timechart span=30d count | eval average=count/30&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;does that look right?&lt;/P&gt;

&lt;P&gt;so lets say I receive 10 alerts on day1, 9 alerts on day2 and 8 alerts on day3 .. and so on for a month. I like splunk to tell me something like 9 as the average number of alerts I receive daily over a month.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jun 2010 04:54:42 GMT</pubDate>
    <dc:creator>vadud3</dc:creator>
    <dc:date>2010-06-23T04:54:42Z</dc:date>
    <item>
      <title>how do I get daily average over a month for all the pages I receive</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-do-I-get-daily-average-over-a-month-for-all-the-pages-I/m-p/15958#M177119</link>
      <description>&lt;P&gt;I receive about say between 10 to 20 alerts per day. All these pages shows as an event in my splunk. How do I find out what is average number of events I received daily over a month&lt;/P&gt;

&lt;P&gt;so I tried like this &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;| timechart span=30d count | eval average=count/30&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;does that look right?&lt;/P&gt;

&lt;P&gt;so lets say I receive 10 alerts on day1, 9 alerts on day2 and 8 alerts on day3 .. and so on for a month. I like splunk to tell me something like 9 as the average number of alerts I receive daily over a month.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2010 04:54:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-do-I-get-daily-average-over-a-month-for-all-the-pages-I/m-p/15958#M177119</guid>
      <dc:creator>vadud3</dc:creator>
      <dc:date>2010-06-23T04:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: how do I get daily average over a month for all the pages I receive</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-do-I-get-daily-average-over-a-month-for-all-the-pages-I/m-p/15959#M177120</link>
      <description>&lt;P&gt;The best way to get statistics for this type of duration is to utilize a summary index:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/Knowledge/Usesummaryindexing" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/Knowledge/Usesummaryindexing&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;That would allow you to do complete reporting across all the data over the whole month, on a daily basis.&lt;/P&gt;

&lt;P&gt;Alternatively:&lt;/P&gt;

&lt;P&gt;You could enable indexing of the $SPLUNK_HOME/var/log/splunk/scheduler.log file.  This file logs when an alert is sent from the scheduler.  You would need to find out the exact alert you are triggering.  You can then report the total count over 30 days and use your eval statement as described.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2010 05:29:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-do-I-get-daily-average-over-a-month-for-all-the-pages-I/m-p/15959#M177120</guid>
      <dc:creator>Simeon</dc:creator>
      <dc:date>2010-06-23T05:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: how do I get daily average over a month for all the pages I receive</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-do-I-get-daily-average-over-a-month-for-all-the-pages-I/m-p/15960#M177121</link>
      <description>&lt;P&gt;Probably easier to just use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ... | timechart span=1d count as dailycount | timechart span=1mon mean(dailycount)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which will work if you're dealing with partial months. (e.g., if today is the 22nd of the month and you run a report that goes over the last 60 days).&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2010 05:35:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-do-I-get-daily-average-over-a-month-for-all-the-pages-I/m-p/15960#M177121</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-06-23T05:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: how do I get daily average over a month for all the pages I receive</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-do-I-get-daily-average-over-a-month-for-all-the-pages-I/m-p/15961#M177122</link>
      <description>&lt;P&gt;these alerts are not splunk related. for splunk they are just events.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2010 19:17:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-do-I-get-daily-average-over-a-month-for-all-the-pages-I/m-p/15961#M177122</guid>
      <dc:creator>vadud3</dc:creator>
      <dc:date>2010-06-24T19:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: how do I get daily average over a month for all the pages I receive</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-do-I-get-daily-average-over-a-month-for-all-the-pages-I/m-p/15962#M177123</link>
      <description>&lt;P&gt;This is a bit old, but you can do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search here&amp;gt; | Stats avg(yourfield) by date_month,date_mday | sort date_mday
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Oct 2016 19:24:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-do-I-get-daily-average-over-a-month-for-all-the-pages-I/m-p/15962#M177123</guid>
      <dc:creator>jnichols914</dc:creator>
      <dc:date>2016-10-19T19:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: how do I get daily average over a month for all the pages I receive</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-do-I-get-daily-average-over-a-month-for-all-the-pages-I/m-p/545473#M177124</link>
      <description>&lt;P&gt;Is there a way to remove any day where the specific event count is 0? I would like to remove any day where the logs did not import. The days with events 0 are throwing off my averages.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 19:27:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-do-I-get-daily-average-over-a-month-for-all-the-pages-I/m-p/545473#M177124</guid>
      <dc:creator>jlovik</dc:creator>
      <dc:date>2021-03-25T19:27:52Z</dc:date>
    </item>
  </channel>
</rss>

