Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
<img src="//i.stack.imgur.com/RUiNP.png" height="16" width="18" alt="" class="sponsor tag img">elasticsearch 将一个字段设为一个“";索引的;弹性搜索_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Mapping_Logstash_Logstash Configuration_Filebeat - Fatal编程技术网 elasticsearch 将一个字段设为一个“";索引的;弹性搜索,elasticsearch,mapping,logstash,logstash-configuration,filebeat,elasticsearch,Mapping,Logstash,Logstash Configuration,Filebeat" /> elasticsearch 将一个字段设为一个“";索引的;弹性搜索,elasticsearch,mapping,logstash,logstash-configuration,filebeat,elasticsearch,Mapping,Logstash,Logstash Configuration,Filebeat" />

elasticsearch 将一个字段设为一个“";索引的;弹性搜索

elasticsearch 将一个字段设为一个“";索引的;弹性搜索,elasticsearch,mapping,logstash,logstash-configuration,filebeat,elasticsearch,Mapping,Logstash,Logstash Configuration,Filebeat,我使用麋鹿堆栈和filebeat。 我正在使用默认模板进行映射。 我没有得到所有需要的字段作为“索引” 这是我的映射文件 { "mappings": { "_default_": { "_all": { "enabled": true, "norms": { "enabled": false } }, "dynamic_templates": [ {

我使用麋鹿堆栈和filebeat。 我正在使用默认模板进行映射。 我没有得到所有需要的字段作为“索引”

这是我的映射文件

 {
  "mappings": {
    "_default_": {
      "_all": {
        "enabled": true,
        "norms": {
          "enabled": false
        }
      },
      "dynamic_templates": [
        {
          "template1": {
            "mapping": {
              "doc_values": true,
              "ignore_above": 1024,
              "index": "not_analyzed",
              "type": "{dynamic_type}"
            },
            "match": "*"
          }
        }
      ],
      "properties": {
        "@timestamp": {
          "type": "date"
        },
        "offset": {
          "type": "long",
          "doc_values": "true"
        }
      }
    }
  },
  "settings": {
    "index.refresh_interval": "5s"
  },
  "template": "filebeat-*"
}
这是我的输出配置文件

output {
  elasticsearch {
    hosts => ["localhost:9200"]
    sniffing => true
    manage_template => false
    index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"  
    document_type => "%{[@metadata][type]}"
  }
}

假设我想要一个字段名
频道
,作为
索引的
字段。如何修改模板?

是什么让您认为字段没有索引?在Kibana的左侧栏中,如果我用
索引的
筛选可用字段
,作为
,我不会在结果中得到该字段。当我去可视化并尝试创建条形图时,对于x轴,我选择
聚合
作为
术语
,然后在
字段
下拉列表中,我没有选择
通道
字段。如何确认logstash是否使用正确的模板进行映射。Kibana缓存映射。尝试进入设置->索引,选择您的索引,然后单击橙色的重新加载按钮。为要搜索的字段编制索引。