加载中

解压 gzip 字段

decompress_gzip_field 处理器指定要进行 gzip 解压的字段。

要覆盖字段,要么先重命名目标字段,要么使用 drop_fields 处理器丢弃该字段,然后再解压字段。

在此示例中,field1 被解压到 field2 中。

- decompress_gzip_field:
    field:
      from: "field1"
      to: "field2"
    ignore_missing: false
    fail_on_error: true
		
注意

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

名称 必填 默认值 描述
field 包含

* from: "old-key",其中 from 是原始字段
* to: "new-key",其中 to 是目标字段名称
ignore_missing false 是否忽略缺失的键。如果为 true,当要解压的键缺失时,不会记录错误。
fail_on_error true 如果为 true 且发生错误,将停止字段解压,并返回原始事件。如果为 false,即使在解码过程中发生错误,解压也会继续。

有关支持的条件列表,请参阅 Conditions

© . 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.