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!

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 ...