Hello, I've been using elastic search/kibana for a couple of months, but I'm very new to vega visualization.
I have a simple script like this :
{
$schema: https://vega.github.io/schema/vega-lite/v2.json
title: Event counts from all indexes
data: {
url: {
%context%: true
%timefield%: @timestamp
index: fiabdata*
body: {
aggs: {
matricules: {
terms: {field: "Matricule.raw"}
}
}
size: 0
}
}
format: {property: "aggregations.matricules.buckets"}
}
mark: bar
encoding: {
x: {
field: key
type: ordinal
axis: {title: "Matricule"}
}
y: {
field: doc_count
type: quantitative
axis: {title: "Document count"}
}
}
}
The response of the aggregation :
'"aggregations" : {
"matricules" : {
"doc_count_error_upper_bound" : 522,
"sum_other_doc_count" : 1374702,
"buckets" : [
{
"key" : "90156811",
"doc_count" : 2918
},
{
"key" : "90010636",
"doc_count" : 597
},
{
"key" : "90085981",
"doc_count" : 585
},
{
"key" : "88219052",
"doc_count" : 549
},
The problem I have is the graph don't display anything :
I have data in the time range I selected.
I'm on kibana 7.5.0
Am I missing something ?
Thanks for your help.