Splunk Search

How to create Rex to extract a value from string?

Coder1a
Loves-to-Learn

Hello,

I am new to splunk rex, so need help for regex. In logs, i have extracted  string, however again i need to extract a value from string.

Example string :  "Error exception for fetching data =1234567890_1"

Question: From  above string, how can i use rex to get value :1234567890

Request you to please help.

Thanks.

Labels (3)
0 Karma

yuanliu
SplunkTrust
SplunkTrust

See answer in Rex for extracting a value from string. (Alternatively, delete this duplicate question.)

0 Karma
Get Updates on the Splunk Community!

Splunk Smartness with Brandon Sternfield | Episode 3

Callie Skokos: Hello and welcome to another episode of "Splunk Smartness," the interview series where we ...

Monitoring Postgres with OpenTelemetry

Behind every business-critical application, you’ll find databases. These behind-the-scenes stores power ...

Mastering Synthetic Browser Testing: Pro Tips to Keep Your Web App Running Smoothly

To start, if you're new to synthetic monitoring, I recommend exploring this synthetic monitoring overview. In ...