<?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: stats count or eval in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/stats-count-or-eval/m-p/471551#M132655</link>
    <description>&lt;P&gt;Hi, you are absolutely right but I find it difficult to supply samples. The situation is that there is a chain of events, every event starts with the logger "start" when the event cannot be distrtibuted it ends in an exception. Every event contains a messageid en sometimes a businessid. The messageid is unique for every string of events, this can be 2 events of 100. In case of an error there will be retries with the same messageid. I need the count of the unique id's that have been started en the count of the id's that had an exception. Both dedupped.&lt;/P&gt;

&lt;P&gt;Message.ID      LOGGER          LOGGER&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1           “start”
2        “start”
3        “start”
3                              "Exception"
3                              "Exception"  
4       "Start"
5        "Start"        
5                               "Exception"     
6   "Start"
7   "Start"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 04 Jun 2020 15:01:42 GMT</pubDate>
    <dc:creator>Mike6960</dc:creator>
    <dc:date>2020-06-04T15:01:42Z</dc:date>
    <item>
      <title>stats count or eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-count-or-eval/m-p/471548#M132652</link>
      <description>&lt;P&gt;I am trying to make an overview with different counts. The message always starts with :&lt;/P&gt;
&lt;P&gt;logger="blahblah-main.Start*"&lt;/P&gt;
&lt;P&gt;Some will go in error and then they will apear with:&lt;/P&gt;
&lt;P&gt;logger="blahblah.Exception"&lt;BR /&gt;The difficult thing is that I want the unique ID's, so some messages will have an retry in both loggers.I tried to use dedup but then I will miss messages when they are in both loggers. I hope someone can make sense of my question....&lt;/P&gt;
&lt;P&gt;search.... logger="blahblah-main.Start*" OR logger="blahblah.Exception" |dedup message.MessagId|dedup message.BusinessId |chart count by logger&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 17:24:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-count-or-eval/m-p/471548#M132652</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2020-06-08T17:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: stats count or eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-count-or-eval/m-p/471549#M132653</link>
      <description>&lt;P&gt;Please share complete examples of error and non-error messages.  Let us know where to find the MessageId and BusinessId fields.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 13:02:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-count-or-eval/m-p/471549#M132653</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-06-04T13:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: stats count or eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-count-or-eval/m-p/471550#M132654</link>
      <description>&lt;P&gt;@richgalloway is right - without &lt;EM&gt;real&lt;/EM&gt; sample data, we're not going to be able to help you as well as we could otherwise&lt;/P&gt;

&lt;P&gt;We need you to supply sample data&lt;/P&gt;

&lt;P&gt;That said, here's a possible guess as to what you're trying to do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ndx sourcetype=srctp logger="blahblah-main.Start" OR logger="blahblah.Exception"
| stats values(message.MessageId) as MessageId values(message.BusinessId) as BusinessId by logger
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jun 2020 13:22:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-count-or-eval/m-p/471550#M132654</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2020-06-04T13:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: stats count or eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/stats-count-or-eval/m-p/471551#M132655</link>
      <description>&lt;P&gt;Hi, you are absolutely right but I find it difficult to supply samples. The situation is that there is a chain of events, every event starts with the logger "start" when the event cannot be distrtibuted it ends in an exception. Every event contains a messageid en sometimes a businessid. The messageid is unique for every string of events, this can be 2 events of 100. In case of an error there will be retries with the same messageid. I need the count of the unique id's that have been started en the count of the id's that had an exception. Both dedupped.&lt;/P&gt;

&lt;P&gt;Message.ID      LOGGER          LOGGER&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1           “start”
2        “start”
3        “start”
3                              "Exception"
3                              "Exception"  
4       "Start"
5        "Start"        
5                               "Exception"     
6   "Start"
7   "Start"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jun 2020 15:01:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/stats-count-or-eval/m-p/471551#M132655</guid>
      <dc:creator>Mike6960</dc:creator>
      <dc:date>2020-06-04T15:01:42Z</dc:date>
    </item>
  </channel>
</rss>

