加载中

注册域名

registered_domain 处理器读取包含主机名的字段,然后将该主机名中包含的“注册域名”写入目标字段。例如,对于 www.google.co.uk,该处理器将输出 google.co.uk。换句话说,“注册域名”是指有效顶级域名 (co.uk) 加上一级 (google)。此外,该处理器还可以选择将域名的其余部分(即 subdomain,子域名)存储到另一个目标字段中。

该处理器使用 Mozilla Public Suffix 列表来确定该值。

- registered_domain:
    field: dns.question.name
    target_field: dns.question.registered_domain
    target_etld_field: dns.question.top_level_domain
    target_subdomain_field: dns.question.subdomain
    ignore_missing: true
    ignore_failure: true
		
注意

Elastic Agent 处理器在接入管道(ingest pipelines)之前执行,这意味着你的处理器配置无法引用由接入管道或 Logstash 创建的字段。有关更多限制,请参阅 使用处理器有哪些限制?

名称 必填 默认值 描述
field 包含完全限定域名 (FQDN) 的源字段。
target_field 存放注册域名值的目标字段。
target_etld_field 存放有效顶级域名值的目标字段。
target_subdomain_field 存放子域名值的目标子域名字段。
ignore_missing false 是否忽略源字段缺失时的错误。
ignore_failure false 是否忽略处理器产生的所有错误。
id 此处理器实例的标识符。对于调试非常有用。
© . This website operates independently and is not affiliated with or endorsed by Elasticsearch B.V. All brand names, logos, and trademarks are the property of their respective owners.