All Apps and Add-ons

Extracted field regex help

chrisslagel
New Member

OK so I'm trying to do something pretty specific but can't seem to get the generated pattern thing to work and the format of this hurts my brain.

I want a regex that will grab everything after a / and ending with .mp3

So

/xx-xxx-xx.mp3

/xyxxy.mp3

etc.

Basically a wildcard so it will find anything with /*.mp3 regardless of what's between the / and the .

Any help would be greatly appretiate.

0 Karma

jonuwz
Influencer
... | rex ".*/(?<song>.*?)\.mp3" | table song

kristian_kolb
Ultra Champion

??? That's what jonuwz wrote..

0 Karma

jonuwz
Influencer

Eh? It creates a column called song whose value is everything between / and .mp3

0 Karma

chrisslagel
New Member

That's a start, but I need it to be a wildcard entry without having to put in the actual filename.

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

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

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...