<?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 How to group type of exceptions in the log ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-type-of-exceptions-in-the-log/m-p/91840#M23689</link>
    <description>&lt;P&gt;Hi!&lt;BR /&gt;
I am a relative new user of Splunk so I have only used basic search that works fine.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;BR /&gt;
I'm a member of a team that maintenance a big Delphi application. That is deployed on 4 servers. If there is an exception in the application that is logged in a textfile.&lt;BR /&gt;
This is an example how it could look like in the log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;20110429 14:39:07 (16616) [EXCEPTION] Raised EBoldOperationFailedForObjectList: Optimistic locking failed for the following 2 objects:Id: 119993351, Id: 119993879. At Location BoldSystemPersistenceHandler.TBoldSystemPersistenceHandler.UpdateDatabaseWithList (BoldSystemPersistenceHandler.pas:500)
Inner Exception Raised EBoldOperationFailedForObjectList: Optimistic locking failed for the following 2 objects:Id: 119993351, Id: 119993879. At Location BoldSystemPersistenceHandler.TBoldSystemPersistenceHandler.UpdateDatabaseWithList (BoldSystemPersistenceHandler.pas:500)
Call Stack:
    [00] BoldSystemPersistenceHandler.TBoldSystemPersistenceHandler.UpdateDatabaseWithList (BoldSystemPersistenceHandler.pas:500)
    [01] BoldSystem.TBoldSystem.UpdateDatabaseWithList (BoldSystem.pas:1868)
    [02] BoldSystem.TBoldSystem.UpdateDatabase (BoldSystem.pas:1860)
    [03] AttracsDBSync.TATSyncPersistenceHandle.DBSync (..\server\units\AttracsDBSync.pas:1071)
    [04] AttracsDBSync.TATSyncPersistenceHandle.SyncSystemWithDatabase (..\server\units\AttracsDBSync.pas:1131)
    [05] DMAttracs.TServerData.SyncSystemWithDatabase (..\server\code\DMAttracs.pas:467)
    [06] DMAttracs.TServerData.ApplicationEventsIdle (..\server\code\DMAttracs.pas:494)
    [07] AppEvnts.TCustomApplicationEvents.DoIdle (AppEvnts.pas:216)
    [08] Forms.TApplication.Idle (Forms.pas:8533)
    [09] Forms.TApplication.HandleMessage (Forms.pas:8124)    
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;BR /&gt;
If I for example search for "[EXCEPTION]" I got a lot of hits like the one above. This is of type EBoldOperationFailedForObjectList but there are also many others.&lt;/P&gt;

&lt;P&gt;Is there a way to count each typ of exception ?&lt;BR /&gt;
For example if I have 15 exceptions today maybe 5 of those are EBoldOperationFailedForObjectList, 3 are EAccessViolation, 7 are EInvalidCast then I got this list:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;EBoldOperationFailedForObjectList 5&lt;/LI&gt;
&lt;LI&gt;EAccessViolation 3&lt;/LI&gt;
&lt;LI&gt;EInvalidCast 7&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Is it possible to get such list from Splunk or maybe a graph ?&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;Roland&lt;BR /&gt;
Team Attracs&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2011 12:55:33 GMT</pubDate>
    <dc:creator>Bero</dc:creator>
    <dc:date>2011-04-29T12:55:33Z</dc:date>
    <item>
      <title>How to group type of exceptions in the log ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-type-of-exceptions-in-the-log/m-p/91840#M23689</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;
