ES学习第三弹--kibana和ES初步使用
01
kibana
wget https://artifacts.elastic.co/downloads/kibana/kibana-7.6.2-linux-x86_64.tar.gz
tar -zxvf kibana-7.6.2-linux-x86_64.tar.gz
elasticsearch.url: "http://ip:9200"
server.port: 5601
./kibana
02
ES使用
PUT _template/student
{
"index_patterns": ["student_*"]
, "mappings": {
"properties": {
"name":{
"type": "keyword"
},
"age":{
"type": "integer"
},
"brithday":{
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
}
}
}
}
POST student_1/_doc/2{"name":"尘世小书童","age":22,"brithday":"1998-01-01"}
GET student_1/_search{"query": {"match_all": {} }}
GET student_1/_mapping
DELETE student_1/_doc/3
学无止境,且学且珍惜
0 error(s),0 warning(s)
●更多技术干货●
● 扫码关注【菜鸟码蛋】~
点击下方让我知道你在看哟