Curl command not working in ES

Hi Magnus,
there is an index in my elastic search which i want to close and subsequently delete.
The index created is with name falog-%{[time_stamp]}
I tried to execute the curl like
curl -XPOST 'http://localhost:9200/falog-%{[time_stamp]}/_close'
it gave the error curl: (3) [globbing] nested braces not supported at pos 31

i tried with
curl -XPOST -g 'http://localhost:9200/falog-%{[time_stamp]}/_close'
It gave me the error {"error":"IllegalArgumentException[invalid escape sequence `%{[' at index 6 of: falog-%{[time_stamp]}]","status":500}

Could you please suggest how can i close and hence delete the index.
Is there any other way i can achieve the end result .

Try "%25" instead of "%".

1 Like

tried with following command
curl -XPOST 'http://localhost:9200/falog-%{[time_stamp]}/_close'

but with following error
curl: (3) [globbing] nested braces not supported at pos 33

sorry worked wit -g and %25.
Thanks magnus . You are a great help