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!

What's New in Splunk Cloud Platform 9.3.2411?

Hey Splunky People! We are excited to share the latest updates in Splunk Cloud Platform 9.3.2411. This release ...

Buttercup Games: Further Dashboarding Techniques (Part 6)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...