If geoip.location appears in the index as a geo_point, why am I unable to use it in a heat map? Also, why do geoip.longitude and geoip.latitude appear as numbers? Shouldn't they by default be float?
I have a mapping like this:
PUT _template/syslog
{
"template": "syslog*",
"mappings": {
"eventGeoLocations": {
"properties": {
"src_geo_location": { "type": "geo_point" },
"geoip.latitude": { "type": "float" },
"geoip.longitude": { "type": "float" }
}
}
}
}
I also have a very basic geoip config section. #GeoIP
if [IN] == "eno1" {
geoip {
source => "src_IP"
}
mutate { convert => {"geoip.latitude" => "float"} }
mutate { convert => {"geoip.longitude" => "float"} } #mutate { add_field => { "src_geo_location" => "geoip.latitude,geoip.longtude" } } #not working
} # close if
I was under the impression that was more or less a tag. I did get this to work while on another little project where I converted the two number fields to float, created a geo_point field, and stuck the two converted fields together. I was trying to replicate that here.
I am really new at this. thx for the help
No use- I am still confused why the default geoip fields have the wrong data types to either use directly in a coordinate map or allow conversion to a geo_point.
I destroyed the other index when this worked with the logstash index. I was relying on what Kibana was showing in the index vie, and I pasted from the view into this discussion. I should have been more clear where I was seeing the geoip.location referenced as a geo_point.
I will use the mapping api from now on when I have issue with mappings.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.