Splunk Search

How to create Rex to extract a value from string?



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.


Labels (3)
0 Karma


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

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...