📚

ElasticsearchのIndexをAPIで操作

2021/06/26に公開

GET Indecies

curl -X GET http://<es-url>/<index-name>-* | \
  jq -r ".[].settings.index.provided_name" | sort
authapi_access_log-2018.10.31
authapi_access_log-2018.11.01
authapi_access_log-2018.11.05

DELETE indecies

curl -X DELETE http://<es-url>/<index-name>-2018.11.06

Discussion