Splunk Search

rex for error number

indeed_2000
Motivator

hi

what is the rex for error number and error message of this log:  (separately)

23:43:51.411 app module: 100:  Not Found!

 

 error number= 100

error message=  Not Found!

 

Thanks

0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| rex ":\s+(?<error_number>\d+):\s+(?<error_message>.*)"

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| rex ":\s+(?<error_number>\d+):\s+(?<error_message>.*)"
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...