Splunk Enterprise

I want to look for certain text and extract that field and make a report

mikeyty07
Communicator
index=abc "exception":"java.util.concurrent.ExecutionException" searching above displays like these in below events "exception":"java.util.concurrent.ExecutionException: ABC_1000:We're sorry, it looks like an error occurred while getting information" "exception":"java.util.concurrent.ExecutionException: ABC-2000:We're sorry, it looks like an error occurred while getting information" I want to take the ABC_ OR ABC- error codes and have a report based on that which should look like this ABC Codes message counts ABC_1000 We're sorry, it looks like an error occurred while getting information 3 ABC-2000 We're sorry, it looks like an error occurred while getting information 5
Labels (1)
0 Karma

rupkumar4sec
Path Finder
index=abc "exception":"java.util.concurrent.ExecutionException"
| rex field=_raw "Exception\:\s(?=ABC)(?<ABC_CODE>[^\:]+)\:(?<Message>[^\"]+)"
| stats count by  ABC_CODE, Message
0 Karma

mikeyty07
Communicator
index=abc "exception":"java.util.concurrent.ExecutionException" searching above displays like these in below events "exception":"java.util.concurrent.ExecutionException: ABC_1000:We're sorry, it looks like an error occurred while getting information" "exception":"java.util.concurrent.ExecutionException: ABC-2000:We're sorry, it looks like an error occurred while getting information" I want to take the ABC_ OR ABC- error codes and have a report based on that which should look like this ABC Codes message counts ABC_1000 We're sorry, it looks like an error occurred while getting information 3 ABC-2000 We're sorry, it looks like an error occurred while getting information 5
0 Karma
Get Updates on the Splunk Community!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...