Splunk Search

Regex that adds extension to my domain name

egreg7
Engager

I am trying to write a regex that adds extension to my domain name. For example google, I need a regex expression that will return www.google .com

Tags (1)
0 Karma

woodcock
Esteemed Legend

You can append like this:

... | rex field=YourFieldHere mode=sed "s/$/YourExtensionStringHere/"

Or like this:

... | eval YourFieldHere = YourFieldHere . "YourExtensionStringHere"
0 Karma

richgalloway
SplunkTrust
SplunkTrust

What does your raw data look like? In other words, please show us the text you want a regex string to match.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Uncovering Multi-Account Fraud with Splunk Banking Analytics

Last month, I met with a Senior Fraud Analyst at a nationally recognized bank to discuss their recent success ...

Secure Your Future: A Deep Dive into the Compliance and Security Enhancements for the ...

What has been announced?  In the blog, “Preparing your Splunk Environment for OpensSSL3,”we announced the ...

New This Month in Splunk Observability Cloud - Synthetic Monitoring updates, UI ...

This month, we’re delivering several platform, infrastructure, application and digital experience monitoring ...