# Query Insights is empty

**URL:** <https://forum.opensearch.org/t/query-insights-is-empty/24083>\
**Category:** Performance Analyzer\
**Created:** [April 10, 2025, 1:36pm UTC](https://forum.opensearch.org/t/query-insights-is-empty/24083 "2025-04-10T13:36:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![quangdutran](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/quangdutran/32/8182_2.png) [@quangdutran](https://forum.opensearch.org/u/quangdutran)\
**Post date:** [April 10, 2025, 1:36pm UTC](https://forum.opensearch.org/t/query-insights-is-empty/24083/1 "2025-04-10T13:36:47Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
2.19.1  
Docker Desktop on Windows

**Describe the issue** :  
I have installed the plugin Query Insights as guided here: bin/opensearch-plugin install query-insights.  
But all the time, [http://localhost:9200/\_insights/top\_queries](http://localhost:9200/_insights/top_queries) returns empty array. Note that many search queries are called in the default time frame 5 minutes.

The historical params in `_insights/top_queries?from=2024-08-25T15:00:00.000Z&to=2024-08-30T17:00:00.000Z` do not exist: `request [/_insights/top_queries] contains unrecognized parameters: [from], [to]`

**Configuration** :

**Relevant Logs or Screenshots** :

---

<div class="post-metadata">

**Author:** ![jasonrojas](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/jasonrojas/32/4902_2.png) [@jasonrojas](https://forum.opensearch.org/u/jasonrojas)\
**Post date:** [June 2, 2025, 10:46pm UTC](https://forum.opensearch.org/t/query-insights-is-empty/24083/2 "2025-06-02T22:46:53Z")

</div>

I started seeing this too after someone did some maintenance on a cluster node. Here is what I observed.

Fresh install (RPM):

```auto
sh-4.2# pwd
/usr/share/opensearch/plugins/query-insights
sh-4.2# md5sum *
3b83ef96387f14655fc854ddc3c6bd57 LICENSE.txt
b3dbf032ad0061620774c6726425951a NOTICE.txt
63232eb9ecd795b2e3b8786a7be4f070 plugin-descriptor.properties
6397bf873601a91175ff22c4f567632c query-insights-2.19.2.0.jar
sh-4.2# 

```

Remove query insights:

```auto
sh-4.2# /usr/share/opensearch/bin/opensearch-plugin remove query-insights

```

Install query insights:

```auto
sh-4.2# /usr/share/opensearch/bin/opensearch-plugin install -b query-insights
-> Installing query-insights
-> Downloading query-insights from opensearch
cd /-> Installed query-insights with folder name query-insights
sh-4.2# cd /usr/share/opensearch/plugins/query-insights/
sh-4.2# md5sum *
3b83ef96387f14655fc854ddc3c6bd57 LICENSE.txt
b3dbf032ad0061620774c6726425951a NOTICE.txt
a0fcdd939664c0b807f023365829d87f plugin-descriptor.properties
6df3276878ee1c4b0394ff14da2b6ce7 query-insights-2.19.2.jar
sh-4.2# 

```

Definitely some differences in there.

And of course after the plugin-install command, query insights does not work.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [August 1, 2025, 10:46pm UTC](https://forum.opensearch.org/t/query-insights-is-empty/24083/3 "2025-08-01T22:46:54Z")

</div>

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