Hi everyone,
say you have 100-200 index's where one of the shards, replica and primary
have gotten corrupted. Lets just say they are completely bonked.
Someone must have a simply query to identify which index's these are and
how to mass delete them all since they have entered an unrecoverable state.
Regards
John
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/af6f5731-ccbc-4cf9-adcf-673e65849825%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
warkolm
(Mark Walkom)
September 8, 2014, 8:57pm
2
Check out the cat APIs for, there are end points for indexes and shards
that will give you this info.
Regards,
Mark Walkom
Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com
On 8 September 2014 23:34, Johnathan Phan jphan@berryjar.com wrote:
Hi everyone,
say you have 100-200 index's where one of the shards, replica and primary
have gotten corrupted. Lets just say they are completely bonked.
Someone must have a simply query to identify which index's these are and
how to mass delete them all since they have entered an unrecoverable state.
Regards
John
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com .
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/af6f5731-ccbc-4cf9-adcf-673e65849825%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/af6f5731-ccbc-4cf9-adcf-673e65849825%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout .
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEM624Z3sK8VtA4i3xq6y5bXz%3Dz1LrGhRgri3tHaRsM%3DcPiC3A%40mail.gmail.com .
For more options, visit https://groups.google.com/d/optout .
Hey mate, sorry solved this in the irc channel.
For future reference I created the following command to delete all red
index's.
curl -s localhost:9200/_cat/indices 2>&1 | grep ^red | awk '{print $2}' |
while read red; do curl -XDELETE 'http://localhost:9200/$red '; done
Regards
John
On Mon, Sep 8, 2014 at 9:57 PM, Mark Walkom markw@campaignmonitor.com
wrote:
Check out the cat APIs for, there are end points for indexes and shards
that will give you this info.
Regards,
Mark Walkom
Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com
On 8 September 2014 23:34, Johnathan Phan jphan@berryjar.com wrote:
Hi everyone,
say you have 100-200 index's where one of the shards, replica and primary
have gotten corrupted. Lets just say they are completely bonked.
Someone must have a simply query to identify which index's these are and
how to mass delete them all since they have entered an unrecoverable state.
Regards
John
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com .
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/af6f5731-ccbc-4cf9-adcf-673e65849825%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/af6f5731-ccbc-4cf9-adcf-673e65849825%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout .
--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/PJt6iA5AAcc/unsubscribe .
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com .
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAEM624Z3sK8VtA4i3xq6y5bXz%3Dz1LrGhRgri3tHaRsM%3DcPiC3A%40mail.gmail.com
https://groups.google.com/d/msgid/elasticsearch/CAEM624Z3sK8VtA4i3xq6y5bXz%3Dz1LrGhRgri3tHaRsM%3DcPiC3A%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout .
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPfM1kBMBnEPU%3DdpR7ADR1%3DX%3DtbYuKJkgwLiAfbLu1xK0k6mdg%40mail.gmail.com .
For more options, visit https://groups.google.com/d/optout .