<?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: Parsing appears to mangle part of a java stack trace in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-appears-to-mangle-part-of-a-java-stack-trace/m-p/75790#M15471</link>
    <description>&lt;P&gt;Not a direct answer to your question , but an alternative suggestion.&lt;/P&gt;

&lt;P&gt;Have you taken a look at &lt;A href="https://github.com/damiendallimore/SplunkJavaLogging"&gt;SplunkJavaLogging&lt;/A&gt; ?&lt;/P&gt;

&lt;P&gt;It has custom Splunk logging appenders for Log4j and LogBack that will forward your events to Splunk via HTTP Rest or TCP, and the events will be formatted in best practice logging semantic.&lt;/P&gt;

&lt;P&gt;It also makes it REALLY easy to Splunk Java stacktraces and handle the stace trace elements as multi value fields.&lt;/P&gt;

&lt;P&gt;Have a look at the &lt;A href="https://gist.github.com/3263731"&gt;throwableExample() method in this code example&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Oct 2012 04:33:11 GMT</pubDate>
    <dc:creator>Damien_Dallimor</dc:creator>
    <dc:date>2012-10-02T04:33:11Z</dc:date>
    <item>
      <title>Parsing appears to mangle part of a java stack trace</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-appears-to-mangle-part-of-a-java-stack-trace/m-p/75789#M15470</link>
      <description>&lt;P&gt;I have an odd problem with some of my stack traces, which I have never seen before. It appears the delimiting punctuation gets stripped out of the trailing part of my stack traces. Anyone know why this might be happening? &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The parsed and indexed event:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; at $Proxy27.service(Unknown Source)  
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
    at .javalang.reflect.Method.invoke(Unknown Source)  
    at ....()  
     ..orgspringframeworkexpressionspelsupportReflectiveMethodExecutorexecute:.ReflectiveMethodExecutorjava69at....()  
     ..orgspringframeworkexpressionspelastMethodReferencegetValueInternal:.MethodReferencejava83at....()
     ..orgspringframeworkexpressionspelastCompoundExpressiongetValueInternal:.CompoundExpressionjava57at....()  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Vs. the source:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
    at java.lang.reflect.Method.invoke(Unknown Source)  
    at org.springframework.expression.spel.support.ReflectiveMethodExecutor.execute(ReflectiveMethodExecutor.java:69)  
    at org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:83)  
    at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:57)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am using the 4.3.4 indexer, 4.3.4 forwarder. My props.conf:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;MAX_EVENTS=50000&lt;BR /&gt;
NO_BINARY_CHECK=1&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=30&lt;BR /&gt;
TIME_PREFIX=^\[&lt;BR /&gt;
TRUNCATE=0&lt;BR /&gt;
BREAK_ONLY_BEFORE=^\[\d{4}&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2012 03:55:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-appears-to-mangle-part-of-a-java-stack-trace/m-p/75789#M15470</guid>
      <dc:creator>gregb</dc:creator>
      <dc:date>2012-10-01T03:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing appears to mangle part of a java stack trace</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-appears-to-mangle-part-of-a-java-stack-trace/m-p/75790#M15471</link>
      <description>&lt;P&gt;Not a direct answer to your question , but an alternative suggestion.&lt;/P&gt;

&lt;P&gt;Have you taken a look at &lt;A href="https://github.com/damiendallimore/SplunkJavaLogging"&gt;SplunkJavaLogging&lt;/A&gt; ?&lt;/P&gt;

&lt;P&gt;It has custom Splunk logging appenders for Log4j and LogBack that will forward your events to Splunk via HTTP Rest or TCP, and the events will be formatted in best practice logging semantic.&lt;/P&gt;

&lt;P&gt;It also makes it REALLY easy to Splunk Java stacktraces and handle the stace trace elements as multi value fields.&lt;/P&gt;

&lt;P&gt;Have a look at the &lt;A href="https://gist.github.com/3263731"&gt;throwableExample() method in this code example&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2012 04:33:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-appears-to-mangle-part-of-a-java-stack-trace/m-p/75790#M15471</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-10-02T04:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing appears to mangle part of a java stack trace</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-appears-to-mangle-part-of-a-java-stack-trace/m-p/75791#M15472</link>
      <description>&lt;P&gt;Thanks for the response. I am not a big fan of intimately&lt;BR /&gt;
tying my application to the splunk server. If for any reason the splunk server was offline, I would lose log events. &lt;/P&gt;

&lt;P&gt;The issue though, is that I have used this props.conf  configuration with the corresponding log4j conversion pattern for a long time and this is the first time I have seen this. Whats more, considering this appears to be a parser issue (since the source is good), I couldnt say SplunkJavaLogging would result in any different behavior.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2012 20:55:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-appears-to-mangle-part-of-a-java-stack-trace/m-p/75791#M15472</guid>
      <dc:creator>gregb</dc:creator>
      <dc:date>2012-10-02T20:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing appears to mangle part of a java stack trace</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-appears-to-mangle-part-of-a-java-stack-trace/m-p/75792#M15473</link>
      <description>&lt;P&gt;&lt;EM&gt;"...tying my application to the splunk server..."&lt;/EM&gt; &amp;gt; you aren't.Logging appenders faciliate abstraction of the underlying log destination.Thats the point of log4j, logback, and higher level facades such as SLF4J.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;"...If for any reason the splunk server was offline, I would lose log events....."&lt;/EM&gt; &amp;gt; SplunkJavaLogging has in built fault tolerance if the Splunk Indexer is down.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;"...I couldnt say SplunkJavaLogging would result in any different behavior...."&lt;/EM&gt; &amp;gt; SplunkJavaLogging can format your stacktraces in a best practice semantic format vs the birds nest that is the standard printStackTrace output that you are currently having parsing issues with.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2012 07:39:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-appears-to-mangle-part-of-a-java-stack-trace/m-p/75792#M15473</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2012-10-03T07:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing appears to mangle part of a java stack trace</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-appears-to-mangle-part-of-a-java-stack-trace/m-p/75793#M15474</link>
      <description>&lt;P&gt;Technically, you are. Granted the facades hide the tight coupling, your splunk server still becomes critical to your application infrastructure. While we have been exploring getting Splunk to become a first class citizen in our application technology stack, its still early in that conversation. &lt;/P&gt;

&lt;P&gt;Also, in your summary, you do say "for whatever reason..., that a UF can not be deployed.In this case, Splunk Java Logging can be used to forward events to Splunk... SplunkLogEvent class to construct your log events in best practice semantic format." &lt;/P&gt;

&lt;P&gt;I will definitely check out the SplunkLogEvent.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2012 14:56:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-appears-to-mangle-part-of-a-java-stack-trace/m-p/75793#M15474</guid>
      <dc:creator>gregb</dc:creator>
      <dc:date>2012-10-05T14:56:50Z</dc:date>
    </item>
  </channel>
</rss>

