【问题标题】:filebeat: error creating template: fields contain key <hash>filebeat:创建模板时出错:字段包含键 <hash>
【发布时间】:2021-01-04 08:36:22
【问题描述】:

我正在运行“docker.elastic.co/beats/filebeat:7.9.1”

在 filebeat.yml 中,我配置为将一些字段附加到模板中

setup.template.overwrite: true
setup.template.append_fields:
  - name: level
    type: text
  - name: msg
    type: text
  - name: stacktrace
    type: text
  - name: uri
    type: text
  - name: headers
    type: text

这很好用。但是一旦我添加了该字段:

  - name: hash
    type: keyword

我收到以下错误:

INFO    template/load.go:169    Existing template will be overwritten, as overwrite is enabled.                                                                                                                                                  
ERROR    [publisher_pipeline_output]    pipeline/output.go:154    Failed to connect to backoff(elasticsearch(https://whatever.eu-central-1.aws.cloud.es.io:443)): Connection marked as failed because the onConnect call back failed: error loading template: error creating template: 1 error: fields contain key <hash>

Elasticsearch 版本为 v7.10.0。

发生了什么事?

【问题讨论】:

    标签: elasticsearch filebeat


    【解决方案1】:

    问题在于默认“fields.yml”文件的“Elastic Common Schema (ECS)”字段中已经定义了一个名为“hash”的字段。

    (见:https://www.elastic.co/guide/en/beats/filebeat/current/exported-fields-ecs.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-17
      • 2017-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多