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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...