# Is there a KQL API endpoint and/or a way to run KQL queries from CLI?

**URL:** <https://discuss.elastic.co/t/is-there-a-kql-api-endpoint-and-or-a-way-to-run-kql-queries-from-cli/273557>\
**Category:** Elasticsearch\
**Created:** [May 20, 2021, 2:49pm UTC](https://discuss.elastic.co/t/is-there-a-kql-api-endpoint-and-or-a-way-to-run-kql-queries-from-cli/273557 "2021-05-20T14:49:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![el\_tedward](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/el_tedward/32/89035_2.png) [@el\_tedward](https://discuss.elastic.co/u/el_tedward)\
**Post date:** [May 20, 2021, 2:49pm UTC](https://discuss.elastic.co/t/is-there-a-kql-api-endpoint-and-or-a-way-to-run-kql-queries-from-cli/273557/1 "2021-05-20T14:49:20Z")

</div>

In older versions of Kibana, you could get the full Kibana query syntax by just running query\_string queries with a few options that Kibana sets by default, though it doesn't appear you can do that any longer (in a fully equivalent way, I know query\_string queries still covers a good subset of KQL).

I'd like to get an internal CLI tool to be in step with Kibana again, if possible. Is there a (hopefully supported) http endpoint you can hit in Kibana to run KQL queries? Or otherwise some way to run KQL queries from the CLI?

---

<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:** [June 17, 2021, 2:49pm UTC](https://discuss.elastic.co/t/is-there-a-kql-api-endpoint-and-or-a-way-to-run-kql-queries-from-cli/273557/2 "2021-06-17T14:49:41Z")

</div>

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