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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...