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!

3 Ways to Make OpenTelemetry Even Better

My role as an Observability Specialist at Splunk provides me with the opportunity to work with customers of ...

What's New in Splunk Cloud Platform 9.2.2406?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2406 with many ...

Enterprise Security Content Update (ESCU) | New Releases

In August, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...