<?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 Exceptions count different when compared to creating event types in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Exceptions-count-different-when-compared-to-creating-event-types/m-p/258533#M2286</link>
    <description>&lt;P&gt;Hi I am a new to splunk and need help with a query:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;index=abc exception | rex ".&lt;/EM&gt;?(?(?:\w+.)+\w*?Exception).&lt;EM&gt;"| stats count by exception&lt;/EM&gt;&lt;BR /&gt;
When I use the above query, I am getting a table of exceptions and its count listed, as below &lt;/P&gt;

&lt;P&gt;com.system.enterprise.client.arcti.GeneralDomainCallException&lt;BR /&gt;
java.land.NullPointerException&lt;BR /&gt;
java.lang.RuntimeException&lt;BR /&gt;
java.lang.reflect.InvocationTargetException&lt;/P&gt;

&lt;P&gt;Here in this case I am getting a event count for java.land.NullPointerException as 3 events occured. &lt;BR /&gt;
I am trying to create an event type for this particular exception(java.land.NullPointerException) to add it as a tag to a jira, &lt;/P&gt;

&lt;P&gt;index=abc exception | rex ".&lt;EM&gt;?(?(?:\w+.)+\w&lt;/EM&gt;?Exception).*"| search exception="java.lang.NullPointerException"&lt;BR /&gt;
This above query cannot be saved as a event type, as its not accepting tubes "|"&lt;/P&gt;

&lt;P&gt;When i try to search specifically for java.land.NullPointerException using the below query-&lt;BR /&gt;
sourcetype=abc java.lang.NullPointerException*&lt;/P&gt;

&lt;P&gt;I am getting an event count as 220 events occured &lt;/P&gt;

&lt;P&gt;I am requesting some help to match the exact the event count numbers between my rex and event type query.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 11:27:25 GMT</pubDate>
    <dc:creator>girishgene07</dc:creator>
    <dc:date>2020-09-29T11:27:25Z</dc:date>
    <item>
      <title>Exceptions count different when compared to creating event types</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Exceptions-count-different-when-compared-to-creating-event-types/m-p/258533#M2286</link>
      <description>&lt;P&gt;Hi I am a new to splunk and need help with a query:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;index=abc exception | rex ".&lt;/EM&gt;?(?(?:\w+.)+\w*?Exception).&lt;EM&gt;"| stats count by exception&lt;/EM&gt;&lt;BR /&gt;
When I use the above query, I am getting a table of exceptions and its count listed, as below &lt;/P&gt;

&lt;P&gt;com.system.enterprise.client.arcti.GeneralDomainCallException&lt;BR /&gt;
java.land.NullPointerException&lt;BR /&gt;
java.lang.RuntimeException&lt;BR /&gt;
java.lang.reflect.InvocationTargetException&lt;/P&gt;

&lt;P&gt;Here in this case I am getting a event count for java.land.NullPointerException as 3 events occured. &lt;BR /&gt;
I am trying to create an event type for this particular exception(java.land.NullPointerException) to add it as a tag to a jira, &lt;/P&gt;

&lt;P&gt;index=abc exception | rex ".&lt;EM&gt;?(?(?:\w+.)+\w&lt;/EM&gt;?Exception).*"| search exception="java.lang.NullPointerException"&lt;BR /&gt;
This above query cannot be saved as a event type, as its not accepting tubes "|"&lt;/P&gt;

&lt;P&gt;When i try to search specifically for java.land.NullPointerException using the below query-&lt;BR /&gt;
sourcetype=abc java.lang.NullPointerException*&lt;/P&gt;

&lt;P&gt;I am getting an event count as 220 events occured &lt;/P&gt;

&lt;P&gt;I am requesting some help to match the exact the event count numbers between my rex and event type query.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:27:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Exceptions-count-different-when-compared-to-creating-event-types/m-p/258533#M2286</guid>
      <dc:creator>girishgene07</dc:creator>
      <dc:date>2020-09-29T11:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exceptions count different when compared to creating event types</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Exceptions-count-different-when-compared-to-creating-event-types/m-p/258534#M2287</link>
      <description>&lt;P&gt;Try these two searches&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=abc exception | rex "(?&amp;lt;exception&amp;gt;NullPointerException)"| stats count by exception
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;AND&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=abc java.lang.NullPointerException*
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Oct 2016 12:20:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Exceptions-count-different-when-compared-to-creating-event-types/m-p/258534#M2287</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-18T12:20:19Z</dc:date>
    </item>
  </channel>
</rss>

