# No data show in Kibana wth vega-lite

**URL:** https://discuss.elastic.co/t/no-data-show-in-kibana-wth-vega-lite/208029
**Category:** Kibana
**Created:** [November 15, 2019, 9:54am UTC](https://discuss.elastic.co/t/no-data-show-in-kibana-wth-vega-lite/208029 "2019-11-15T09:54:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![msk\_76](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@msk\_76](https://discuss.elastic.co/u/msk_76)
#### Post date: [November 15, 2019, 9:54am UTC](https://discuss.elastic.co/t/no-data-show-in-kibana-wth-vega-lite/208029/1 "2019-11-15T09:54:44Z")

</div>

I am new to vega-lite and trying to use the following vega-lite script

```
{
  "$schema": "https://vega.github.io/schema/vega-lite/v2.json",
  "title": "Event counts from all indexes",
  "data": {
    "url": {
      "%context%": true,
      "%timefield%": "_source.time_stamp",
      "index": "flexlm_license_usage-201911",
      "body": {"_source": ["time_stamp", "lic_usage"], "size": 10}
    },
    "format": {"property": "hits.hits"}
  },
  "mark": "line",
  "encoding": {
    "x": {"field": "_source.time_stamp", "type": "temporal"}
    "y": {"field": "_source.lic_usage", "type": "quantitative"}
    }
  }

```

In kibana, i can only see the x and y axis legend and title but no data.

Running same from dev tools, elasticsearch return following. Please suggest what i am missing here?

{  
"took" : 281,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 2,  
"successful" : 2,  
"skipped" : 0,  
"failed" : 0  
},  
"hits" : {  
"total" : 98298346,  
"max\_score" : 1.0,  
"hits" : [  
{  
"\_index" : "flexlm\_license\_usage-201911",  
"\_type" : "doc",  
"\_id" : "agrlx218 ctolx622 ctolx623\_cdslmd\_Xcelium\_SC\_DMS\_Option\_\_danicant\_gnbsx50536\_1573272900000",  
"\_score" : 1.0,  
"\_source" : {  
"time\_stamp" : "2019-11-09T05:15:00+0100",  
"lic\_usage" : 1  
}  
},  
{  
"\_index" : "flexlm\_license\_usage-201911",  
"\_type" : "doc",  
"\_id" : "agrlx218 ctolx622 ctolx623\_snpslmd\_VCSMXRunTime\_Net\_\_pistoria\_ctosx00212\_1573272900000",  
"\_score" : 1.0,  
"\_source" : {  
"time\_stamp" : "2019-11-09T05:15:00+0100",  
"lic\_usage" : 1  
}  
},  
{  
"\_index" : "flexlm\_license\_usage-201911",  
"\_type" : "doc",  
"\_id" : "agrlx218 ctolx622 ctolx623\_cdslmd\_Xcelium\_SC\_DMS\_Option\_\_uppverif\_gnbsx50707\_1573272900000",  
"\_score" : 1.0,  
"\_source" : {  
"time\_stamp" : "2019-11-09T05:15:00+0100",  
"lic\_usage" : 4  
}  
},  
{  
"\_index" : "flexlm\_license\_usage-201911",  
"\_type" : "doc",  
"\_id" : "agrlx218 ctolx622 ctolx623\_snpslmd\_VCSRuntime\_Net\_\_specq\_gnbsx50743\_1573272900000",  
"\_score" : 1.0,  
"\_source" : {  
"time\_stamp" : "2019-11-09T05:15:00+0100",  
"lic\_usage" : 2  
}  
},

---

<div class="post-metadata">

### Author: ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)
#### Post date: [November 15, 2019, 2:15pm UTC](https://discuss.elastic.co/t/no-data-show-in-kibana-wth-vega-lite/208029/2 "2019-11-15T14:15:22Z")

</div>

Your request and vega encoding look good to me. The best way to check whether your `encoding` property is set up correctly is to look at VEGA\_DEBUG and find the section that shows how your data looks after it's formatted.

---

<div class="post-metadata">

### Author: ![msk\_76](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@msk\_76](https://discuss.elastic.co/u/msk_76)
#### Post date: [November 18, 2019, 3:28am UTC](https://discuss.elastic.co/t/no-data-show-in-kibana-wth-vega-lite/208029/3 "2019-11-18T03:28:21Z")

</div>

Wylie,

Here is the output of VEGA\_DEBUG. I am not sure about the error  
Failed to load resource: net::ERR\_NETWORK\_IO\_SUSPENDED  
:5601/api/console/proxy?path=\_aliases&method=GET:1 Failed to load resource: net::ERR\_NETWORK\_IO\_SUSPENDED  
:5601/api/console/proxy?path=\_template&method=GET:1 Failed to load resource: net::ERR\_NETWORK\_IO\_SUSPENDED  
:5601/api/console/proxy?path=\_mapping&method=GET:1 Failed to load resource: net::ERR\_NETWORK\_IO\_SUSPENDED  
:5601/api/console/proxy?path=\_aliases&method=GET:1 Failed to load resource: net::ERR\_NETWORK\_IO\_SUSPENDED  
:5601/api/console/proxy?path=\_template&method=GET:1 Failed to load resource: net::ERR\_NETWORK\_IO\_SUSPENDED  
:5601/api/console/proxy?path=\_mapping&method=GET:1 Failed to load resource: net::ERR\_NETWORK\_IO\_SUSPENDED  
:5601/api/console/proxy?path=\_aliases&method=GET:1 Failed to load resource: net::ERR\_NETWORK\_IO\_SUSPENDED  
:5601/api/console/proxy?path=\_template&method=GET:1 Failed to load resource: net::ERR\_INTERNET\_DISCONNECTED  
:5601/api/console/proxy?path=\_mapping&method=GET:1 Failed to load resource: net::ERR\_CONNECTION\_REFUSED  
:5601/api/console/proxy?path=\_aliases&method=GET:1 Failed to load resource: net::ERR\_CONNECTION\_REFUSED

---

<div class="post-metadata">

### Author: ![msk\_76](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@msk\_76](https://discuss.elastic.co/u/msk_76)
#### Post date: [November 18, 2019, 6:51am UTC](https://discuss.elastic.co/t/no-data-show-in-kibana-wth-vega-lite/208029/4 "2019-11-18T06:51:09Z")

</div>

From the above I searched a bit and found that Kibana vega-lite is unable to reach to my ES cluster on a remote host. So i made entries in my kibana.yml

elasticsearch.hosts: ["[http://xxxx:9200](http://xxxx:9200)"]  
vega.enableExternalUrls: "true"

After kibana.yml update, the above errors got vanished but still data is not showing up.  
In the VEGA\_DEBUG =\> under Network =\> \_search is showing to following link  
[http://yyyy:5601/elasticsearch/flexlm\_license\_usage-201911/\_search](http://yyyy:5601/elasticsearch/flexlm_license_usage-201911/_search)

however yyyy is my kibana host not Elasticsearch host. What i am missing here?

---

<div class="post-metadata">

### Author: ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)
#### Post date: [November 18, 2019, 9:46pm UTC](https://discuss.elastic.co/t/no-data-show-in-kibana-wth-vega-lite/208029/5 "2019-11-18T21:46:40Z")

</div>

The request you showed is correct, Kibana proxies your Elasticsearch requests for you. Based on what you've shared I'm not sure what the issue is.

---

<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: [December 16, 2019, 9:46pm UTC](https://discuss.elastic.co/t/no-data-show-in-kibana-wth-vega-lite/208029/6 "2019-12-16T21:46:49Z")

</div>

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