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!

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...