Splunk Search

Use rex to extract a field

irvindominguezs
Explorer

"https://api.internal.t-mobile.com/customer-credit/v3/pre-screen-credit-offer/personal": Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out]

I want to extract the following 

customer-credit/v3/pre-screen-credit-offer/personal

it always starts with the pattern ".com/" and ends with ":

0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| rex field=_raw "\.com/(?<uri>[^\"]*)\":"

Extract from _raw to a field called uri

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| rex field=_raw "\.com/(?<uri>[^\"]*)\":"

Extract from _raw to a field called uri

Get Updates on the Splunk Community!

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...

Unlock Instant Security Insights from Amazon S3 with Splunk Cloud — Try Federated ...

Availability: Must be on Splunk Cloud Platform version 10.1.2507.x to view the free trial banner. If you are ...