Today I tried the following request, which worked great:
curl -XPUT 'localhost:9200/logstash-2014.03.24/_settings' -d '
{
"index" : {
"number_of_replicas" : 0
}
}'
Now I want to set number of replicas for every indice in 2014 to 0. Can I
use a wildcard in the url such as the following? :
curl -XPUT 'localhost:9200/logstash-2014.*/_settings' -d '
{
"index" : {
"number_of_replicas" : 0
}
}'
Or do I have to make a shell script that will iterate over all the dates?
Today I tried the following request, which worked great:
curl -XPUT 'localhost:9200/logstash-2014.03.24/_settings' -d '
{
"index" : {
"number_of_replicas" : 0
}
}'
Now I want to set number of replicas for every indice in 2014 to 0. Can I
use a wildcard in the url such as the following? :
curl -XPUT 'localhost:9200/logstash-2014.*/_settings' -d '
{
"index" : {
"number_of_replicas" : 0
}
}'
Or do I have to make a shell script that will iterate over all the dates?
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.