You can use wildcards, you can also comma separate them eg - curl -XPUT
'localhost:9200/logstash-2014.01.01,logstash-2014.01.02/_settings

On 12 February 2015 at 23:53, Aldian <[email protected]> wrote:

> Hi
>
> 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?
>
> Thanks for your help
>
> Aldian
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/174155d7-6133-40f0-9d8f-c340971f1f44%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/174155d7-6133-40f0-9d8f-c340971f1f44%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAEYi1X_2PH07k%2BjkU4arAC6FxNRQJxZM9FQpw97u_ob5JOpxvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to