All Apps and Add-ons

Splunk Regex to String period from front and end of domain name match

tbalouch
Path Finder

Hey guys,

I'm having trouble finding a Regex to remove begining and ending from a domain match against my dns logs. For example I have the field extraction SOA\s(?.*$) which gets me the extraction domain=.www.google.com.

I can't figure out how to get rid of the outer periods.

0 Karma

glitchcowboy
Path Finder

Wild guess (without a sample)

SOAs\.(?<domain>[\w\.\d-]+)\.
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Please share some sample events.

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

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...