• kibana 手动创建索引

    发布于:2022-05-05 作者:Garany 评论(0) 引用(0) 浏览(263)   分类:破万卷书  

    创建名称为 prod-login_*的 kibana 索引 curl -f -XPOST -H 'Content-Type: application/json' -H 'kbn-xsrf: anything' \ "http://127.0.0.1:5601/api/saved_objects/index-pattern/prod-login_*" -d"{\"attributes\":{\"title\":\"prod-login_*\",\"timeFieldName\":\"@timestamp\"}}" 从elasitc获取索引,批量在kibana创建 #从es获取“pr”开头的索引并自动在kibana中创建 for i in `curl -s -H 'Content-Type: application/json' \ --user elastic:clz.123 http://192.168.1.200:920...

    阅读全文>>