[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'


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM