Inicio Linux & Systems Networks & Infrastructure Cybersecurity Cloud & DevOps SIEM & Monitoring DFIR & Threat Intel Development & Other Todas las categorias Herramientas

ElasticSearch [FORBIDDEN/12/index read-only / allow delete (api)]

ElasticSearch [FORBIDDEN/12/index read-only / allow delete (api)]

Tabla de contenidos

Si intenta indexar un documento en ElasticSearch y ve un mensaje de error como este:

SQL
elasticsearch.exceptions.AuthorizationException: AuthorizationException(403, 'cluster_block_exception', 'blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];')

puede desbloquear escrituras en su clúster (todos los índices) usando

BASH
curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'

Comentarios