<?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 get the number of errors for each application ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-number-of-errors-for-each-application/m-p/459025#M191291</link>
    <description>&lt;P&gt;hi @lsy9891 &lt;BR /&gt;
you are using sourcetype=access_* ( 404 OR 500 OR 503 ), which means you are accessing all sourcetypes starting with access&lt;BR /&gt;
you can use a query like this, for determining your indexes&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="*" 
|stats values(source),values(sourcetype) by index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Run this for last 15 mins (DO NOT RUN FOR ALL TIME  / 24 HRS) and you should get all your index, source n sourcetypes listed. You need to choose the relevant ones.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2019 16:06:04 GMT</pubDate>
    <dc:creator>Sukisen1981</dc:creator>
    <dc:date>2019-08-23T16:06:04Z</dc:date>
    <item>
      <title>How to get the number of errors for each application ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-number-of-errors-for-each-application/m-p/459022#M191288</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm new to Splunk and so far I've managed to get the number of errors but I do not know for which application? I know we need an index and host but what exactly should be the index? Here's what I tried.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; error OR failed OR severe OR ( sourcetype=access_* ( 404 OR 500 OR 503 ) ) | stats count by error
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Aug 2019 08:59:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-number-of-errors-for-each-application/m-p/459022#M191288</guid>
      <dc:creator>lsy9891</dc:creator>
      <dc:date>2019-08-22T08:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the number of errors for each application ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-number-of-errors-for-each-application/m-p/459023#M191289</link>
      <description>&lt;P&gt;can you paste what values your index,source and surcetype fields contain?&lt;BR /&gt;
Ideally you should consider naming your indexes after your applications and let them pick different folders, app logs whatever it is from the default source n sourcetypes&lt;BR /&gt;
Host will typically be your server name , like xxx_prod_1.0 or something like that&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:51:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-number-of-errors-for-each-application/m-p/459023#M191289</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2020-09-30T01:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the number of errors for each application ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-number-of-errors-for-each-application/m-p/459024#M191290</link>
      <description>&lt;P&gt;Hi,may I know how to get the index, source and sourcetype fields of the app?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 13:39:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-number-of-errors-for-each-application/m-p/459024#M191290</guid>
      <dc:creator>lsy9891</dc:creator>
      <dc:date>2019-08-23T13:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the number of errors for each application ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-number-of-errors-for-each-application/m-p/459025#M191291</link>
      <description>&lt;P&gt;hi @lsy9891 &lt;BR /&gt;
you are using sourcetype=access_* ( 404 OR 500 OR 503 ), which means you are accessing all sourcetypes starting with access&lt;BR /&gt;
you can use a query like this, for determining your indexes&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="*" 
|stats values(source),values(sourcetype) by index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Run this for last 15 mins (DO NOT RUN FOR ALL TIME  / 24 HRS) and you should get all your index, source n sourcetypes listed. You need to choose the relevant ones.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 16:06:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-number-of-errors-for-each-application/m-p/459025#M191291</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-23T16:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the number of errors for each application ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-number-of-errors-for-each-application/m-p/459026#M191292</link>
      <description>&lt;P&gt;In the list of fields on the left side you can click them and click on the "Top Values" report to get a breakdown of the top counts for the field you select. It basically just adds "| top limit=20 x" to the end of your query where x is the field you clicked.&lt;BR /&gt;
If I want a count of how many errors are coming from each app I would use that to make this query:&lt;BR /&gt;
severity=ERROR| top limit=20 source&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 17:05:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-number-of-errors-for-each-application/m-p/459026#M191292</guid>
      <dc:creator>sixcorners</dc:creator>
      <dc:date>2019-08-23T17:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the number of errors for each application ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-number-of-errors-for-each-application/m-p/459027#M191293</link>
      <description>&lt;P&gt;Hi, I've managed to get the number of errors however, I tried to  extract all the application names using regex  but some are omitted. This is the rex I used: &lt;/P&gt;

&lt;P&gt;rex field=WindowsIdentity "(?P\w+.\w+)".  The field I'm supposed to extract is anything after the ISS APPOOL and just before the .monster. For example,&lt;/P&gt;

&lt;P&gt;IIS APPPOOL\  &lt;STRONG&gt;jobs&lt;/STRONG&gt;.monster.com&lt;BR /&gt;
IIS APPPOOL\  *&lt;EM&gt;hiring.channels *&lt;/EM&gt;.monster.com_jcm&lt;BR /&gt;
IIS APPPOOL\  *&lt;EM&gt;wwwcs.channels *&lt;/EM&gt;.monster.com&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 06:05:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-number-of-errors-for-each-application/m-p/459027#M191293</guid>
      <dc:creator>lsy9891</dc:creator>
      <dc:date>2019-08-29T06:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the number of errors for each application ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-number-of-errors-for-each-application/m-p/459028#M191294</link>
      <description>&lt;P&gt;hi @lsy9891 &lt;BR /&gt;
You have posted a separate question for the rex and that has been answered as well, you can extract these values using the rex below as well &lt;CODE&gt;|  rex field=WindowsIdentity "\\\+(?&amp;lt;Description&amp;gt;.*?)\.+monster"&lt;/CODE&gt;&lt;BR /&gt;
can you give examples where rex is failing?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 07:10:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-number-of-errors-for-each-application/m-p/459028#M191294</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-29T07:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the number of errors for each application ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-number-of-errors-for-each-application/m-p/459029#M191295</link>
      <description>&lt;P&gt;You can get a better view with a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=* OR index=_*) AND (error OR failed OR severe OR ( sourcetype=access_* ( 404 OR 500 OR 503 ) ))
| stats first(_raw) last(_raw) values(host) count BY punct sourcetype index
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Sep 2019 14:50:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-the-number-of-errors-for-each-application/m-p/459029#M191295</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-09-03T14:50:02Z</dc:date>
    </item>
  </channel>
</rss>

