# Query Insights provides top N but not Live Queries

**URL:** <https://forum.opensearch.org/t/query-insights-provides-top-n-but-not-live-queries/27845>\
**Category:** Performance Analyzer\
**Created:** [February 18, 2026, 6:16pm UTC](https://forum.opensearch.org/t/query-insights-provides-top-n-but-not-live-queries/27845 "2026-02-18T18:16:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dep4b](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/dep4b/32/6985_2.png) [@dep4b](https://forum.opensearch.org/u/dep4b)\
**Post date:** [February 18, 2026, 6:16pm UTC](https://forum.opensearch.org/t/query-insights-provides-top-n-but-not-live-queries/27845/1 "2026-02-18T18:16:43Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser): 3.5

**Describe the issue** : I am able to see Top N related query data just like [Top N queries - OpenSearch Documentation](https://docs.opensearch.org/latest/observing-your-data/query-insights/top-n-queries/) suggests. However, the Live Queries never show up, and when I do GET /\_insights/live\_queries I don’t get any results. I can share a link to my OpenSearch setup if that helps someone debug the issue. Seems like if top n worked, then so would live queries?

When I run a query to tickle it, the only thing that changes is “Completions” which does increment a bit.

**Relevant Logs or Screenshots** :

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/a/a46d7975fb04251afaa6136ef9c5c6c307987db9.jpeg)

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [February 19, 2026, 11:11am UTC](https://forum.opensearch.org/t/query-insights-provides-top-n-but-not-live-queries/27845/2 "2026-02-19T11:11:44Z")

</div>

@dep4b I think this is expected when your query execution is short.  
As per your screenshot, you see total completions, which means the plugin can see your completed queries, and there are none currently running.

---

<div class="post-metadata">

**Author:** ![dep4b](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/dep4b/32/6985_2.png) [@dep4b](https://forum.opensearch.org/u/dep4b)\
**Post date:** [February 19, 2026, 11:42am UTC](https://forum.opensearch.org/t/query-insights-provides-top-n-but-not-live-queries/27845/3 "2026-02-19T11:42:04Z")

</div>

cool…. is there a way to take a query and add a sleep or other silly thing just to make it take a long time and have it show up? Curious to see what this looks like, and in dev my queries are all fast!

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [February 19, 2026, 12:52pm UTC](https://forum.opensearch.org/t/query-insights-provides-top-n-but-not-live-queries/27845/4 "2026-02-19T12:52:48Z")

</div>

@dep4b Try this. Don’t perform that on the production cluster.  
Test with lower numbers first at `for (int i = 0; i < 900000; i++) `

```auto
GET security-auditlog-2026.02.19/_search?request_cache=false
{
  "size": 10000,
  "track_total_hits": true,
  "query": {
    "script_score": {
      "query": { "match_all": {} },
      "script": {
        "lang": "painless",
        "source": """
          double x = 1.0;
          long s = doc['_seq_no'].value;
          for (int i = 0; i < 900000; i++) {
            x = x + Math.abs(Math.sin(x + s) + Math.cos(x + i));
          }
          return x;
        """
      }
    }
  }
}

```

You should see something like this.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/1/1b1127d6334fd0acf1434283a7cf62a9f8605e12.png)

---

<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:** [April 20, 2026, 12:53pm UTC](https://forum.opensearch.org/t/query-insights-provides-top-n-but-not-live-queries/27845/5 "2026-04-20T12:53:38Z")

</div>

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