Error in vega-lite debug

I am trying to use vega-lite with kibana but on the time_stamp field of my index, I am getting following error in VEGA_DEBUG
[Violation] 'setInterval' handler took 107ms
it keep on repeating.

**The data doesn't show up in the graph but axis names are there in the graph.. **

My vega-lite config is

{
  "$schema": "https://vega.github.io/schema/vega-lite/v2.json",
  "title": "Event counts from all indexes",
  "data": {
    "url": {
      "index": "flexlm_license_usage-201911",
      "body": {
        "size": 100,
//        "sort": [{"timestamp": {"order": "desc"}}],
        "query": { range: {
            timestamp: {gte: "2019-11-19 10:00:00", lte: "2019-11-19 10:05:00"} }
          } 
      }
    },
    "format": {"property": "hits.hits"}
  },
  "mark": "bar",
  "encoding": {
    "x": {"field": "_source.time_stamp", "type": "temporal", "axis": {"title": false}},
    "y": {
      "field": "doc_count",
      "type": "quantitative",
      "axis": {"title": "Document count"}
    }
  }
}

The data from query is
Query

GET flexlm_license_usage-201911/_search

{
"query": { range: {
            timestamp: {gte: "2019-11-19 10:00:00", lte: "2019-11-19 10:05:00"} }
          }
}

Data

{
  "took" : 519,
  "timed_out" : false,
  "_shards" : {
    "total" : 2,
    "successful" : 2,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : 139433624,
    "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_utc" : 1573272900000,
          "year_month" : "201911",
          "lic_site_name" : "-",
          "time_stamp" : "2019-11-09T05:15:00+0100",
          "lic_vendor_name" : "cdslmd",
          "user_name" : "danicant",
          "minute_of_day" : 315,
          "lic_server_name" : "agrlx218 ctolx622 ctolx623",
          "interval_period" : 300,
          "lic_server_master" : "ctolx622",
          "lic_reserved" : 0,
          "plc_id" : "-",
          "lic_usage" : 1,
          "lic_feature_name" : "Xcelium_SC_DMS_Option",
          "host_name" : "gnbsx50536",
          "day_of_week" : 6
        }
      },
      {
        "_index" : "flexlm_license_usage-201911",
        "_type" : "doc",
        "_id" : "agrlx218 ctolx622 ctolx623_snpslmd_VCSMXRunTime_Net__pistoria_ctosx00212_1573272900000",
        "_score" : 1.0,
        "_source" : {
          "time_stamp_utc" : 1573272900000,
          "year_month" : "201911",
          "lic_site_name" : "-",
          "time_stamp" : "2019-11-09T05:15:00+0100",
          "lic_vendor_name" : "snpslmd",
          "user_name" : "pistoria",
          "minute_of_day" : 315,
          "lic_server_name" : "agrlx218 ctolx622 ctolx623",
          "interval_period" : 300,
          "lic_server_master" : "ctolx622",
          "lic_reserved" : 0,
          "plc_id" : "-",
          "lic_usage" : 1,
          "lic_feature_name" : "VCSMXRunTime_Net",
          "host_name" : "ctosx00212",
          "day_of_week" : 6
        }
      },
      {
        "_index" : "flexlm_license_usage-201911",

Hey @msk_76,

Your y-axis is looking for a field called doc_count, but your query doesn't return any documents with doc_count property.

Do you want to do an aggregation instead?

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