Elasticsearch sql not accepting index with - in it

Hi,

I have an index which have - in it. I'm getting the following error. any work arounds?

POST _xpack/sql?format=txt
{
"query":"DESCRIBE bsd-digital-prod-logs-sa"
}

Error:
{
"error": {
"root_cause": [
{
"type": "parsing_exception",
"reason": "line 1:13: mismatched input '-' expecting "
}
],
"type": "parsing_exception",
"reason": "line 1:13: mismatched input '-' expecting ",
"caused_by": {
"type": "input_mismatch_exception",
"reason": null
}
},
"status": 400
}

nm made it work by

POST _xpack/sql?format=txt
{
"query":"DESCRIBE "bsd-digital-prod-logs-sa""
}

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