Splunk Search

Unable to extract complete URL from the below splunk log

mani9059
Engager

Hi Team,

 

I am trying to extract complete URL from the below splunk search i tried many ways can you please help me on this.

Splunk log: 

[2021-04-13 04:36:49.556 GMT] ERROR PipelineCallServlet|116901075255|Search-RemoteShow|PipelineCall|y6j3wsyHh1 custom [] component=Search,routine=Show,errorMessage="Out of stock products",URL=https://www.xyz.com/on/demandware.servlet/Sites-Bull-Site/default/Search-RemoteShow?queryDW=true&cgi...

 

But I am unable to get complete URL as a result , i am getting half of the URL. Can you please help me on this.

Labels (2)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @mani9059,

to help you, I need the complete log to understand which char there is after the URL, so after the URL there's a space, you can try:

| rex "URL\=(?<url>[^ ]+)"

Ciao.

Giuseppe 

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

What have you tried so far and what were the results of each attempt?  When you say "I am getting half of the URL", which part are you getting?  I'm guessing it stops at an =.  Please share the props.conf settings for this sourcetype.

---
If this reply helps you, Karma would be appreciated.
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @mani9059,

to help you, I need the complete log to understand which char there is after the URL, so after the URL there's a space, you can try:

| rex "URL\=(?<url>[^ ]+)"

Ciao.

Giuseppe 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @mani9059,

good for you, see next time!

Ciao and happy splunking.

Giuseppe

P.S.: Karma Points are appreciated by al the contributors 😉

0 Karma
Get Updates on the Splunk Community!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...