Re: Cleaning up red Shards

2014-09-09 Thread Johnathan Phan
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, Se

Re: Cleaning up red Shards

2014-09-08 Thread Mark Walkom
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: ma...@campaignmonitor.com web: www.campaignmonitor.com On 8 September 2014 23:34, Johnathan Phan wrote: > Hi everyone, > >

Cleaning up red Shards

2014-09-08 Thread Johnathan Phan
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 s