Splunk Search

How to find a word using last part of the word from a file

john
Communicator

exception is java.Exception
exception is java.sql.Exception
exception is java.sql.SQLException
exception is java.sql.UmatchedException
exception is java.sql.UpdateException
and so on

This is a content of the file iam working with.I am looking for some unique search query to find out the only Exceptions those having name like(UmatchedException)not just the word Exception.please help me...

Tags (1)
0 Karma

Damien_Dallimor
Ultra Champion

Try something like this in your splunk search:

... | rex field=_raw "exception is (?:\w+\.)+(?<exception_name>\w+Exception)"  | stats count by exception_name

Damien_Dallimor
Ultra Champion

Nice. Don't forget to "accept" the answer !

0 Karma

john
Communicator

Thanks Damien its working....................

0 Karma
Get Updates on the Splunk Community!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...