背景:工作中后面开始用es和kibana了,为了方便后面的操作,特记录一下,好多命令实在是记不住了,😄
kibana的操作
1.查看所有的索引的命令
javascript
GET /_cat/indices
2.创建索引的命令
javascript
PUT /es_dsj_6c_jky_yunzhe_data_extraction
{
"mappings" : {
"properties" : {
"cost_time" : {
"type" : "integer"
},
"data_type" : {
"type" : "integer"
},
"end_time" : {
"type" : "date",
"format" : "yyyy-MM-dd HH:mm:ss"
},
"file_name" : {
"type" : "text"
},
"flag" : {
"type" : "integer"
},
"province_code" : {
"type" : "integer"
},
"province_name" : {
"type" : "keyword"
},
"start_time" : {
"type" : "date",
"format" : "yyyy-MM-dd HH:mm:ss"
},
"txt_num" : {
"type" : "integer"
},
"txt_size" : {
"type" : "float"
}
}
}
}
3.查看索引的命令
javascript
GET /es_dsj_6c_jky_yunzhe_data_extraction/_search