0

I happened created a strange index name osquery-mounts-%host"} via logstash ruby filter code,

Now I can not delete it:

curl -XDELETE 'http://el:9200/osquery-mounts-%host"}'

It reports error

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"invalid escape sequence `%ho' at index 15 of: osquery-mounts-%host"}],"type":"illegal_argument_exception","reason":"invalid escape sequence `%ho' at index 15 of: osquery-mounts-%host"},"status":400}[

Whatever I add backslash to escape % and { }, it report similar error.

I'v also tried delete it from kibana develop tools but failed.

How can I delete the index?

1 Answer 1

2

Sorry, I figured it out.

curl -sSL -XDELETE 'http://el:9200/osquery-mounts-%%\{host\}'

Use %% to escape %, use backslash to escape { and }

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.