<?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: Tomcat sum counted statistic over all 6 Log Levels in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Tomcat-sum-counted-statistic-over-all-6-Log-Levels/m-p/51312#M179599</link>
    <description>&lt;P&gt;So, if INFO, DEBUG, WARN ERROR FATAL and TRACE are already being extracted i assume? If not, you should extract them with a field extraction and call them something like "STATUS".&lt;BR /&gt;
Then you should be able to do | timechart sum(count) AS &lt;WHATEVER field="" you="" want="" here=""&gt; by STATUS&lt;/WHATEVER&gt;&lt;/P&gt;

&lt;P&gt;This should give you a nice little chart with the count of each event by the status code above..&lt;/P&gt;</description>
    <pubDate>Mon, 14 May 2012 14:55:41 GMT</pubDate>
    <dc:creator>Genti</dc:creator>
    <dc:date>2012-05-14T14:55:41Z</dc:date>
    <item>
      <title>Tomcat sum counted statistic over all 6 Log Levels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tomcat-sum-counted-statistic-over-all-6-Log-Levels/m-p/51311#M179598</link>
      <description>&lt;P&gt;Hi, I want to create a chart for my tomcat logs.&lt;BR /&gt;
In result there should be a summarized countet statistic for the different log levels like INFO, DEBUG, WARN, ERROR, FATAL, TRACE &lt;BR /&gt;
The statistic should be between a time frame like the last whole week and the last whole month.&lt;/P&gt;

&lt;P&gt;My logs looks like this example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;INFO ;2012-04-11 08:37:18,659;manny more ***;BEENDE HTTP/1.1 POST-Request - Zeit=2,698ms
DEBUG ;2012-04-12 09:72:18,659;manny more ***;BEENDE HTTP/1.1 POST-Request - Zeit=2,698ms
WARN ;2012-04-13 10:34:18,659;manny more ***;BEENDE HTTP/1.1 POST-Request - Zeit=2,698ms
ERROR ;2012-04-14 12:56:18,659;manny more ***;BEENDE HTTP/1.1 POST-Request - Zeit=2,698ms
FATAL  ;2012-04-15 09:35:18,659;manny more ***;BEENDE HTTP/1.1 POST-Request - Zeit=2,698ms
TRACE ;2012-04-16 08:45:18,659;manny more ***;BEENDE HTTP/1.1 POST-Request - Zeit=2,698ms
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I get for the moment is a counted report from only lets say the INFO level like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="/opt/logs/radical-up.090909x.log" INFO | timechart sum(count) as "INFOSTATUS"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But how can I create a search which includes all other 5 remaining log levels and generates a nice summarized chart for me.&lt;/P&gt;

&lt;P&gt;brgds. from sdohn&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2012 14:48:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tomcat-sum-counted-statistic-over-all-6-Log-Levels/m-p/51311#M179598</guid>
      <dc:creator>sdohn</dc:creator>
      <dc:date>2012-05-14T14:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Tomcat sum counted statistic over all 6 Log Levels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tomcat-sum-counted-statistic-over-all-6-Log-Levels/m-p/51312#M179599</link>
      <description>&lt;P&gt;So, if INFO, DEBUG, WARN ERROR FATAL and TRACE are already being extracted i assume? If not, you should extract them with a field extraction and call them something like "STATUS".&lt;BR /&gt;
Then you should be able to do | timechart sum(count) AS &lt;WHATEVER field="" you="" want="" here=""&gt; by STATUS&lt;/WHATEVER&gt;&lt;/P&gt;

&lt;P&gt;This should give you a nice little chart with the count of each event by the status code above..&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2012 14:55:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tomcat-sum-counted-statistic-over-all-6-Log-Levels/m-p/51312#M179599</guid>
      <dc:creator>Genti</dc:creator>
      <dc:date>2012-05-14T14:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: Tomcat sum counted statistic over all 6 Log Levels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tomcat-sum-counted-statistic-over-all-6-Log-Levels/m-p/51313#M179600</link>
      <description>&lt;P&gt;Hi thanks for your answer, for the moment your example does not work for me.&lt;BR /&gt;
Lets work on a real example.&lt;/P&gt;

&lt;P&gt;I've download this logfile:&lt;BR /&gt;
&lt;A href="http://innovato.com/splunk/websample.log"&gt;http://innovato.com/splunk/websample.log&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;When I fire up this query I get the timechart where all available status codes will be sum&lt;BR /&gt;
&lt;CODE&gt;source="websample.log" status="*" | timechart sum(count)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But how to get a sum(count) timechart report where I can get a bar for lets say:&lt;BR /&gt;
all status codes 200 bar in color green&lt;BR /&gt;
all status codes 404 bar in color red&lt;BR /&gt;
And all in one report&lt;/P&gt;

&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 19 May 2012 05:43:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tomcat-sum-counted-statistic-over-all-6-Log-Levels/m-p/51313#M179600</guid>
      <dc:creator>sdohn</dc:creator>
      <dc:date>2012-05-19T05:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Tomcat sum counted statistic over all 6 Log Levels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tomcat-sum-counted-statistic-over-all-6-Log-Levels/m-p/51314#M179601</link>
      <description>&lt;P&gt;Unfortunalety your example does not work for me.&lt;BR /&gt;
Maybe I do not correctly interpret it.&lt;/P&gt;

&lt;P&gt;source="websample.log" | timechart sum(count) AS &amp;lt; status="202" status="404" &amp;gt; by status&lt;/P&gt;</description>
      <pubDate>Sat, 19 May 2012 05:52:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tomcat-sum-counted-statistic-over-all-6-Log-Levels/m-p/51314#M179601</guid>
      <dc:creator>sdohn</dc:creator>
      <dc:date>2012-05-19T05:52:46Z</dc:date>
    </item>
  </channel>
</rss>

