<?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 search the count of failed logs per month for the past six months? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-count-of-failed-logs-per-month-for-the-past/m-p/282962#M85473</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to generate the monthly report for the past six months and need the count of failed logs for each month.&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;July Count 20&lt;BR /&gt;
June Count 15&lt;BR /&gt;
.....&lt;BR /&gt;
....&lt;BR /&gt;
....&lt;BR /&gt;
Jan Count 50.&lt;/P&gt;

&lt;P&gt;But the search below is not giving correct the output, Is there any way to get the monthly count of failed logs for the past six months?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=networksecurity Protocol=Radius signature =Failed_Attempts | stats count by date_month, date_year
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 28 Jul 2016 04:34:16 GMT</pubDate>
    <dc:creator>syed_star357</dc:creator>
    <dc:date>2016-07-28T04:34:16Z</dc:date>
    <item>
      <title>How to search the count of failed logs per month for the past six months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-count-of-failed-logs-per-month-for-the-past/m-p/282962#M85473</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to generate the monthly report for the past six months and need the count of failed logs for each month.&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;July Count 20&lt;BR /&gt;
June Count 15&lt;BR /&gt;
.....&lt;BR /&gt;
....&lt;BR /&gt;
....&lt;BR /&gt;
Jan Count 50.&lt;/P&gt;

&lt;P&gt;But the search below is not giving correct the output, Is there any way to get the monthly count of failed logs for the past six months?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=networksecurity Protocol=Radius signature =Failed_Attempts | stats count by date_month, date_year
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jul 2016 04:34:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-count-of-failed-logs-per-month-for-the-past/m-p/282962#M85473</guid>
      <dc:creator>syed_star357</dc:creator>
      <dc:date>2016-07-28T04:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the count of failed logs per month for the past six months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-count-of-failed-logs-per-month-for-the-past/m-p/282963#M85474</link>
      <description>&lt;P&gt;Maybe this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=networksecurity Protocol=Radius signature =Failed_Attempts earliest="-6mon@mon" latest="@mon" | timechart span=1mon count(signature) as Total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jul 2016 15:00:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-count-of-failed-logs-per-month-for-the-past/m-p/282963#M85474</guid>
      <dc:creator>JDukeSplunk</dc:creator>
      <dc:date>2016-07-28T15:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the count of failed logs per month for the past six months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-count-of-failed-logs-per-month-for-the-past/m-p/282964#M85475</link>
      <description>&lt;P&gt;Thanks, I want the count like total number of  users and Total Failed_Attempts&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 08:29:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-count-of-failed-logs-per-month-for-the-past/m-p/282964#M85475</guid>
      <dc:creator>syed_star357</dc:creator>
      <dc:date>2016-08-02T08:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the count of failed logs per month for the past six months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-count-of-failed-logs-per-month-for-the-past/m-p/282965#M85476</link>
      <description>&lt;P&gt;This should give you unique no of users count and total failed attempts by each month. You may need to change the user filed name as per your log data.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=networksecurity Protocol=Radius signature=Failed_Attempts  earliest=-6mon@mon latest=@mon|timechart span=1mon dc(user) AS Users_Count,count(signature) AS Total_Failed_Attempts  
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Aug 2016 09:24:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-count-of-failed-logs-per-month-for-the-past/m-p/282965#M85476</guid>
      <dc:creator>Ravan</dc:creator>
      <dc:date>2016-08-02T09:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the count of failed logs per month for the past six months?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-count-of-failed-logs-per-month-for-the-past/m-p/282966#M85477</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=networksecurity Protocol=Radius signature=* earliest=-6mon@mon latest=@mon|timechart span=1mon dc(user) AS Users_Count,count(eval(signature="Failed_Attempts")) AS Total_Failed_Attempts
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 07 Aug 2016 17:32:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-count-of-failed-logs-per-month-for-the-past/m-p/282966#M85477</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-07T17:32:15Z</dc:date>
    </item>
  </channel>
</rss>

