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

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Thanks for the Memories: .conf26 Took Learning to New Heights

Thank you, Splunk Community, for making .conf26 in Denver one for the books. From packed Splunk University ...

Best Practices: Splunk auto adjust pipeline queue

When you enable autoAdjustQueue in Splunk, maxSize should be understood as the queue size Splunk starts with ...

Splunk Auto Ingestion Parallel Pipeline Scaling

Why this feature matters Many Splunk environments experience ingestion pressure long before the host is fully ...