<?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 calculate what percentage of bytes are Java stacktraces of indexed Java application logs? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-what-percentage-of-bytes-are-Java-stacktraces/m-p/110705#M28939</link>
    <description>&lt;P&gt;We are currently indexing logs from various Java applications. Does anyone know of some way we can calculate how much of those logs in one index are Java stacktraces, ideally as a percentage of bytes?&lt;/P&gt;</description>
    <pubDate>Thu, 04 Sep 2014 07:03:37 GMT</pubDate>
    <dc:creator>Bohrnag</dc:creator>
    <dc:date>2014-09-04T07:03:37Z</dc:date>
    <item>
      <title>How to calculate what percentage of bytes are Java stacktraces of indexed Java application logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-what-percentage-of-bytes-are-Java-stacktraces/m-p/110705#M28939</link>
      <description>&lt;P&gt;We are currently indexing logs from various Java applications. Does anyone know of some way we can calculate how much of those logs in one index are Java stacktraces, ideally as a percentage of bytes?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2014 07:03:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-what-percentage-of-bytes-are-Java-stacktraces/m-p/110705#M28939</guid>
      <dc:creator>Bohrnag</dc:creator>
      <dc:date>2014-09-04T07:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate what percentage of bytes are Java stacktraces of indexed Java application logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-what-percentage-of-bytes-are-Java-stacktraces/m-p/110706#M28940</link>
      <description>&lt;P&gt;Something like this might work for you , it's a bit fuzzy , not based on actual bytes on disk , but gives an approximation of the percentage of the raw event data that is from exceptions.&lt;/P&gt;

&lt;P&gt;Replace YOURINDEX and YOUREXCEPTIONPATTERN with relevant values for your environment.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=YOURINDEX | eval event_length_all = len(_raw) |eventstats sum(event_length_all) as all_event_length | regex _raw="YOUREXCEPTIONPATTERN" | eval event_length = len(_raw) | eventstats sum(event_length) as exceptions_length | eval percentage_of_events_that_are_exceptions=exceptions_length/all_event_length*100 | table percentage_of_events_that_are_exceptions
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Sep 2014 09:53:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-what-percentage-of-bytes-are-Java-stacktraces/m-p/110706#M28940</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2014-09-04T09:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate what percentage of bytes are Java stacktraces of indexed Java application logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-what-percentage-of-bytes-are-Java-stacktraces/m-p/110707#M28941</link>
      <description>&lt;P&gt;Thanks! I guess I'll need to look into exactly how to define what a Java stacktrace looks like &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2014 11:51:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-what-percentage-of-bytes-are-Java-stacktraces/m-p/110707#M28941</guid>
      <dc:creator>Bohrnag</dc:creator>
      <dc:date>2014-09-04T11:51:09Z</dc:date>
    </item>
  </channel>
</rss>

