这是该链接的内容:
{
"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
然后复制并粘贴上面链接中的内容并保存文件(ctrl + x)。
之后,您应该能够在“加载模板”部分继续完成数字海洋演练。