Hi All,
I need your help with creating a visualization in kibana for three major queries.
The data I have - a bus samples that include: GPS (of its current position), StopId (The next bus stop), timestamp (the current time), vehicleId (the vehicle id of the bus), delay (time in seconds that describes how much the bus is late - can also be a negative value)
- I need to display in a map for each vehicle its current position
- I need to display heat map of the current position of all vehicles.
- I need to display heat map of the delay for the current position of all vehicle.
I have no idea how to do this visualization, I am new in kibana so please be Gentle with me
Before I decide to move to kibana I implemented a JavaScript script the display all those queries in google map, I get the data directly for my elastic server.
In my JavaScript code I execute this query first:
{
"size": 0,
"aggs" : {
"group_by_vehicleId" : {
"terms" : {
"field" : "vehicleId",
"size" : 1000
},
"aggs" : {
"max_time" : {
"max": { "field" :"timestamp"}
},
"include_source": {
"top_hits": {
"size": 1,
"_source": {
"includes": [
"vehicleId", "location","lineId","delay","timeFrame"
]
}
}
}
}
}
}
};
And then get the data that I need for each task and display it in google map.
By the way, I am working with kibana version 6.4.2
Thanks for the help.