<?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: how to generate error count report in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-generate-error-count-report/m-p/123093#M33226</link>
    <description>&lt;P&gt;Thanks a lot for the answer.&lt;BR /&gt;
Is there a way to get the dynamic date range report.&lt;BR /&gt;
In another words: Can I set the earliest and latest date, when I run the report?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Apr 2015 14:21:13 GMT</pubDate>
    <dc:creator>KShen</dc:creator>
    <dc:date>2015-04-06T14:21:13Z</dc:date>
    <item>
      <title>how to generate error count report</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-generate-error-count-report/m-p/123091#M33224</link>
      <description>&lt;P&gt;I have several query.Each query I have the list of the result.&lt;/P&gt;

&lt;P&gt;But I just need to know the report of each of the total number displayed.&lt;/P&gt;

&lt;P&gt;For example.&lt;/P&gt;

&lt;P&gt;the query:&lt;BR /&gt;
 1. "Error sent back from database" StatusCode NOT 00051 earliest=2/1/2015:0:0:0 latest=3/1/2015:0:0:0&lt;BR /&gt;
 2.  "Not a valid request object from query" earliest=2/1/2015:0:0:0 latest=3/1/2015:0:0:0&lt;/P&gt;

&lt;P&gt;the report like: &lt;/P&gt;

&lt;P&gt;error type                                                      total&lt;/P&gt;

&lt;P&gt;Error sent back from database:                25&lt;BR /&gt;
Not a valid request object from query:   38&lt;/P&gt;

&lt;P&gt;any idea?&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;And another requirement is: dynamic earliest and latest date. all of query use the same earliest and latest date.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 06 Apr 2015 03:31:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-generate-error-count-report/m-p/123091#M33224</guid>
      <dc:creator>KShen</dc:creator>
      <dc:date>2015-04-06T03:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to generate error count report</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-generate-error-count-report/m-p/123092#M33225</link>
      <description>&lt;P&gt;Hello! I know there is several ways to do that, but i will use &lt;STRONG&gt;Event Types&lt;/STRONG&gt; to help you attain your objective. Here is the algorithm.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;launch your first search and save it as an Event Type. For example, if your first search is the one bellow, you can give your Event Type the name &lt;STRONG&gt;error sent back from database&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;"Error sent back from database" StatusCode NOT 00051 earliest=2/1/2015:0:0:0 latest=3/1/2015:0:0:0&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt; launch the second search and do the same. Let suppose you saved it as &lt;STRONG&gt;not a valid reques object from query&lt;/STRONG&gt; Event Type&lt;/LI&gt;
&lt;LI&gt; Type this search: &lt;CODE&gt;eventtype="error sent from database" OR eventtype="not a valid reques object from query"|stats count as Total by eventtype|rename eventtype AS "Error Type"&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 06 Apr 2015 10:28:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-generate-error-count-report/m-p/123092#M33225</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-04-06T10:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to generate error count report</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-generate-error-count-report/m-p/123093#M33226</link>
      <description>&lt;P&gt;Thanks a lot for the answer.&lt;BR /&gt;
Is there a way to get the dynamic date range report.&lt;BR /&gt;
In another words: Can I set the earliest and latest date, when I run the report?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2015 14:21:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-generate-error-count-report/m-p/123093#M33226</guid>
      <dc:creator>KShen</dc:creator>
      <dc:date>2015-04-06T14:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to generate error count report</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-generate-error-count-report/m-p/123094#M33227</link>
      <description>&lt;P&gt;yes of course! There is several ways to do it. One is that, you can include a &lt;STRONG&gt;timerange picker&lt;/STRONG&gt;, and then remove your &lt;CODE&gt;earliest=2/1/2015:0:0:0 latest=3/1/2015:0:0:0&lt;/CODE&gt; in your searchString, set the &lt;STRONG&gt;earliest&lt;/STRONG&gt; and &lt;STRONG&gt;latest&lt;/STRONG&gt; time of your timerange, and then set the &lt;STRONG&gt;earliest&lt;/STRONG&gt; and &lt;STRONG&gt;latest time&lt;/STRONG&gt; of your search query. Here is an example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form &amp;gt; 
  &amp;lt;label&amp;gt;compare a Table values &amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false" autoRun="true"&amp;gt;
    &amp;lt;input type="time" token="time" searchWhenChanged="true"&amp;gt;
      &amp;lt;label/&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliestTime&amp;gt;-1d&amp;lt;/earliestTime&amp;gt;
        &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
  &amp;lt;table &amp;gt;
      &amp;lt;title &amp;gt;Table of Count Sourcetypes Between $time.earliest$ and $time.latest$ for index= $index$ &amp;lt;/title&amp;gt;
      &amp;lt;searchString&amp;gt;index=$_internal | stats count as total_count  by sourcetype&amp;lt;/searchString&amp;gt;
      &amp;lt;earliestTime&amp;gt;$time.earliest$&amp;lt;/earliestTime&amp;gt;
      &amp;lt;latestTime&amp;gt;$time.latest$&amp;lt;/latestTime&amp;gt;
      &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;option name="field"&amp;gt;count&amp;lt;/option&amp;gt;
    &amp;lt;/table&amp;gt;

  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Apr 2015 16:11:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-generate-error-count-report/m-p/123094#M33227</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-04-06T16:11:30Z</dc:date>
    </item>
  </channel>
</rss>

