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 Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...