<?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: Returning incorrect count  from Splunk stats command in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Returning-incorrect-count-from-Splunk-stats-command/m-p/682009#M15862</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/263178"&gt;@Ganesh1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If the events are less than the total count in stats ,check i the fields&amp;nbsp;&lt;SPAN&gt;Object and Failure_Message are present in all the events or only in a subset of them, and eventually not both in the same events.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the events are freater than the total count in stats, probably you have more values in the same events.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;because probably the issue is related to the fact that a stats count BY two fields returns the count of results with both the fields containing a value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2024 14:27:21 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2024-03-26T14:27:21Z</dc:date>
    <item>
      <title>Returning incorrect count  from Splunk stats command</title>
      <link>https://community.splunk.com/t5/Alerting/Returning-incorrect-count-from-Splunk-stats-command/m-p/681978#M15860</link>
      <description>&lt;P&gt;Hi Splunk team,&lt;BR /&gt;We have been using similar below Splunk query across 15+ Splunk alerts but the count mentioned in email shows 4 times of actual failure occurrence.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="&amp;lt;your_index&amp;gt;" sourcetype="&amp;lt;your_sourcetype&amp;gt;" source="&amp;lt;your_source.log&amp;gt;" Business_App_ID=&amp;lt;your_appid&amp;gt; Object=* (Failure_Message=*0x01130006* OR Failure_Message=*0x01130009*) | stats count by Object, Failure_Message | sort count&lt;/LI-CODE&gt;
&lt;P&gt;Below Splunk query is returning correct failure events.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="&amp;lt;your_index&amp;gt;" sourcetype="&amp;lt;your_sourcetype&amp;gt;" source="&amp;lt;your_source.log&amp;gt;" Business_App_ID=&amp;lt;your_appid&amp;gt; Object=* (Failure_Message=*0x01130006* OR Failure_Message=*0x01130009*)&lt;/LI-CODE&gt;
&lt;P&gt;Can you please help in updating the Splunk query(mentioned 1st) to show correct count instead wrong one?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 18:02:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Returning-incorrect-count-from-Splunk-stats-command/m-p/681978#M15860</guid>
      <dc:creator>Ganesh1</dc:creator>
      <dc:date>2024-03-26T18:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Returning incorrect count  from Splunk stats command</title>
      <link>https://community.splunk.com/t5/Alerting/Returning-incorrect-count-from-Splunk-stats-command/m-p/681979#M15861</link>
      <description>&lt;P&gt;There is insufficient information to be able to determine what might be amiss. For example, if your events have multi-value fields, this can give unexpected counts. Please share some representative anonymised examples of your events.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 11:06:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Returning-incorrect-count-from-Splunk-stats-command/m-p/681979#M15861</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-26T11:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Returning incorrect count  from Splunk stats command</title>
      <link>https://community.splunk.com/t5/Alerting/Returning-incorrect-count-from-Splunk-stats-command/m-p/682009#M15862</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/263178"&gt;@Ganesh1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If the events are less than the total count in stats ,check i the fields&amp;nbsp;&lt;SPAN&gt;Object and Failure_Message are present in all the events or only in a subset of them, and eventually not both in the same events.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the events are freater than the total count in stats, probably you have more values in the same events.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;because probably the issue is related to the fact that a stats count BY two fields returns the count of results with both the fields containing a value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 14:27:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Returning-incorrect-count-from-Splunk-stats-command/m-p/682009#M15862</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-03-26T14:27:21Z</dc:date>
    </item>
  </channel>
</rss>

