# Kibana- vega: might be kibana vega context issue - querying separate index data

**URL:** <https://discuss.elastic.co/t/kibana-vega-might-be-kibana-vega-context-issue-querying-separate-index-data/269909>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [April 12, 2021, 4:01pm UTC](https://discuss.elastic.co/t/kibana-vega-might-be-kibana-vega-context-issue-querying-separate-index-data/269909 "2021-04-12T16:01:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangyf2010](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wangyf2010/32/86939_2.png) [@wangyf2010](https://discuss.elastic.co/u/wangyf2010)\
**Post date:** [April 12, 2021, 4:01pm UTC](https://discuss.elastic.co/t/kibana-vega-might-be-kibana-vega-context-issue-querying-separate-index-data/269909/1 "2021-04-12T16:01:13Z")

</div>

I'm using vega to work out my visualization.  
As you can see, I'm querying "telemetry" index.  
While if I input via filter (either in dashboard filter field or visualization filter - KQL) by using "appName" field, I found its querying data from a separate index (that index also has "appName" field). Why it happen? or are there configuration mess up there?

```auto
    {
      "$schema": "https://vega.github.io/schema/vega-lite/v2.6.json",
      "data": {
        "name": "metrics",
        "url": {
          "%context%": true,
          "index": "telemetry*"
    ....
    }

```

---

<div class="post-metadata">

**Author:** ![wayneseymour](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wayneseymour/32/42945_2.png) [@wayneseymour](https://discuss.elastic.co/u/wayneseymour)\
**Post date:** [April 15, 2021, 10:52pm UTC](https://discuss.elastic.co/t/kibana-vega-might-be-kibana-vega-context-issue-querying-separate-index-data/269909/2 "2021-04-15T22:52:33Z")

</div>

@wangyf2010 Hello there Simon.

My first question is does that index pattern resolve to more than just `telemetry` index (The asterisk following the index is what popped the question in my mind)?

Here is one way I've learned to query about indices: `GET _cat/indices?v` ...popping that in Dev Tools may help us rule out whether the **index-pattern** you've used for the **index** stanza is resolving to more than one index. In the meantime, I'll search about to discover whether you can indeed use an **index-pattern** in that stanza.

---

<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:** [May 13, 2021, 10:53pm UTC](https://discuss.elastic.co/t/kibana-vega-might-be-kibana-vega-context-issue-querying-separate-index-data/269909/3 "2021-05-13T22:53:18Z")

</div>

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