<?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 search top 10 error codes in an environment? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-top-10-error-codes-in-an-environment/m-p/282660#M85353</link>
    <description>&lt;P&gt;Assuming you have the err_cd field extracted, you just need to &lt;CODE&gt;top&lt;/CODE&gt; command. Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search here | top err_cd | fields - count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will give you top 10 err_cd, count and percent. The &lt;CODE&gt;fields - count&lt;/CODE&gt; command will remove the &lt;CODE&gt;count&lt;/CODE&gt; field from display.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/SearchReference/Top"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/SearchReference/Top&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2016 11:49:22 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-06-07T11:49:22Z</dc:date>
    <item>
      <title>How to search top 10 error codes in an environment?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-top-10-error-codes-in-an-environment/m-p/282659#M85352</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;

&lt;P&gt;I am new to Splunk and was looking for a search which can give me the list of the top 10 error codes occurring in an environment. Could anyone suggest on this?&lt;/P&gt;

&lt;P&gt;I think I have to use stats and top commands, but not sure on how to list top 10 error codes.&lt;/P&gt;

&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 10:44:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-top-10-error-codes-in-an-environment/m-p/282659#M85352</guid>
      <dc:creator>ss78246</dc:creator>
      <dc:date>2016-06-07T10:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to search top 10 error codes in an environment?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-top-10-error-codes-in-an-environment/m-p/282660#M85353</link>
      <description>&lt;P&gt;Assuming you have the err_cd field extracted, you just need to &lt;CODE&gt;top&lt;/CODE&gt; command. Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search here | top err_cd | fields - count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will give you top 10 err_cd, count and percent. The &lt;CODE&gt;fields - count&lt;/CODE&gt; command will remove the &lt;CODE&gt;count&lt;/CODE&gt; field from display.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/SearchReference/Top"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/SearchReference/Top&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 11:49:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-top-10-error-codes-in-an-environment/m-p/282660#M85353</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-06-07T11:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to search top 10 error codes in an environment?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-top-10-error-codes-in-an-environment/m-p/282661#M85354</link>
      <description>&lt;P&gt;HI Sundaresh.&lt;/P&gt;

&lt;P&gt;Thanks for the update.&lt;BR /&gt;
  I am searching for error codes from log files in an environment.&lt;BR /&gt;
  How could I separate out only error code from the logs .&lt;BR /&gt;
  I mean error codes can be like err20 or err31 , just an example.&lt;/P&gt;

&lt;P&gt;And also  could you suggest on how I can use error code as field in top command.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 05:18:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-top-10-error-codes-in-an-environment/m-p/282661#M85354</guid>
      <dc:creator>ss78246</dc:creator>
      <dc:date>2016-06-08T05:18:19Z</dc:date>
    </item>
  </channel>
</rss>

