在 Elasticsearch 中加载索引模板失败
Failed loading the Index Template in Elasticsearch
我正在尝试安装 ELK 以实现日志集中。我正在按照数字海洋网站中描述的步骤进行操作:https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-14-04
我无法使用此 link 中的 curl 下载 filebeat 索引模板:
https://gist.githubusercontent.com/thisismitch/3429023e8438cc25b86c/raw/d8c479e2a1adcea8b1fe86570e42abab0f10f364/filebeat-index-template.json
有人可以给我另一个来源吗?
这是link的内容:
{
"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"
},
"message": {
"type": "string",
"index": "analyzed"
},
"offset": {
"type": "long",
"doc_values": "true"
},
"geoip" : {
"type" : "object",
"dynamic": true,
"properties" : {
"location" : { "type" : "geo_point" }
}
}
}
}
},
"settings": {
"index.refresh_interval": "5s"
},
"template": "filebeat-*"
}
只需使用以下命令创建一个名为 filebeat-index-template.json 的文件:
touch filebeat-index-template.json
然后像这样在编辑器中打开文件:
nano filebeat-index-template.json
然后复制并粘贴上面link中的内容并保存文件(ctrl + x)。
之后您应该可以在 "load the template" 部分继续完成数字海洋演练。
我正在尝试安装 ELK 以实现日志集中。我正在按照数字海洋网站中描述的步骤进行操作:https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-14-04
我无法使用此 link 中的 curl 下载 filebeat 索引模板: https://gist.githubusercontent.com/thisismitch/3429023e8438cc25b86c/raw/d8c479e2a1adcea8b1fe86570e42abab0f10f364/filebeat-index-template.json
有人可以给我另一个来源吗?
这是link的内容:
{
"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"
},
"message": {
"type": "string",
"index": "analyzed"
},
"offset": {
"type": "long",
"doc_values": "true"
},
"geoip" : {
"type" : "object",
"dynamic": true,
"properties" : {
"location" : { "type" : "geo_point" }
}
}
}
}
},
"settings": {
"index.refresh_interval": "5s"
},
"template": "filebeat-*"
}
只需使用以下命令创建一个名为 filebeat-index-template.json 的文件:
touch filebeat-index-template.json
然后像这样在编辑器中打开文件:
nano filebeat-index-template.json
然后复制并粘贴上面link中的内容并保存文件(ctrl + x)。
之后您应该可以在 "load the template" 部分继续完成数字海洋演练。