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 Platform | Upgrading your Splunk Deployment to Python 3.9

Splunk initially announced the removal of Python 2 during the release of Splunk Enterprise 8.0.0, aiming to ...

From Product Design to User Insights: Boosting App Developer Identity on Splunkbase

co-authored by Yiyun Zhu & Dan Hosaka Engaging with the Community at .conf24 At .conf24, we revitalized the ...

Detect and Resolve Issues in a Kubernetes Environment

We’ve gone through common problems one can encounter in a Kubernetes environment, their impacts, and the ...