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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...