如何在Kibana中将自定义字段视为标准类型而不是未知类型?

问题描述

我正在使用Kibana和elasticsearch版本7.9.1。我创建了带有自定义字段的管道,映射和索引。字段类型关键字转换为“ 设置”,而自定义字段转换为“ 未知”类型。使用数据表创建可视化时,这些未知类型未列出。

我的管道,

 PUT /_ingest/pipeline/test-pipeline
{
  "description": "A pipeline for user data","processors": [
    {
      "my_processor": {
        "field": [
          "my_type:email","my_type:gender"        ]
      }
    }
  ]
}

我的映射。

PUT /test-00/
{
  "mappings": {
      "dynamic": "strict","properties": {
        "first_name": {
          "type": "keyword"
        },"last_name": {
          "type": "keyword"
        },"email": {
          "type": "my_type"
        },"gender": {
          "type": "my_type"
        }
      }
  }
}

我的索引文档如下,

POST /test2-00/_doc/1?pipeline=test-pipeline
{
  "first_name": "Rahul","last_name": "Sharma","gender": "Male","email": "[email protected]"
}

POST /test2-00/_doc/1?pipeline=test-pipeline
{
  "first_name": "Parvindar","last_name": "Singh","email": "[email protected]"
}
  1. 如何在Kibana中将自定义字段视为标准类型而不是未知类型?
  2. 有没有办法列出自定义字段,就像在kibana中一样? 就像自定义类型名称是my_string一样,是否可以在kibana中显示my_string?

如何将其显示为

enter image description here

字符串?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)