# Problem with Vega Kibana 6.2

**URL:** <https://discuss.elastic.co/t/problem-with-vega-kibana-6-2/120677>\
**Category:** Kibana\
**Created:** [February 20, 2018, 3:55pm UTC](https://discuss.elastic.co/t/problem-with-vega-kibana-6-2/120677 "2018-02-20T15:55:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![emil.mirzayev](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@emil.mirzayev](https://discuss.elastic.co/u/emil.mirzayev)\
**Post date:** [February 20, 2018, 3:55pm UTC](https://discuss.elastic.co/t/problem-with-vega-kibana-6-2/120677/1 "2018-02-20T15:55:34Z")

</div>

Hi there. I just started using VegaLite in Vega plugin in Kibana. However, I get an empty result instead of vizualisation. I am using "logstash-\*" created by Makelogs. I want to have daily log counts in a line graph. Inserting VegaLite query below:

```auto
{
  "$schema": "https://vega.github.io/schema/vega-lite/v2.json",
  "data": {
    "url": {
      "index": "logstash-*",
      "body": {
        "size": 0,
        "aggs": {
          "days": {
            "date_histogram": {
              "field": "@timestamp",
              "interval": "day"
            }
          }
        }
      }
    },
    "format": {"properties": "aggregations.days.buckets"}
  },
  "transform": [{"calculate": "toDate(datum.key)", "as": "date"}],
  "mark": "line",
  "encoding": {
    "x": {"field": "date", "type": "temporal"},
    "y": {"field": "doc_count", "type": "quantitative"}
  }
}

```

Am I doing something wrong? Probably I am, would be grateful for any help

---

<div class="post-metadata">

**Author:** ![emil.mirzayev](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@emil.mirzayev](https://discuss.elastic.co/u/emil.mirzayev)\
**Post date:** [February 20, 2018, 4:03pm UTC](https://discuss.elastic.co/t/problem-with-vega-kibana-6-2/120677/2 "2018-02-20T16:03:11Z")

</div>

This is the response I am getting. It draws the axes, but graph is empty

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/f/dfdf781d136fbc70244ca40c9a51334493310798.png)

---

<div class="post-metadata">

**Author:** ![nyuriks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nyuriks/32/26171_2.png) [@nyuriks](https://discuss.elastic.co/u/nyuriks)\
**Post date:** [February 20, 2018, 4:54pm UTC](https://discuss.elastic.co/t/problem-with-vega-kibana-6-2/120677/3 "2018-02-20T16:54:44Z")

</div>

Emil, you mistyped `property` as `properties`. In order to discover this, I used browser's developer console (F12 on Windows), and tried to examine the data source. Vega-Lite automatically creates one called `source_0`:

```auto
VEGA_DEBUG.view.data('source_0')

```

For some reason, I only saw a single row of data, and that data did not contain the expected fields, so I looked at the property to see if it was extracting the right sub-field from the request, and noticed it there.

In general, you can verify that data is returning correctly either by trying the request in the Kibana Dev Tools tab, or via the browser's developer tools - network tab (browser will make `_search` requests to the server, and you can examine the data).

---

<div class="post-metadata">

**Author:** ![emil.mirzayev](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@emil.mirzayev](https://discuss.elastic.co/u/emil.mirzayev)\
**Post date:** [February 21, 2018, 8:15am UTC](https://discuss.elastic.co/t/problem-with-vega-kibana-6-2/120677/4 "2018-02-21T08:15:30Z")

</div>

Thank you Yuri,

it solved my problem. As I understood, in order to ease debugging, one should name variables.

I also found your tutorials. Looking forward seeing the new ones!

---

<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:** [March 21, 2018, 8:15am UTC](https://discuss.elastic.co/t/problem-with-vega-kibana-6-2/120677/5 "2018-03-21T08:15:50Z")

</div>

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