Splunk Enterprise

How to count Exceptions without any field usage?

Kk
Path Finder
  • Hi All, Can we retrieve the Exception count without any predefined field or without creating any field. Basically,I just want each Exception count in table where row is Exception name and count is the column. Consider Exceptions are Nullpointer, IllegalArgument etc..

Pls comment out the query that will be helpful.

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
... your search
| rex "(?<exception>Nullpointer|IllegalArgument|etc)"
| stats count by exception

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You could extract the exception from the _raw event field and base your counts on that.

Kk
Path Finder

No just assume I gave you already known Exceptions like I mentioned above there. So for that how can we show the count of each and every Exception in table. Here we have only strings i.e Exception names which are not extracted to field in common. With that, I have to generate a table row as an exception name and col  as count.

Pls make sure there is no common field extraction.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
... your search
| rex "(?<exception>Nullpointer|IllegalArgument|etc)"
| stats count by exception
0 Karma
Get Updates on the Splunk Community!

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...

Get ready to show some Splunk Certification swagger at .conf24!

Dive into the deep end of data by earning a Splunk Certification at .conf24. We're enticing you again this ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Now On-Demand Join us to learn more about how you can leverage Service Level Objectives (SLOs) and the new ...