# Elaticsearch SQL CLI is not working

**URL:** <https://discuss.elastic.co/t/elaticsearch-sql-cli-is-not-working/341258>\
**Category:** Elasticsearch\
**Tags:** eql-elastic-query-language\
**Created:** [August 21, 2023, 2:02pm UTC](https://discuss.elastic.co/t/elaticsearch-sql-cli-is-not-working/341258 "2023-08-21T14:02:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SivaPrasadELK](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@SivaPrasadELK](https://discuss.elastic.co/u/SivaPrasadELK)\
**Post date:** [August 21, 2023, 2:02pm UTC](https://discuss.elastic.co/t/elaticsearch-sql-cli-is-not-working/341258/1 "2023-08-21T14:02:32Z")

</div>

Hi team,

I am not able to run the SQL commands in SQL CLI tool. Any pointers how to use it or any supporting docs to refer. i am getting different kind of error messages when trying to run the queries in SQL CLI .

"error": {  
"root\_cause": [  
{  
"type": "parsing\_exception",  
"reason": "line 2:6: no viable alternative at input 'SHOW TABLE'"  
}  
],  
"type": "parsing\_exception",  
"reason": "line 2:6: no viable alternative at input 'SHOW TABLE'",  
"caused\_by": {  
"type": "no\_viable\_alt\_exception",  
"reason": null  
}  
},  
"status": 400  
}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 18, 2023, 2:03pm UTC](https://discuss.elastic.co/t/elaticsearch-sql-cli-is-not-working/341258/2 "2023-09-18T14:03:18Z")

</div>

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