Deleting index with % in its name

I am using logstash to store logs in ElasticSearch, and I noticed last
night that it created an index with a variable in its name.

%{account}-2012.11.23

I fixed the issue on the server, but I am not able to delete the index
using Head or the API. Head does not respond and the API says the index is
missing:

{"error":"IndexMissingException[[�count-2012.11.23] missing]","status":404}

What is going to be the best way to remove this index?

I did attempt to escape the %{} symbols but it did not seem to help at all.

--

Did you try to urlencode these symbols? If not try running this command on
any elasticsearch node:

curl -XDELETE 'http://localhost:9200/%{account}-2012.11.23'

On Saturday, November 24, 2012 9:04:58 AM UTC-5, James Dooley wrote:

I am using logstash to store logs in ElasticSearch, and I noticed last
night that it created an index with a variable in its name.

%{account}-2012.11.23

I fixed the issue on the server, but I am not able to delete the index
using Head or the API. Head does not respond and the API says the index is
missing:

{"error":"IndexMissingException[[�count-2012.11.23] missing]","status":404}

What is going to be the best way to remove this index?

I did attempt to escape the %{} symbols but it did not seem to help at all.

--

Looks like that did the trick, I thought I had tried that at one point,
probably typod something.

Thanks for the fix.

On Saturday, November 24, 2012 7:09:36 PM UTC-5, Igor Motov wrote:

Did you try to urlencode these symbols? If not try running this command on
any elasticsearch node:

curl -XDELETE 'http://localhost:9200/%{account}-2012.11.23'

On Saturday, November 24, 2012 9:04:58 AM UTC-5, James Dooley wrote:

I am using logstash to store logs in ElasticSearch, and I noticed last
night that it created an index with a variable in its name.

%{account}-2012.11.23

I fixed the issue on the server, but I am not able to delete the index
using Head or the API. Head does not respond and the API says the index is
missing:

{"error":"IndexMissingException[[�count-2012.11.23]
missing]","status":404}

What is going to be the best way to remove this index?

I did attempt to escape the %{} symbols but it did not seem to help at
all.

--