Delete by Query security exception

Hi,

I'm having problems while trying to delete documents using delete_by_query. my cURL is as follows:

curl -X POST -u elastic:xxxxxxxxxxxx 'http://host:9200/index-*/delete_by_query' -H 'Content-Type: application/json' -d'
{
    "query": {"bool": {"must": [{"match":{"key1": "value1"}}, {"match":{"key2": "value2"}}, {"term":{"key3": value3}}]}}
}
'

I get error:

{"error":{"root_cause":[{"type":"security_exception","reason":"action [indices:admin/create] is unauthorized for user [elastic]"}],"type":"security_exception","reason":"action [indices:admin/create] is unauthorized for user [elastic]","caused_by":{"type":"illegal_state_exception","reason":"There are no external requests known to support wildcards that don't support replacing their indices"}},"status":403}%     

User elastic has default superuser role. Any help?

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.