Quantcast
Channel: Latest Questions on Splunk Answers
Viewing all articles
Browse latest Browse all 13053

Regex for URL parsing

$
0
0

Hi,

I want to extract url's from the events as a seperate field.

Here is the log file

04/15/2013 17:51:58.09 w3wp.exe (0x113C) 0x3D50 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Request (GET:https://www.myvantageconnect.co.in:443/GEOMETRIC/SitePages/MyEnrollment.aspx)) 04/15/2013 17:51:58.26 w3wp.exe (0x113C) 0x4AA0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Request (GET:https://www.myvantageconnect.co.in:443/PublicSite/images/header.jpg)) 04/15/2013 17:59:25.20 w3wp.exe (0x113C) 0x14B0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Request (GET:https://www.myvantageconnect.co.in:443/_LAYOUTS/ClientPortal/SilverlightWebParts/PROD/MyBenefits.xap?ver=5.19))

Here i just want to extract the url's ends with .aspx and .xap pages like https://www.myvantageconnect.co.in:443/GEOMETRIC/SitePages/MyEnrollment.aspxhttps://www.myvantageconnect.co.in:443/_LAYOUTS/ClientPortal/SilverlightWebParts/PROD/MyBenefits.xap?ver=5.19

If i write regex as (?i)\(GET:(?P< FIELDNAME>[^\?]+) ,the url is not being extracted properly.

Please help with the regex.


Viewing all articles
Browse latest Browse all 13053

Trending Articles



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