[英]How to PUT GET or POST a new Index Elasticsearch mapping
Good day my dear internet companions 美好的一天,亲爱的互联网同伴
In this day, I would like to know the way to specify an Elasticsearch mapping, or create one. 在这一天,我想知道一种指定Elasticsearch映射或创建映射的方法。 My aim is to know the exact way to create an Elasticsearh mapping, because I have seen code like this: 我的目标是了解创建Elasticsearh映射的确切方法,因为我已经看到了如下代码:
PUT _template/packets
{
"mappings": {
"doc": {
"properties": {
"title": { "type": "text" },
"name": { "type": "text" },
"age": { "type": "integer" },
"created": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
}
}
}
}
}
but I just don´t understand where I must insert a command like that, I wonder if I should type in a Terminal or in a file. 但是我只是不明白我必须在哪里插入这样的命令,我想知道应该在终端还是在文件中输入。 If it helps, I'm using Ubuntu 16 x64, and I already have Packetbeat, Metricbeat, and Filebeat working. 如果有帮助,我正在使用Ubuntu 16 x64,并且我已经可以使用Packetbeat,Metricbeat和Filebeat。 My aim is to have working Analyzing network packets using Wireshark, packetbeat and Elasticsearch, as taught here: https://www.elastic.co/blog/analyzing-network-packets-with-wireshark-elasticsearch-and-kibana 我的目标是要使用Wireshark,packetbeat和Elasticsearch来分析网络数据包,如下所示: https ://www.elastic.co/blog/analyzing-network-packets-with-wireshark-elasticsearch-and-kibana
I wish you my best regards. 祝您一切顺利。
That command can be put in Kibana https://www.elastic.co/products/kibana . 该命令可以放在Kibana https://www.elastic.co/products/kibana中 。 After you install it, open Kibana in http://localhost:5601 (local) and click Dev Tools menu. 安装后,在http:// localhost:5601 (本地)中打开Kibana,然后单击“开发工具”菜单。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.