<?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 errors for only a certain application? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-errors-for-only-a-certain-application/m-p/465697#M131180</link>
    <description>&lt;P&gt;You basically need to apply the filter based on &lt;CODE&gt;Application&lt;/CODE&gt; field. If the field &lt;CODE&gt;Application&lt;/CODE&gt; is already extracted (coming as part of the base search), you'd apply the filter&lt;CODE&gt;Application="YourAppNameHere"&lt;/CODE&gt; in the base search. If The field &lt;CODE&gt;Application&lt;/CODE&gt; is not already extracted and you're extracting it via that &lt;CODE&gt;rex&lt;/CODE&gt; command in your search, you'll apply filter after the field is extracted.&lt;/P&gt;

&lt;P&gt;Base search filter:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=* OR index=_*) (host="NETWEBA*" OR host="NETWEBB*" OR host="NETAPPA*" OR host="WEBADMIN*") Exception Application="YourAppNameHere" earliest=-7d@d latest=@d | rex field=WindowsIdentity "\\\+(?&amp;lt;Somefieldname&amp;gt;.*?)\.+monster" | timechart span=1h count by Application
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Filter after subsearch&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=* OR index=_*) (host="NETWEBA*" OR host="NETWEBB*" OR host="NETAPPA*" OR host="WEBADMIN*") Exception earliest=-7d@d latest=@d | rex field=WindowsIdentity "\\\+(?&amp;lt;Application&amp;gt;.*?)\.+monster" | where Application="YourAppNameHere" | timechart span=1h count by Application
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 29 Aug 2019 13:41:06 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2019-08-29T13:41:06Z</dc:date>
    <item>
      <title>How to count errors for only a certain application?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-errors-for-only-a-certain-application/m-p/465694#M131177</link>
      <description>&lt;P&gt;Hi, my query returns exceptions thrown by every application. How do I filter this query to display only certain applications like Application="jobs"?&lt;/P&gt;

&lt;P&gt;(index= OR index=_) (host="NETWEBA*" OR host="NETWEBB*" OR host="NETAPPA*" OR host="WEBADMIN*") Exception earliest=-7d@d latest=@d | rex field=WindowsIdentity "\+(?.*?).+monster" | timechart span=1h count by Application&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:57:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-errors-for-only-a-certain-application/m-p/465694#M131177</guid>
      <dc:creator>lsy9891</dc:creator>
      <dc:date>2020-09-30T01:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to count errors for only a certain application?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-errors-for-only-a-certain-application/m-p/465695#M131178</link>
      <description>&lt;P&gt;@lsy9891,&lt;/P&gt;

&lt;P&gt;Have you tried adding the condition to the base search ? &lt;/P&gt;

&lt;P&gt;ie.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  (index= OR index=_) ......... Application="jobs" earliest=-7d@d latest=@d 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If there are multiple applications , you could try with &lt;CODE&gt;OR&lt;/CODE&gt; or &lt;CODE&gt;IN&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 12:43:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-errors-for-only-a-certain-application/m-p/465695#M131178</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-08-29T12:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to count errors for only a certain application?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-errors-for-only-a-certain-application/m-p/465696#M131179</link>
      <description>&lt;P&gt;what all have you tried so far @lsy9891 ?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 12:47:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-errors-for-only-a-certain-application/m-p/465696#M131179</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-29T12:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to count errors for only a certain application?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-errors-for-only-a-certain-application/m-p/465697#M131180</link>
      <description>&lt;P&gt;You basically need to apply the filter based on &lt;CODE&gt;Application&lt;/CODE&gt; field. If the field &lt;CODE&gt;Application&lt;/CODE&gt; is already extracted (coming as part of the base search), you'd apply the filter&lt;CODE&gt;Application="YourAppNameHere"&lt;/CODE&gt; in the base search. If The field &lt;CODE&gt;Application&lt;/CODE&gt; is not already extracted and you're extracting it via that &lt;CODE&gt;rex&lt;/CODE&gt; command in your search, you'll apply filter after the field is extracted.&lt;/P&gt;

&lt;P&gt;Base search filter:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=* OR index=_*) (host="NETWEBA*" OR host="NETWEBB*" OR host="NETAPPA*" OR host="WEBADMIN*") Exception Application="YourAppNameHere" earliest=-7d@d latest=@d | rex field=WindowsIdentity "\\\+(?&amp;lt;Somefieldname&amp;gt;.*?)\.+monster" | timechart span=1h count by Application
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Filter after subsearch&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=* OR index=_*) (host="NETWEBA*" OR host="NETWEBB*" OR host="NETAPPA*" OR host="WEBADMIN*") Exception earliest=-7d@d latest=@d | rex field=WindowsIdentity "\\\+(?&amp;lt;Application&amp;gt;.*?)\.+monster" | where Application="YourAppNameHere" | timechart span=1h count by Application
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Aug 2019 13:41:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-errors-for-only-a-certain-application/m-p/465697#M131180</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-08-29T13:41:06Z</dc:date>
    </item>
  </channel>
</rss>

