<?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 prepare table of exceptions and its count occurred in last 2 days in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/how-to-prepare-table-of-exceptions-and-its-count-occurred-in/m-p/430754#M6399</link>
    <description>&lt;P&gt;@bipin_tiwari , do you have the &lt;CODE&gt;Exception&lt;/CODE&gt; field extracted? Try and see if you get any result in statistics&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="your index" |stats count by Exception
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Jan 2019 15:13:43 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2019-01-29T15:13:43Z</dc:date>
    <item>
      <title>how to prepare table of exceptions and its count occurred in last 2 days</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/how-to-prepare-table-of-exceptions-and-its-count-occurred-in/m-p/430751#M6396</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;
Since very long time I am struggling to display a table of list of all exception raised by my application in last few days (as specified) . &lt;/P&gt;

&lt;P&gt;I referred several Splunk answers on this subject but it didn't prove to be helpful. I will be very grateful if Splunk support team can help me in achieving my objective . I also wish to tell that when I perform search I find many fields like host, source , sourcetype , date_minute, date_month, date_mday , date_zone but I dont see the field exception or error however exceptions occurred and recorded in Splunk in given period of time. Is there anything going wrong which is why searchhead not extracting exception or error fields from events . Please assist with detailed explanation and splunk query. &lt;/P&gt;

&lt;P&gt;I want output in following format&lt;BR /&gt;
Exception                              Today                   Yesterday         27 Jan        26 Jan &lt;BR /&gt;
NullPointer                       100             80              89            39&lt;BR /&gt;
ArrayIndexOutOfBound        8                       7               0            0&lt;BR /&gt;
InvalidCartException                0                       0              40             7&lt;BR /&gt;
AuthenticationFailed                5                       5                5           2&lt;/P&gt;

&lt;P&gt;I am also fine if table is displayed in following format . where day1 is today , day2 is yesterday , day3 is day before yesterday and so on.&lt;/P&gt;

&lt;P&gt;Exception                               day1                        day2              day3        day4 &lt;BR /&gt;
NullPointer                       100             80              89            39&lt;BR /&gt;
ArrayIndexOutOfBound        8                       7               0            0&lt;BR /&gt;
InvalidCartException                0                       0              40             7&lt;BR /&gt;
AuthenticationFailed                5                       5                5           2&lt;/P&gt;

&lt;P&gt;After displaying above table in Statistics tab I want to draw the Pie chart for this table in Visualization tab.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Bipin&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:58:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/how-to-prepare-table-of-exceptions-and-its-count-occurred-in/m-p/430751#M6396</guid>
      <dc:creator>bipin_tiwari</dc:creator>
      <dc:date>2020-09-29T22:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to prepare table of exceptions and its count occurred in last 2 days</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/how-to-prepare-table-of-exceptions-and-its-count-occurred-in/m-p/430752#M6397</link>
      <description>&lt;P&gt;@bipin_tiwari ,&lt;/P&gt;

&lt;P&gt;Below search should give you the expected outout if the &lt;CODE&gt;Exception&lt;/CODE&gt; field is available. You may adjust the earliest value according to your requirement.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"your base search" earliest=-4d@d |eval date=strftime(_time,"%Y-%m-%d")|chart count over Exception  by date
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the field exception is not extracted by default, please provide some sample logs(anonymize confidential data)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 06:06:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/how-to-prepare-table-of-exceptions-and-its-count-occurred-in/m-p/430752#M6397</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-01-29T06:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to prepare table of exceptions and its count occurred in last 2 days</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/how-to-prepare-table-of-exceptions-and-its-count-occurred-in/m-p/430753#M6398</link>
      <description>&lt;P&gt;Hi @renjith.nair &lt;/P&gt;

&lt;P&gt;Search is working and returning more than 1.5 lakh events but expected outcome (table and chart) still not coming .&lt;BR /&gt;
Following are some logs extracted from source came in search result. here UnknownIdentifierException exception is raised again and again so I do expect that this exception should come in table under Statistics tab but its Statistics tab is showing no result however Events tab is having more than 1.5 lakh event .&lt;/P&gt;

&lt;P&gt;[RestHandlerExceptionResolver] [] Translating exception [de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException]: no valid  account found for this uid :1190100&lt;/P&gt;

