Splunk Search

How to extract Top Level Domains from events?

waJesu
Path Finder

I need a query that extracts TLDs from events and compares the results with a lookup table with blocklisted TLDs

Labels (1)
Tags (2)
0 Karma

waJesu
Path Finder

I tried to use 

sourcetype=<sourcetypename> |rex field=_raw "(?<TLD>\.\w+?)(?:$|\/)" | table TLD

It returned TLDs but included values I think maybe part of IPs e.g. .33, .136, .74 etc. 

0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...