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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

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 ...