<?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: Displaying 2 counts (error and total) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502827#M139924</link>
    <description>&lt;P&gt;error message has to be extracted from raw text. Then i need to display total events count and error events count.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Mar 2020 18:44:15 GMT</pubDate>
    <dc:creator>shashankjuloori</dc:creator>
    <dc:date>2020-03-24T18:44:15Z</dc:date>
    <item>
      <title>Displaying 2 counts (error and total)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502825#M139922</link>
      <description>&lt;P&gt;There is a requirement in which i need to display total count and errors(in total count). error message is in raw text.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 17:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502825#M139922</guid>
      <dc:creator>shashankjuloori</dc:creator>
      <dc:date>2020-03-24T17:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 2 counts (error and total)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502826#M139923</link>
      <description>&lt;P&gt;Hi shashankjuloori.&lt;/P&gt;

&lt;P&gt;Not a lot to go on here.    is the error message extracted in a field or only in _raw?    Can you share an event or two of sample data to help out a bit|?&lt;/P&gt;

&lt;P&gt;./d   &lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 18:30:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502826#M139923</guid>
      <dc:creator>darrenfuller</dc:creator>
      <dc:date>2020-03-24T18:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 2 counts (error and total)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502827#M139924</link>
      <description>&lt;P&gt;error message has to be extracted from raw text. Then i need to display total events count and error events count.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 18:44:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502827#M139924</guid>
      <dc:creator>shashankjuloori</dc:creator>
      <dc:date>2020-03-24T18:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 2 counts (error and total)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502828#M139925</link>
      <description>&lt;P&gt;Still not enough to work with.  Please provide some sample events (mask private data) and desired output.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 19:09:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502828#M139925</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-24T19:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 2 counts (error and total)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502829#M139926</link>
      <description>&lt;P&gt;field1= || field2= || field3= ||  message------------error text ----------/message&lt;BR /&gt;
this is the error message structure.&lt;/P&gt;

&lt;P&gt;here i need to separate the events which contains error text, suppose it to be errors and display both total count and error count.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 19:21:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502829#M139926</guid>
      <dc:creator>shashankjuloori</dc:creator>
      <dc:date>2020-03-24T19:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 2 counts (error and total)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502830#M139927</link>
      <description>&lt;P&gt;we can extract &lt;CODE&gt;error text&lt;/CODE&gt; and &lt;CODE&gt;message&lt;/CODE&gt;&lt;BR /&gt;
but, isn't these actual logs?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 21:24:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502830#M139927</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-24T21:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 2 counts (error and total)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502831#M139928</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex to create error_text
| stats dc(error_text) AS "error count" count AS "total count" by foundation
| eventstats sum('total count') AS "grand total count"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Mar 2020 23:30:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502831#M139928</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-24T23:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 2 counts (error and total)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502832#M139929</link>
      <description>&lt;P&gt;Sorry, i cant paste the logs due to security reasons.&lt;BR /&gt;
Events are logged based on the field &lt;CODE&gt;foundation&lt;/CODE&gt;, suppose A, B, C.&lt;BR /&gt;
 and logs will be like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* Foundation=A | field1 | field2| ...message......errortest.../message
index=* Foundation=A | field1 | field2| ...message......errortest.../message
index=* Foundation=B | field1 | field2| ...message......errortest.../message
index=* Foundation=C | field1 | field2| ...message......errortest.../message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;here i need to segregate the events based on the &lt;CODE&gt;error text&lt;/CODE&gt; and &lt;CODE&gt;total count&lt;/CODE&gt;, and the output should be like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Foundation        |  error count   | total count
   A            count             count
   B            count             count
   C            count            count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and i am sorry for messing up the things.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 10:39:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502832#M139929</guid>
      <dc:creator>shashankjuloori</dc:creator>
      <dc:date>2020-03-25T10:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 2 counts (error and total)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502833#M139930</link>
      <description>&lt;P&gt;Vague questions beget vague answers.  @woodcock has the general idea. We must leave it to you to figure out how to extract the error text from each message since we don't have enough information about the structure of the messages.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 12:48:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502833#M139930</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-25T12:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 2 counts (error and total)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502834#M139931</link>
      <description>&lt;P&gt;I updated my vague answer.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 14:14:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502834#M139931</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-25T14:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying 2 counts (error and total)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502835#M139932</link>
      <description>&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Mar 2020 14:16:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Displaying-2-counts-error-and-total/m-p/502835#M139932</guid>
      <dc:creator>shashankjuloori</dc:creator>
      <dc:date>2020-03-25T14:16:37Z</dc:date>
    </item>
  </channel>
</rss>

