Index name error

my indexName have '-' and it is returning error Please help
curl -XPOST "http://3.7.226.52:9200/_xpack/sql" -H 'Content-Type: application/json' -d'
{
"query":"SELECT * from cc-portm"
}'
"type": "parsing_exception",
"reason": "line 1:17: extraneous input '-' expecting

https://discuss.elastic.co/t/problem-with-sql-query-with-special-character-in-field-and-table-name/146359/4

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