<?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: Exception logging by time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Exception-logging-by-time/m-p/64796#M13031</link>
    <description>&lt;P&gt;You need the &lt;CODE&gt;cluster&lt;/CODE&gt; command; try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=MySourceType exception | cluster showcount=t | table cluster_count _raw | sort -cluster_count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 29 May 2015 17:02:41 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-05-29T17:02:41Z</dc:date>
    <item>
      <title>Exception logging by time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exception-logging-by-time/m-p/64795#M13030</link>
      <description>&lt;P&gt;Hey Guys,&lt;/P&gt;

&lt;P&gt;I'm having problems analyzing log files, which are printing out exceptions, traces and exceptions that are an outcome of the first exception.&lt;/P&gt;

&lt;P&gt;So there are many lines caused by one exception which are presenting both other exceptions, caused by the first exception, and their traces.&lt;/P&gt;

&lt;P&gt;Here is an example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;876 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.261 | de.ct.commons.exception.ObjectNotFoundException: java.lang.reflect.InvocationTargetException
877 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.261 |     at de.ct.commons.facade.category.CategoryFacadeDefaultImpl.getCategoryByCode(CategoryFacadeDefaultImpl.java:92)
938 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.261 |     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
...
958 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.261 |     at java.lang.Thread.run(Thread.java:619)
959 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.261 | Caused by: de.ct.commons.exception.BaseException: java.lang.reflect.InvocationTargetException
961 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.261 |     at de.ct.commons.facade.category.CategoryFacadeDefaultImpl.getCategoryByCode(CategoryFacadeDefaultImpl.java:90)
962 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.261 |     ... 81 more
963 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.261 | Caused by: java.lang.reflect.InvocationTargetException
...
969 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.262 |     at de.ct.commons.cmd.HybrisCommandProcessor.execute(HybrisCommandProcessor.java:72)
970 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.262 |     ... 82 more
971 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.262 | Caused by: de.ct.commons.exception.ObjectNotFoundException: No category found with code men_flannel
972 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.262 |     at de.ct.commons.services.impl.CategoryServiceImpl.getHYCategory(CategoryServiceImpl.java:78)
973 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.262 |     at de.ct.commons.services.impl.CategoryServiceImpl.loadItemByCode(CategoryServiceImpl.java:33)
974 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.262 |     ... 88 more
975 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.462 | Jan 31, 2011 12:00:50 AM com.sun.facelets.FaceletViewHandler handleRenderException
976 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.462 | SEVERE: Error Rendering View[/pages/productoverview.xhtml]
978 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.462 |     at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:235)
979 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.462 |     at com.sun.facelets.tag.TagAttribute.getBoolean(TagAttribute.java:79)
974 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.262 |     ... 88 more
975 INFO   | jvm 1    | main    | 2011/01/31 00:00:50.462 | Jan 31, 2011 12:00:50 AM com.sun.facelets.FaceletViewHandler handleRenderException
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So as you can see on the time stamp, this is one event caused by an exception and causing other exceptions (from &lt;CODE&gt;00:00:50.261&lt;/CODE&gt; - &lt;CODE&gt;00:00:50.262&lt;/CODE&gt;) . What I want to do with splunk now is to get the exceptions (without their trace obviously) and list them, so I can analyze which of them occur with what frequency.&lt;/P&gt;

&lt;P&gt;I tried it with findtypes, typelearner, field extracter etc. but nothing would help me to find similar exceptions, group and list them so that I can work with the data.&lt;/P&gt;

&lt;P&gt;Can someone help me?
Thank you very much!&lt;/P&gt;

&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2011 21:14:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exception-logging-by-time/m-p/64795#M13030</guid>
      <dc:creator>ruffson</dc:creator>
      <dc:date>2011-03-22T21:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Exception logging by time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exception-logging-by-time/m-p/64796#M13031</link>
      <description>&lt;P&gt;You need the &lt;CODE&gt;cluster&lt;/CODE&gt; command; try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=MySourceType exception | cluster showcount=t | table cluster_count _raw | sort -cluster_count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 May 2015 17:02:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exception-logging-by-time/m-p/64796#M13031</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-29T17:02:41Z</dc:date>
    </item>
  </channel>
</rss>

