Hello,
I come here to ask you for help. Thank you in advance to those who will answer me
I have a index with processing status by city. Status are : UP -> DEGRADED -> DOWN
Here is an example of a collected log.
{
"city_name" : "BANGKOK",
"@timestamp" : "2022-01-01T00:10:00.000Z",
"site_status" : "DEGRADED"
},
{
"city_name" : "BANGKOK",
"@timestamp" : "2022-01-01T03:15:00.000Z",
"site_status" : "DOWN"
},
{
"city_name" : "BRUSSELS",
"@timestamp" : "2022-01-01T03:51:00.000Z",
"site_status" : "DEGRADED"
},
{
"city_name" : "BANGKOK",
"@timestamp" : "2022-01-01T06:33:00.000Z",
"site_status" : "DEGRADED"
},
{
"city_name" : "BRUSSELS",
"@timestamp" : "2022-01-01T09:20:00.000Z",
"site_status" : "DOWN"
},
{
"city_name" : "BANGKOK",
"@timestamp" : "2022-01-01T10:00:00.000Z",
"site_status" : "UP",
}
Now I need to do some visualisations in Kibana. My Kibana version is 7.16.3.
I want to count the number of city in each status, but only for the last status of each city!
For example, Bangkok was Degraded and Down in the past but is now Up (the last status). So I want something like this :
DOWN = 1
DEGRADED = 0
UP = 1
I am not very familiar with Kibana (just a little). Despite research on the forum and internet, I really can't do what I want
I especially tried to use "Max Bucket" in a metric viz but without success
I would really appreciate if someone could give me advice on how to do this.
Gueri