Registered Domain
Synopsis
Extracts domain components from URLs or Fully Qualified Domain Names (FQDNs) using the Mozilla Public Suffix List to accurately identify the registered domain (eTLD), subdomain, and top-level domain parts.
Schema
- registered_domain:
field: <ident>
description: <text>
if: <script>
ignore_failure: <boolean>
ignore_missing: <boolean>
on_failure: <processor[]>
on_success: <processor[]>
tag: <string>
target_field: <ident>
Configuration
The following fields are used to define the processor:
| Field | Required | Default | Description |
|---|---|---|---|
field | Y | - | Field containing the URL or domain name |
description | N | - | Explanatory note |
if | N | - | Condition to run |
ignore_failure | N | false | See Handling Failures |
ignore_missing | N | false | If true, continue silently if field doesn't exist |
on_failure | N | - | See Handling Failures |
on_success | N | - | See Handling Success |
tag | N | - | Identifier |
target_field | N | - | Field to store extracted components. If omitted, components are added to root |
Details
The processor can handle both full URLs and plain domain names, automatically parsing and extracting the following components:
- full domain name
- registered domain (effective TLD + one level)
- top-level domain
- subdomain (if present)
Large numbers of domains may impact performance. Consider batching or limiting concurrent processing in such cases.
Examples
Basic
Parsing a simple domain name... | |
extracts all components: | |
URLs
Extract domains from full URLs... | |
handling complex TLDs: | |
Multi-Level
Process domains with multiple subdomains... | |
preserving full subdomain structure: | |
Error Handling
Handle invalid domains gracefully... | |
with appropriate error handling: | |