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 the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...