Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How to generate a regular expression on a URL to capture a resource path and end on a optional parameter?

$
0
0
Hi all, I am looking for some help for the following use case. I have a series of endpoints represented by full URLs logged across a few sources, of which i am trying to normalize to then aggregate on. I am looking for the resource path, less any optional params. To say, I want to capture everything after the [//] double slash, domain name, first [/] singular slash and end that capture on an optional param [?] https://answers.splunk.com/answers/ask.html?foo=bar --> Becomes --> answers/ask.html https://answers.splunk.com/answers/ask.html --> Becomes --> answers/ask.html http://docs.splunk.com/Documentation --> Becomes --> Documentation

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>