# Can not write sql statement in kibana dev tools

**URL:** <https://discuss.elastic.co/t/can-not-write-sql-statement-in-kibana-dev-tools/160018>\
**Category:** Kibana\
**Tags:** elastic-stack-sql\
**Created:** [December 8, 2018, 8:07pm UTC](https://discuss.elastic.co/t/can-not-write-sql-statement-in-kibana-dev-tools/160018 "2018-12-08T20:07:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amr\_Hashem](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@Amr\_Hashem](https://discuss.elastic.co/u/Amr_Hashem)\
**Post date:** [December 8, 2018, 8:07pm UTC](https://discuss.elastic.co/t/can-not-write-sql-statement-in-kibana-dev-tools/160018/1 "2018-12-08T20:07:37Z")

</div>

invalid\_index\_name\_exception  
"reason": "Invalid index name [_xpack], must not start with '_', '-', or '+'",  
"index\_uuid": "_na_",  
"index": "\_xpack"

---

<div class="post-metadata">

**Author:** ![Andrei\_Stefan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrei_stefan/32/47533_2.png) [@Andrei\_Stefan](https://discuss.elastic.co/u/Andrei_Stefan)\
**Post date:** [December 10, 2018, 5:58am UTC](https://discuss.elastic.co/t/can-not-write-sql-statement-in-kibana-dev-tools/160018/2 "2018-12-10T05:58:35Z")

</div>

This error usually indicates that (depending on the version) you don't have xpack installed or (most likely), that respective component of xpack is disabled (not enabled).

---

<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:** [January 7, 2019, 5:58am UTC](https://discuss.elastic.co/t/can-not-write-sql-statement-in-kibana-dev-tools/160018/3 "2019-01-07T05:58:38Z")

</div>

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