【发布时间】:2018-11-08 10:02:43
【问题描述】:
当我使用这样的映射创建索引时,_template/ 这个词是什么意思? _ 是什么意思?我请求您帮助了解有关创建索引的更多信息,它们是否存储在某种文件夹中,例如 template/packets 文件夹?
PUT _template/packets
{
"template": "packets-*",
"mappings": {
"pcap_file": {
"dynamic": "false",
"properties": {
"timestamp": {
"type": "date"
},
"layers": {
"properties": {
"frame": {
"properties": {
"frame_frame_len": {
"type": "long"
},
"frame_frame_protocols": {
"type": "keyword"
}
}
},
"ip": {
"properties": {
"ip_ip_src": {
"type": "ip"
},
"ip_ip_dst": {
"type": "ip"
}
}
},
"udp": {
"properties": {
"udp_udp_srcport": {
"type": "integer"
},
"udp_udp_dstport": {
"type": "integer"
}
}
}
}
}
}
}
}
}
我问这个是因为在输入这个之后,我收到他的以下错误
!弃用:使用了弃用的字段 [模板],替换为 [index_patterns]
{ “承认”:真实 }
我从这个链接复制了模式: https://www.elastic.co/blog/analyzing-network-packets-with-wireshark-elasticsearch-and-kibana 而且我正在尝试完全按照链接中的内容进行操作,并且我已经可以使用 tshark 捕获文件并将它们解析复制到 packet.json 文件中,并且我将使用 filebeat 将数据传输到 Elasticsearch,我已经上传了一些数据到 Elasticsearch,但它没有被正确索引,我只是看到了很多带有大量数据的信息。
我的目标是准确了解如何创建新的索引模式,以及如何将我上传的内容与该索引相关联。 非常感谢。
【问题讨论】:
标签: elasticsearch indexing kibana