# Elasticsearch Query Data

**URL:** <https://discuss.elastic.co/t/elasticsearch-query-data/358991>\
**Category:** Elasticsearch\
**Created:** [May 7, 2024, 8:39pm UTC](https://discuss.elastic.co/t/elasticsearch-query-data/358991 "2024-05-07T20:39:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dp12345](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dp12345](https://discuss.elastic.co/u/dp12345)\
**Post date:** [May 7, 2024, 8:39pm UTC](https://discuss.elastic.co/t/elasticsearch-query-data/358991/1 "2024-05-07T20:39:39Z")

</div>

Hi  
Our client would like to analyze search queries that were processed by Elasticsearch.  
Is this data stored anywhere in Elasticsearch? If not are there any api's or plugins or extensions available that will allow us to mine this data.

TIA for your help.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 8, 2024, 8:59am UTC](https://discuss.elastic.co/t/elasticsearch-query-data/358991/2 "2024-05-08T08:59:37Z")

</div>

> [@dp12345](#):
>
> Is this data stored anywhere in Elasticsearch?

No, it is not.

> [@dp12345](#):
>
> If not are there any api's or plugins or extensions available that will allow us to mine this data.

I believe you can log this information [using audit logging in Elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/8.13/auditing-search-queries.html), but be aware that [this is a commercial feature](https://www.elastic.co/subscriptions) not available with the free Basic license.

If this is not an option you probably need to set up an external proxy and log it there.
