Splunk Search

Want a Dashboard to display all exceptions occured in the last 30 days in a graphical way.

Harish429
Loves-to-Learn Lots

Hi Team,

I want to have a query which displays me all types of exceptions occured in the last 30 days in a table way or else in a graphical way.

We just wanted to see the count of the exceptions every 30 days.

I have been using this query but it didnt work.

Iam new to splunk so please help me to find out

index=dev | rex field=_raw "\b(?(java|javax).[\w.]+Exception)" | chart count by exception_type

Labels (3)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You need to actually extract the values into a field - you might also consider escaping the dots as an unescaped dot in regex means any character.

| rex field=_raw "\b(?<exception_type>(java|javax)\.[\w\.]+Exception)"
0 Karma

Harish429
Loves-to-Learn Lots

Can you pleas suggest me query which gives me all types of exceptions

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Of course I can try, if you can give me a list of all the exception types you want to capture.

0 Karma

Harish429
Loves-to-Learn Lots

I want all expections which are getting entered.like in the splunk log if we have exception encountered it shoud fetch that

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

So, search for "exception". This will return events which have this word in. However, this might give you some false positives, so you need to be more precise about defining exactly what you consider to be an exception event. Once you have these, you can look to extract the exception type for your statistics.

0 Karma

rrovers
Communicator

Do you mean this:

 

 

index=dev | rex field=_raw "\b(?(java|javax).[\w.]+Exception)"
| timechart span=30d count by exception_type

 

for graphics choose "Visualisations"

 

0 Karma

Harish429
Loves-to-Learn Lots

I was getting this error while searching

Error in 'rex' command: Encountered the following error while compiling the regex '\b(?(java|javax).[\w.]+Exception)': Regex: syntax error in subpattern name (missing terminator).

0 Karma
Get Updates on the Splunk Community!

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...

Join Us at the Builder Bar at .conf24 – Empowering Innovation and Collaboration

What is the Builder Bar? The Builder Bar is more than just a place; it's a hub of creativity, collaboration, ...

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...