Splunk Search

extract part from url

kreddykotla
New Member
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @kreddykotla ,

please try this 

| rex "(?<your_field>[^-]+)\/[^\/]+$"

that you can test at https://regex101.com/r/0yi0zt/1

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Get Inspired! We’ve Got Validation that Your Hard Work is Paying Off

We love our Splunk Community and want you to feel inspired by all your hard work! Eric Fusilero, our VP of ...

What's New in Splunk Enterprise 9.4: Features to Power Your Digital Resilience

Hey Splunky People! We are excited to share the latest updates in Splunk Enterprise 9.4. In this release we ...