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!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...