<?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 retrieve top 20 errors from all application logs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-top-20-errors-from-all-application-logs/m-p/239651#M71192</link>
    <description>&lt;P&gt;This is because you search through many application-logs.&lt;/P&gt;

&lt;P&gt;Follow link to have information about &lt;STRONG&gt;tag&lt;/STRONG&gt;:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/Knowledge/Defineandusetags"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.5/Knowledge/Defineandusetags&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2016 12:01:33 GMT</pubDate>
    <dc:creator>ngatchasandra</dc:creator>
    <dc:date>2016-03-10T12:01:33Z</dc:date>
    <item>
      <title>How to retrieve top 20 errors from all application logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-top-20-errors-from-all-application-logs/m-p/239646#M71187</link>
      <description>&lt;P&gt;All my application logs are 'indexed' as 'customer'_application. The below shows all my Events just fine&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = *_application sourcetype = * source = * host = *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The below shows all my errors/Errors in all the Events just fine&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = *_application sourcetype = * source = * host = * error
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I know that error is not a field and it must be extracted first . Unfortunately I &lt;STRONG&gt;haven't&lt;/STRONG&gt; succeeded with that. &lt;BR /&gt;
Please note that &lt;STRONG&gt;all&lt;/STRONG&gt; the different application-logs are &lt;STRONG&gt;not&lt;/STRONG&gt; constructed (build) in the same way. The below gives me basically the desired setup, except that the 'error' message itself is missing.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*_application sourcetype=* source=* host=*  Error |  top limit=20 host sourcetype source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is it even possible to achieve this or is certain log pattern (structure) a must. If this would be possible, how?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 10:55:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-top-20-errors-from-all-application-logs/m-p/239646#M71187</guid>
      <dc:creator>edwinmae</dc:creator>
      <dc:date>2016-03-10T10:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve top 20 errors from all application logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-top-20-errors-from-all-application-logs/m-p/239647#M71188</link>
      <description>&lt;P&gt;Hi edwinmae,&lt;/P&gt;

&lt;P&gt;I think that It is normal that the error message is missing ,because your results (&lt;CODE&gt;index=*_application sourcetype=* source=* host=*  Error |  top limit=20 host sourcetype source&lt;/CODE&gt;) displayed in the form of table. you can click on  &lt;CODE&gt;Events&lt;/CODE&gt; tab to review&lt;BR /&gt;
&lt;CODE&gt;error&lt;/CODE&gt; in events.&lt;/P&gt;

&lt;P&gt;Assure you that you are in &lt;STRONG&gt;Verbose mode&lt;/STRONG&gt; before run your search query.&lt;/P&gt;

&lt;P&gt;So no problem! Your result matches the events that contain the &lt;CODE&gt;error&lt;/CODE&gt; message.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: Although all the different application-logs are not constructed  in the same way, you can extract individually " error" message in each application and then use the &lt;STRONG&gt;tag&lt;/STRONG&gt; concept to name them the same way .&lt;/P&gt;

&lt;P&gt;Link for tag concept: &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/Knowledge/Defineandusetags"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.5/Knowledge/Defineandusetags&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 11:16:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-top-20-errors-from-all-application-logs/m-p/239647#M71188</guid>
      <dc:creator>ngatchasandra</dc:creator>
      <dc:date>2016-03-10T11:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve top 20 errors from all application logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-top-20-errors-from-all-application-logs/m-p/239648#M71189</link>
      <description>&lt;P&gt;&lt;EM&gt;First of all --- Thanks for your quick response&lt;/EM&gt; &lt;/P&gt;

&lt;P&gt;The below gives me the desired output, &lt;STRONG&gt;except&lt;/STRONG&gt; for the message itself&lt;BR /&gt;
    index=&lt;EM&gt;_application sourcetype=&lt;/EM&gt; source=* host=*  Error |  top limit=20 host sourcetype source&lt;/P&gt;

&lt;P&gt;I am able to see the log 'messages/events' (with Error) by clicking on the 'log-file (links)' listed under sourcetype (after the search), &lt;STRONG&gt;but&lt;/STRONG&gt; I would like to have have an additional column like 'message' that shows me (only) the errors that occured most.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=*_application sourcetype=* source=* host=*  Error |  top limit=20 host sourcetype source message
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I know there is &lt;STRONG&gt;no&lt;/STRONG&gt; field like message; I tried to get the errors listed with rex but was unsuccessful to achieve this.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 11:46:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-top-20-errors-from-all-application-logs/m-p/239648#M71189</guid>
      <dc:creator>edwinmae</dc:creator>
      <dc:date>2016-03-10T11:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve top 20 errors from all application logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-top-20-errors-from-all-application-logs/m-p/239649#M71190</link>
      <description>&lt;P&gt;Although all the different application-logs are not constructed in the same way, you can extract individually " error" message in each application and then use the tag concept to name them the same way .&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 11:54:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-top-20-errors-from-all-application-logs/m-p/239649#M71190</guid>
      <dc:creator>ngatchasandra</dc:creator>
      <dc:date>2016-03-10T11:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve top 20 errors from all application logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-top-20-errors-from-all-application-logs/m-p/239650#M71191</link>
      <description>&lt;P&gt;In this case, you will give &lt;STRONG&gt;message&lt;/STRONG&gt; like the name of your &lt;STRONG&gt;tag&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 11:59:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-top-20-errors-from-all-application-logs/m-p/239650#M71191</guid>
      <dc:creator>ngatchasandra</dc:creator>
      <dc:date>2016-03-10T11:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve top 20 errors from all application logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-top-20-errors-from-all-application-logs/m-p/239651#M71192</link>
      <description>&lt;P&gt;This is because you search through many application-logs.&lt;/P&gt;

&lt;P&gt;Follow link to have information about &lt;STRONG&gt;tag&lt;/STRONG&gt;:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/Knowledge/Defineandusetags"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.5/Knowledge/Defineandusetags&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 12:01:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-retrieve-top-20-errors-from-all-application-logs/m-p/239651#M71192</guid>
      <dc:creator>ngatchasandra</dc:creator>
      <dc:date>2016-03-10T12:01:33Z</dc:date>
    </item>
  </channel>
</rss>

