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>.*)"
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...