Splunk Search

sed replace help

mcbradford
Contributor

I am using the following:

eval link=http_referrer+uri_path | top link

and I get

http://www.foxnews.com//static/includes/partners/dma/520.html

I want to remove the double "//" and replace it with just one "/"

I cannot get my regex to work???

Tags (1)

Ayn
Legend
... | rex mode=sed field=link "s/\/\//\//"

mcbradford
Contributor

|eval http_referrer = substr(http_referrer, 1, len(http_referrer)-1)| eval link=http_referrer+uri_path |

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...