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:
{
"$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
