我通过logstash ruby过滤器代码
发生了奇怪的创建索引名osquery-mounts-%host"}
现在我无法删除它:
curl -XDELETE 'http://el:9200/osquery-mounts-%host"}'
报告错误
{"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}[
无论我添加反斜杠来转义%和{},它都会报告类似的错误。
我也试过从kibana开发工具中删除它但失败了。
如何删除索引?
答案 0 :(得分:0)
对不起,我明白了。
curl -sSL -XDELETE 'http://el:9200/osquery-mounts-%%\{host\}'
使用%%转义%,使用反斜杠转义{和}