ElasticsearchのIndexをAPIで操作

Posted on Jan 14, 2019

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