kibana 创建es索引步骤
1. 创建index
PUT test_user
{
"settings": {
"index": {
"number_of_shards": "3",
"number_of_replicas": "0"
}
}
}
2. 定义mappering
PUT test_user/_doc/_mapping
{
"properties": {
"id": {
"type": "long"
},
"name": {
"type": "keyword"
},
"age": {
"type": "integer"
}
}
}
3. 设置别名
POST _aliases
{
“actions” : [{“add” : {“index” : “索引名” , “alias” : “别名”}}]
}文章来源:https://www.toymoban.com/news/detail-507467.html
4 ES SQL查询
POST /_xpack/sql?format=txt
{
"query": "SELECT * FROM library WHERE release_date < '2000-01-01'"
}
文章来源地址https://www.toymoban.com/news/detail-507467.html
到了这里,关于kibana 创建es索引步骤的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!