[ELK]-使用API自动创建kibana索引

官网地址

https://www.elastic.co/guide/en/kibana/current/saved-objects-api-delete.html
https://www.elastic.co/guide/en/kibana/current/saved-objects-api-create.html

添加索引

curl -X POST "10.0.0.51:5601/api/saved_objects/index-pattern/twitter" -H ‘kbn-xsrf: true‘ -H ‘Content-Type: application/json‘ -d‘
{
  "attributes": {
    "title": "twitter"
  }
}
‘

删除索引

curl -X DELETE "10.0.0.51:5601/api/saved_objects/index-pattern/twitter" -H ‘kbn-xsrf: true‘

[ELK]-使用API自动创建kibana索引

上一篇:Cypress学习1-windows环境安装Cypress


下一篇:windows server 2019 hyper-v Failover Cluster