I am a relative new user of Splunk so I have only used basic search that works fine.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;BR /&gt;
I'm a member of a team that maintenance a big Delphi application. That is deployed on 4 servers. If there is an exception in the application that is logged in a textfile.&lt;BR /&gt;
This is an example how it could look like in the log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;20110429 14:39:07 (16616) [EXCEPTION] Raised EBoldOperationFailedForObjectList: Optimistic locking failed for the following 2 objects:Id: 119993351, Id: 119993879. At Location BoldSystemPersistenceHandler.TBoldSystemPersistenceHandler.UpdateDatabaseWithList (BoldSystemPersistenceHandler.pas:500)
Inner Exception Raised EBoldOperationFailedForObjectList: Optimistic locking failed for the following 2 objects:Id: 119993351, Id: 119993879. At Location BoldSystemPersistenceHandler.TBoldSystemPersistenceHandler.UpdateDatabaseWithList (BoldSystemPersistenceHandler.pas:500)
Call Stack:
    [00] BoldSystemPersistenceHandler.TBoldSystemPersistenceHandler.UpdateDatabaseWithList (BoldSystemPersistenceHandler.pas:500)
    [01] BoldSystem.TBoldSystem.UpdateDatabaseWithList (BoldSystem.pas:1868)
    [02] BoldSystem.TBoldSystem.UpdateDatabase (BoldSystem.pas:1860)
    [03] AttracsDBSync.TATSyncPersistenceHandle.DBSync (..\server\units\AttracsDBSync.pas:1071)
    [04] AttracsDBSync.TATSyncPersistenceHandle.SyncSystemWithDatabase (..\server\units\AttracsDBSync.pas:1131)
    [05] DMAttracs.TServerData.SyncSystemWithDatabase (..\server\code\DMAttracs.pas:467)
    [06] DMAttracs.TServerData.ApplicationEventsIdle (..\server\code\DMAttracs.pas:494)
    [07] AppEvnts.TCustomApplicationEvents.DoIdle (AppEvnts.pas:216)
    [08] Forms.TApplication.Idle (Forms.pas:8533)
    [09] Forms.TApplication.HandleMessage (Forms.pas:8124)    
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;BR /&gt;
If I for example search for "[EXCEPTION]" I got a lot of hits like the one above. This is of type EBoldOperationFailedForObjectList but there are also many others.&lt;/P&gt;

&lt;P&gt;Is there a way to count each typ of exception ?&lt;BR /&gt;
For example if I have 15 exceptions today maybe 5 of those are EBoldOperationFailedForObjectList, 3 are EAccessViolation, 7 are EInvalidCast then I got this list:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;EBoldOperationFailedForObjectList 5&lt;/LI&gt;
&lt;LI&gt;EAccessViolation 3&lt;/LI&gt;
&lt;LI&gt;EInvalidCast 7&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Is it possible to get such list from Splunk or maybe a graph ?&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;Roland&lt;BR /&gt;
Team Attracs&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2011 12:55:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-type-of-exceptions-in-the-log/m-p/91840#M23689</guid>
      <dc:creator>Bero</dc:creator>
      <dc:date>2011-04-29T12:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to group type of exceptions in the log ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-type-of-exceptions-in-the-log/m-p/91841#M23690</link>
      <description>&lt;P&gt;Sounds like you need to do a field extraction for the Exceptions :&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.2.1/Knowledge/Addfieldsatsearchtime"&gt;http://www.splunk.com/base/Documentation/4.2.1/Knowledge/Addfieldsatsearchtime&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Then you can drill down and perform counts based on field with the stats command:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.2.1/SearchReference/Stats"&gt;http://www.splunk.com/base/Documentation/4.2.1/SearchReference/Stats&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2011 13:19:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-type-of-exceptions-in-the-log/m-p/91841#M23690</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2011-04-29T13:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to group type of exceptions in the log ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-type-of-exceptions-in-the-log/m-p/91842#M23691</link>
      <description>&lt;P&gt;As JSapienza says, you want to do work with field extractions, but you can start with something like:&lt;/P&gt;

&lt;PRE&gt;
"EXCEPTION" | rex field=_raw "Raised (?&amp;lt;reason&amp;gt;\w+):" | chart count by reason
&lt;/PRE&gt;

&lt;P&gt;You can also play around with "| stats count by reason"&lt;/P&gt;

&lt;P&gt;There is also no doubt a better way to express the RegEx, such as possibly:&lt;/P&gt;

&lt;PRE&gt;
 rex field=_raw "Raised (?&lt;REASON&gt;\w+)[:]" 
&lt;/REASON&gt;&lt;/PRE&gt;

&lt;P&gt;But I'm horrible with RegEx.&lt;/P&gt;</description>
      <pubDate>Sun, 01 May 2011 09:08:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-type-of-exceptions-in-the-log/m-p/91842#M23691</guid>
      <dc:creator>howyagoin</dc:creator>
      <dc:date>2011-05-01T09:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to group type of exceptions in the log ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-type-of-exceptions-in-the-log/m-p/91843#M23692</link>
      <description>&lt;P&gt;Im really impressed of what Splunk can do with some knowledge &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Anyway this is want I want. Thanks!!!&lt;/P&gt;</description>
      <pubDate>Sun, 01 May 2011 19:51:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-type-of-exceptions-in-the-log/m-p/91843#M23692</guid>
      <dc:creator>Bero</dc:creator>
      <dc:date>2011-05-01T19:51:30Z</dc:date>
    </item>
  </channel>
</rss>