&lt;P&gt;[RestHandlerExceptionResolver] [] Translating exception [de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException]: no valid  account found for this uid :1190100&lt;BR /&gt;
INFO   | jvm 1    | main    | 2019/01/29 14:28:58.379 | 2019-01-29 14:28:58.351ERROR [hybrisHTTP9] [RestHandlerExceptionResolver] [] de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException: no valid  account found for this uid :1190100&lt;/P&gt;

&lt;P&gt;[de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException]: no valid  account found for this uid :1190363&lt;BR /&gt;
INFO   | jvm 1    | main    | 2019/01/29 14:29:03.694 | 2019-01-29 14:29:03.614ERROR [hybrisHTTP29] [RestHandlerExceptionResolver] [] de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException: no valid  account found for this uid :1190363&lt;/P&gt;

&lt;P&gt;[RestHandlerExceptionResolver] [] Translating exception [de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException]: no valid  account found for this uid :1190373&lt;BR /&gt;
INFO   | jvm 1    | main    | 2019/01/29 14:29:04.499 | 2019-01-29 14:29:04.470ERROR [hybrisHTTP76] [RestHandlerExceptionResolver] [] de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException: no valid  account found for this uid :1190373&lt;/P&gt;

&lt;P&gt;[RestHandlerExceptionResolver] [] Translating exception [de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException]: no valid  account found for this uid :1190398&lt;BR /&gt;
INFO   | jvm 1    | main    | 2019/01/29 14:29:06.206 | 2019-01-29 14:29:06.171ERROR [hybrisHTTP121] [RestHandlerExceptionResolver] [] de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException: no valid  account found for this uid :1190398&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 07:54:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/how-to-prepare-table-of-exceptions-and-its-count-occurred-in/m-p/430753#M6398</guid>
      <dc:creator>bipin_tiwari</dc:creator>
      <dc:date>2019-01-29T07:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to prepare table of exceptions and its count occurred in last 2 days</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/how-to-prepare-table-of-exceptions-and-its-count-occurred-in/m-p/430754#M6399</link>
      <description>&lt;P&gt;@bipin_tiwari , do you have the &lt;CODE&gt;Exception&lt;/CODE&gt; field extracted? Try and see if you get any result in statistics&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="your index" |stats count by Exception
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Jan 2019 15:13:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/how-to-prepare-table-of-exceptions-and-its-count-occurred-in/m-p/430754#M6399</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-01-29T15:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to prepare table of exceptions and its count occurred in last 2 days</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/how-to-prepare-table-of-exceptions-and-its-count-occurred-in/m-p/430755#M6400</link>
      <description>&lt;P&gt;@renjith.nair  , index="hbr-itv" |stats count by Exception , didn't return any result . however in in Events tab I can see millions of events. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 07:15:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/how-to-prepare-table-of-exceptions-and-its-count-occurred-in/m-p/430755#M6400</guid>
      <dc:creator>bipin_tiwari</dc:creator>
      <dc:date>2019-01-30T07:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to prepare table of exceptions and its count occurred in last 2 days</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/how-to-prepare-table-of-exceptions-and-its-count-occurred-in/m-p/430756#M6401</link>
      <description>&lt;P&gt;@renjith.nair  , is there any way and to have a direct call and discuss the issue . &lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 07:58:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/how-to-prepare-table-of-exceptions-and-its-count-occurred-in/m-p/430756#M6401</guid>
      <dc:creator>bipin_tiwari</dc:creator>
      <dc:date>2019-01-30T07:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to prepare table of exceptions and its count occurred in last 2 days</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/how-to-prepare-table-of-exceptions-and-its-count-occurred-in/m-p/430757#M6402</link>
      <description>&lt;P&gt;Thats probably because, you dont have the field name &lt;CODE&gt;Exception&lt;/CODE&gt; in your events. Try extracting this field and   do the stats.&lt;/P&gt;

&lt;P&gt;For e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="hbr-itv" |rex field=_raw "exceptions\.(?&amp;lt;Exception&amp;gt;\w+)"|stats count by Exception
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the above gives you stats tab, then try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  index="hbr-itv" |rex field=_raw "exceptions\.(?&amp;lt;Exception&amp;gt;\w+)"
  |eval date=strftime(_time,"%Y-%m-%d")|chart count over Exception  by date
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Jan 2019 13:30:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/how-to-prepare-table-of-exceptions-and-its-count-occurred-in/m-p/430757#M6402</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-01-30T13:30:13Z</dc:date>
    </item>
  </channel>
</rss>

