添加index patterns;  test 是索引收集的日志处理后的列表

while read line;do
curl --user elastic:xxxxx -X POST IP:5601/api/saved_objects/index-pattern/${line} -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d '{ "attributes": { "title": "'"${line}-*"'" }}'
done < test

删除index patterns
curl -X DELETE "10.0.0.51:5601/api/saved_objects/index-pattern/twitter" -H 'kbn-xsrf: true'

相关文章:

  • 2021-06-07
  • 2022-12-23
  • 2022-02-07
  • 2021-10-12
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-09
  • 2021-10-06
  • 2021-07-23
  • 2022-02-04
  • 2022-12-23
相关资源
相似解决方案