<?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 count the status (ERROR or SUCCESS) for the list of clients accessing the application in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-status-ERROR-or-SUCCESS-for-the-list-of-clients/m-p/277545#M83688</link>
    <description>&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="abc_main" sourcetype="def" STATUS=ERROR CLIENT_ID=*|stats count by CLIENT_ID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Start referring to &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/SplunkEnterpriseQuickReferenceGuide"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/SplunkEnterpriseQuickReferenceGuide&lt;/A&gt; as well&lt;/P&gt;</description>
    <pubDate>Fri, 11 Dec 2015 10:25:38 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2015-12-11T10:25:38Z</dc:date>
    <item>
      <title>How to count the status (ERROR or SUCCESS) for the list of clients accessing the application</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-status-ERROR-or-SUCCESS-for-the-list-of-clients/m-p/277544#M83687</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I am a newbie in Splunk Enterprise. I have to write a splunk query to get the status of the clients accessing the application.  The status will be either ERROR or SUCCESS. If the status is SUCCESS, then it is fine but if it is ERROR, it should count the number of ERROR for particular clients and should give the output in tabular format. For example lets say I have 2 clients: &lt;A href="mailto:Amit@xyz.com" target="_blank"&gt;Amit@xyz.com&lt;/A&gt; and &lt;A href="mailto:Jash@xyz.com" target="_blank"&gt;Jash@xyz.com&lt;/A&gt;&lt;BR /&gt;
So the final output should be :&lt;BR /&gt;
Client_ID                   Count of ERROR&lt;BR /&gt;
&lt;A href="mailto:Amit@xyz.com" target="_blank"&gt;Amit@xyz.com&lt;/A&gt;               25&lt;BR /&gt;
&lt;A href="mailto:Jash@xyz.com" target="_blank"&gt;Jash@xyz.com&lt;/A&gt;                54&lt;/P&gt;

&lt;P&gt;I tried this query : index="abc_main" sourcetype="def" STATUS=ERROR CLIENT_ID=*&lt;/P&gt;

&lt;P&gt;So it showing the error status for all clients in the log file, but now my requirement is to get the tabular output like the example I mentioned above.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:09:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-status-ERROR-or-SUCCESS-for-the-list-of-clients/m-p/277544#M83687</guid>
      <dc:creator>AmitKrJash</dc:creator>
      <dc:date>2020-09-29T08:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the status (ERROR or SUCCESS) for the list of clients accessing the application</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-status-ERROR-or-SUCCESS-for-the-list-of-clients/m-p/277545#M83688</link>
      <description>&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="abc_main" sourcetype="def" STATUS=ERROR CLIENT_ID=*|stats count by CLIENT_ID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Start referring to &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/SplunkEnterpriseQuickReferenceGuide"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/SplunkEnterpriseQuickReferenceGuide&lt;/A&gt; as well&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 10:25:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-status-ERROR-or-SUCCESS-for-the-list-of-clients/m-p/277545#M83688</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2015-12-11T10:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the status (ERROR or SUCCESS) for the list of clients accessing the application</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-status-ERROR-or-SUCCESS-for-the-list-of-clients/m-p/277546#M83689</link>
      <description>&lt;P&gt;Thanks a lot Renjith!! now I am able to get the required tabular output&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 11:21:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-the-status-ERROR-or-SUCCESS-for-the-list-of-clients/m-p/277546#M83689</guid>
      <dc:creator>AmitKrJash</dc:creator>
      <dc:date>2015-12-11T11:21:45Z</dc:date>
    </item>
  </channel>
</rss>

