linux_faq:elasticsearch_faq

List indexes

curl http://~~~elastic_client_IP~~~/_aliases?pretty=true

Get indices in a cluster

curl http://~~~elastic_client_IP~~~/_cat/indices?pretty=true

или запрос в DevTools в Kibana

GET /_cat/indices?v

Logstash Error

[logstash.outputs.elasticsearch] retrying failed action with response code: 403 ({"type"=>"cluster_block_exception", "reason"=>"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"})

Нужно дать права на запись в индексы elasticsearch:

curl -XPUT -H "Content-Type: application/json" http://~~~IP~address~elasticsearch~client~~~:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
Enter your comment. Wiki syntax is allowed:
F H D S X
 
  • linux_faq/elasticsearch_faq.txt
  • Last modified: 2019/12/18 12:24
  • by admin