<?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 to compare current month count to a 3 months average? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-current-month-count-to-a-3-months-average/m-p/646543#M223792</link>
    <description>&lt;P&gt;Hello Splunkers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i need your help in creating a search that would count number of values for a field in a month and then compare it to a 3months average of the same results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2023 13:29:57 GMT</pubDate>
    <dc:creator>msalghamdi</dc:creator>
    <dc:date>2023-06-12T13:29:57Z</dc:date>
    <item>
      <title>How to compare current month count to a 3 months average?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-current-month-count-to-a-3-months-average/m-p/646543#M223792</link>
      <description>&lt;P&gt;Hello Splunkers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i need your help in creating a search that would count number of values for a field in a month and then compare it to a 3months average of the same results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 13:29:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-current-month-count-to-a-3-months-average/m-p/646543#M223792</guid>
      <dc:creator>msalghamdi</dc:creator>
      <dc:date>2023-06-12T13:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: compare current month count to a 3months average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-current-month-count-to-a-3-months-average/m-p/646545#M223793</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/256839"&gt;@msalghamdi&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;only one question,: do you want to calculate the count for the current month or the last 30 days or the previous month?&lt;/P&gt;&lt;P&gt;because if the current month you have an incomplete count, I suppose that you want the last complete month count compared with the three months before count.&lt;/P&gt;&lt;P&gt;so please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index earliest=-mon@mon latest=@mon
| stats count AS "Current month"
| append [ search 
   index=your_index earliest=-4mon@mon latest=-3mon@mon
   | stats count AS "Three months ago" ]
| table "Current month" "Three months ago"
| eval Diff="Three months ago"-"Current month"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 13:47:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-current-month-count-to-a-3-months-average/m-p/646545#M223793</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-06-11T13:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: compare current month count to a 3months average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-current-month-count-to-a-3-months-average/m-p/688881#M234812</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp; This was exactly what I was looking for.&amp;nbsp; Much easier than trying to use eventstats&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 12:48:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-current-month-count-to-a-3-months-average/m-p/688881#M234812</guid>
      <dc:creator>michael3</dc:creator>
      <dc:date>2024-05-28T12:48:29Z</dc:date>
    </item>
  </channel>
</rss>

