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
}
},