Hi there,
I'm running a Graylog server. I accidentally deleted the contents of my index folders.
/var/lib/elasticsearch/nodes/0/indices/TkNxWZ2BQmGznq5Xv77CxQ/3/index# ls
Returns nothing. The same goes for my 0, 1, and 2/index.
I'm not worried about the lost data, but Graylog won't function without Elasticsearch. How can I restore the contents of the folders to a working state?
I believe these are the indexes and their IDs...I'm not too familiar so maybe I'm mistaken. Is there an API to delete a whole index or must I recursively delete each document within an index?
curl -X GET 'http://localhost:9200/_cat/indices?v'
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
red open graylog_0 TkNxWZ2BQmGznq5Xv77CxQ 4 0
green open graylog_1 rXPAWDDOTZCFutcZ6zGwew 4 0 1211736 0 405.4mb 405.4mb
green open syslog__0 SfiLdN55RMqH6LjLzn_StA 4 0 0 0 648b 648b
yellow open indices llXr2lFeS72xcrr2yyzgRg 5 1 0 0 839b 839b
David, here's the output.
Can I use the delete command on the "graylog_0" index to have it regenerated?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.