<?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: How to work out average in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650163#M224774</link>
    <description>&lt;P&gt;thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm using data from 2022&lt;/P&gt;&lt;P&gt;the total number of calls to our helpdesk was 45k (ish)&lt;/P&gt;&lt;P&gt;and need to show the average calls we receive every month&amp;nbsp;&lt;/P&gt;&lt;P&gt;so if i work that out in my head thats 45 / 12 = 3750 average number of calls per month&lt;/P&gt;&lt;P&gt;i'd like to work this out in Splunk&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;P&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2023 12:07:22 GMT</pubDate>
    <dc:creator>PaulaCom</dc:creator>
    <dc:date>2023-07-12T12:07:22Z</dc:date>
    <item>
      <title>How to work out average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650149#M224766</link>
      <description>&lt;P&gt;Hi all&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a search running with the following results&lt;/P&gt;&lt;P&gt;date_year&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;count&amp;nbsp;&lt;/P&gt;&lt;P&gt;2022&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;44,814&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how do i get the average count over the year?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to eval date_year by 12 but this doesnt look right.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also have | timechart avg(date_year) and this is not working out&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaulaCom_0-1689161537556.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26225i799F91DB4DAC8F1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaulaCom_0-1689161537556.png" alt="PaulaCom_0-1689161537556.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 11:32:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650149#M224766</guid>
      <dc:creator>PaulaCom</dc:creator>
      <dc:date>2023-07-12T11:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to work out average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650154#M224770</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258512"&gt;@PaulaCom&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you have only one value it isn't possible to calculate the average.&lt;/P&gt;&lt;P&gt;Could you share your search?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 11:57:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650154#M224770</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-12T11:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to work out average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650157#M224771</link>
      <description>&lt;P&gt;What do you mean by average count over the year?&lt;/P&gt;&lt;P&gt;Is this average daily count over the year, or average weekly count, or average monthly count?&lt;/P&gt;&lt;P&gt;Whatever your time frame, you should calculate the counts for each month (for example) then take the average of these counts.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 12:00:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650157#M224771</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-12T12:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to work out average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650161#M224772</link>
      <description>&lt;P class="lia-align-left"&gt;thank you&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;my search is pretty basic&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;index=mmuh_helpdesk sourcetype=mmuh_helpdesk_json&lt;BR /&gt;| dedup id&lt;BR /&gt;| fillnull value=NULL&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;I've set the range to 'previous year'&lt;/P&gt;&lt;P class="lia-align-left"&gt;there is also a field called date_month which shows the number of tickets raised over each month like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaulaCom_0-1689163390697.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26226i3E079CFAA83CE1AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaulaCom_0-1689163390697.png" alt="PaulaCom_0-1689163390697.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P:)&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 12:03:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650161#M224772</guid>
      <dc:creator>PaulaCom</dc:creator>
      <dc:date>2023-07-12T12:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to work out average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650162#M224773</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258512"&gt;@PaulaCom&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you want the average for month, you could calculate:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=mmuh_helpdesk sourcetype=mmuh_helpdesk_json
| stats count BY date_month
| stats avg(count) AS avg&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 12:06:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650162#M224773</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-12T12:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to work out average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650163#M224774</link>
      <description>&lt;P&gt;thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm using data from 2022&lt;/P&gt;&lt;P&gt;the total number of calls to our helpdesk was 45k (ish)&lt;/P&gt;&lt;P&gt;and need to show the average calls we receive every month&amp;nbsp;&lt;/P&gt;&lt;P&gt;so if i work that out in my head thats 45 / 12 = 3750 average number of calls per month&lt;/P&gt;&lt;P&gt;i'd like to work this out in Splunk&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;P&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 12:07:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650163#M224774</guid>
      <dc:creator>PaulaCom</dc:creator>
      <dc:date>2023-07-12T12:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to work out average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650164#M224775</link>
      <description>&lt;P&gt;starbar!&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 12:13:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650164#M224775</guid>
      <dc:creator>PaulaCom</dc:creator>
      <dc:date>2023-07-12T12:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to work out average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650165#M224776</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258512"&gt;@PaulaCom&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;let us know if we can help you more, or, please, accept one answer for the other people of Community.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 12:14:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650165#M224776</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-12T12:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to work out average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650168#M224777</link>
      <description>&lt;P&gt;thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got a long number in my response&amp;nbsp;&lt;SPAN&gt;3759.4166666666665&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;so used the floor command to round it up !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again for your guidance -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 12:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650168#M224777</guid>
      <dc:creator>PaulaCom</dc:creator>
      <dc:date>2023-07-12T12:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to work out average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650172#M224779</link>
      <description>&lt;P&gt;The floor function rounds down not up; the ceil function will round up; the round function will round to the nearest number (with a specified level of precision).&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 12:27:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-work-out-average/m-p/650172#M224779</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-12T12:27:40Z</dc:date>
    </item>
  </channel>
</rss>

