Hello everyone ,
i'm trying with sql rest api
my elasticsearch version is 6.2.4.
after installed xpack for both es and kibana ,i tried the following command from kibana dev tools, it give me the error below .
Also i didn't see sql-cli in bin/x-pack folder ,i installed x-pack by bin/elasticsearch-plugin install x-pack
command , did I miss anything ?any suggestion would be appreciate.thanks.
POST /_xpack/sql?format=txt
{
"query": "SELECT * FROM library ORDER BY page_count DESC LIMIT 5"
}
{
"error": {
"root_cause": [
{
"type": "invalid_index_name_exception",
"reason": "Invalid index name [xpack], must not start with '', '-', or '+'",
"index_uuid": "na",
"index": "_xpack"
}
],
"type": "invalid_index_name_exception",
"reason": "Invalid index name [xpack], must not start with '', '-', or '+'",
"index_uuid": "na",
"index": "_xpack"
},
"status": 400
}