I upgraded from ES 2.4 to 5.0 this week.
When I try to create Visualizations with Aggregations in Kibana, the only numeric fields that are available to me are the scripted fields and none of the string fields are available. Yet the other indexes seem to work fine in ES & Kibana 5.0!
I noticed that none of the fields are 'aggregatable'. Is that why I am unable to create Visualizations with Aggregations?
Here's the index definition (part of it, as I could not fit it all in this post).
{
"mediaserver" : {
"mappings" : {
"usage" : {
"properties" : {
"@timestamp" : {
"type" : "date",
"format" : "strict_date_optional_time||epoch_millis"
},
"@version" : {
"type" : "string"
},
"account" : {
"type" : "string",
"index" : "not_analyzed",
"fielddata" : false
},
"agent" : {
"type" : "string"
},
"bytes" : {
"type" : "long"
},
"cache_status" : {
"type" : "string",
"index" : "not_analyzed",
"fielddata" : false
},
"clientip" : {
"type" : "ip"
},
"geoip" : {
"properties" : {
"area_code" : {
"type" : "short"
},
"city_name" : {
"type" : "string",
"index" : "not_analyzed",
"fielddata" : false
},
"continent_code" : {
"type" : "string",
"index" : "not_analyzed",
"fielddata" : false
},
"country_code2" : {
"type" : "string",
"index" : "not_analyzed",
"fielddata" : false
},
"country_code3" : {
"type" : "string",
"index" : "not_analyzed",
"fielddata" : false
},
"country_name" : {
"type" : "string",
"index" : "not_analyzed",
"fielddata" : false
},
"dma_code" : {
"type" : "short"
},
"ip" : {
"type" : "ip"
},
"latitude" : {
"type" : "double"
},
"location" : {
"type" : "geo_point"
},
"longitude" : {
"type" : "double"
},
"postal_code" : {
"type" : "string",
"index" : "not_analyzed",
"fielddata" : false
},
"real_region_name" : {
"type" : "string",
"index" : "not_analyzed",
"fielddata" : false
},
"region_name" : {
"type" : "string",
"index" : "not_analyzed",
"fielddata" : false
},
"timezone" : {
"type" : "string"
}
}
},