Vega in Kibana Dashborad

Hi Team,

I am new to ELK , i have tried to create basic chart in Vega using my index.
I can able to see only one point(like ".") in my Vega output.
I am using Kibana 7.4.2 version.
Below is my Vega expressions, please help me to resolve this issue.

{
$schema: https://vega.github.io/schema/vega-lite/v2.json
mark: bar
data: {
url: {
%context%: true
%timefield%: @timestamp
index: carbuyerenq
body: {
size: 10000
_source: ["@timestamp","BE_CustName","BE_ENQNo"]
}
format: {property: "hits.hits"}
}
transform:[
{ calculate: "toDate(datum._source['@timestamp'])", as: "time" }
]
encoding: {
x: { field: "_source.BE_ENQNo", type: "temporal"}
y: { field: "_source.BE_CustName", type: "quantitative"} }
}
}
}

Hey @jeeva, what type of chart are you trying to create? I'd recommend taking a look at some of the sample data Vega visualizations are working backwards: https://www.elastic.co/guide/en/kibana/current/add-sample-data.html

Hi Brandon,

Thanks for your response , i will look into this samples.

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