Skip to content

Commit f24dc11

Browse files
committed
Processors.ts - add registered_domain processor
1 parent 98ff04e commit f24dc11

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

specification/_doc_ids/table.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ query-dsl,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/query
410410
realtime,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/docs-get.html#realtime
411411
redact-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/redact-processor.html
412412
regexp-syntax,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/regexp-syntax.html
413+
registered-domain-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/registered-domain-processor.html
413414
remove-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/remove-processor.html
414415
rename-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/rename-processor.html
415416
reroute-processor,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/reroute-processor.html

specification/ingest/_types/Processors.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,14 @@ export class ProcessorContainer {
200200
* @doc_id redact-processor
201201
*/
202202
redact?: RedactProcessor
203+
/**
204+
* Extracts the registered domain (also known as the effective top-level
205+
* domain or eTLD), sub-domain, and top-level domain from a fully qualified
206+
* domain name (FQDN). Uses the registered domains defined in the Mozilla
207+
* Public Suffix List.
208+
* @doc_id registered-domain-processor
209+
*/
210+
registered_domain?: RegisteredDomainProcessor
203211
/**
204212
* Removes existing fields.
205213
* If one field doesn’t exist, an exception will be thrown.
@@ -1259,6 +1267,25 @@ export class RedactProcessor extends ProcessorBase {
12591267
trace_redact?: boolean
12601268
}
12611269

1270+
export class RegisteredDomainProcessor extends ProcessorBase {
1271+
/**
1272+
* Field containing the source FQDN.
1273+
*/
1274+
field: Field
1275+
/**
1276+
* Object field containing extracted domain components. If an empty string,
1277+
* the processor adds components to the document’s root.
1278+
* @server-default <empty string>
1279+
*/
1280+
target_field?: Field
1281+
/**
1282+
* If true and any required fields are missing, the processor quietly exits
1283+
* without modifying the document.
1284+
* @server-default true
1285+
*/
1286+
ignore_missing?: boolean
1287+
}
1288+
12621289
export class RemoveProcessor extends ProcessorBase {
12631290
/**
12641291
* Fields to be removed. Supports template snippets.

0 commit comments

Comments
 (0)