kibana 操作

Posted zdj8023

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了kibana 操作相关的知识,希望对你有一定的参考价值。

插入时不指明id,不会自动生成id,和视频中的不一样啊

解决: 其实是可以的,不过put不可以 POST才可以

 

中文输入有问题:

待解决:

基本操作记录

GET _search
{
  "query": {
    "match_all": {}
  }
}


PUT test
{
  "settings": {
    "index":{
      "number_of_shards":5,
      "number_of_replicas":1
    }
  }
}

GET test/_settings

GET _all/_settings

GET  .kibana,test/_settings

GET  _settings


PUT  test/_settings
{
  "number_of_replicas": 2
}

PUT  test/_settings
{
  "number_of_shards": 4
}

GET _all



#create a document
#put
PUT test/job/2
{
  "title":"java scrapy",
  "salary_min":15000,
  "city":"beijing",
  "company":{
    "name":"baidu",
    "company_address":"beijing software park"
  },
  "publish_date":"2019-5-20",
  "comments":15
  
}
#post
POST test/job/
{
  "title":"c language scrapy",
  "salary_min":15000,
  "city":"beijing",
  "company":{
    "name":"baidu",
    "company_address":"beijing software park"
  },
  "publish_date":"2019-5-20",
  "comments":15
  
}

GET test/job/1


GET test/job/1?_source


#update
#put
PUT test/job/2
{
  "title":"java scrapy",
  "salary_min":2000,
  
  "company":{
    "name":"baidu",
    "company_address":"beijing software park"
  },
  "publish_date":"2019-5-20",
  "comments":15
  
}

#post
POST test/job/1/_update
{
  "doc": {
    "comments":20
  }
}

#delete
#delete document

DELETE test/job/1

#delete type not supported

#delete index
DELETE test

批量操作

action_and_meta_data\n
optional_source\n

以上是关于kibana 操作的主要内容,如果未能解决你的问题,请参考以下文章

VSCode自定义代码片段15——git命令操作一个完整流程

kibana基础操作

kibana操作ES索引没有出现时间范围

使用kibana操作elasticsearch(es)

VSCode 如何操作用户自定义代码片段(快捷键)

kibana操作