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!

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...